execute anchored eyes facing entity @p eyes run tp @s ~ ~ ~ ~ ~
execute if predicate survivalplus:1chance run playsound minecraft:entity.vex.ambient hostile @a ~ ~ ~ .5 0

execute unless score @s sanity matches 1.. run function survivalplus:tools/sanity/smiler/smile
execute if score @s sanity matches 1.. run function survivalplus:tools/sanity/smiler/frown

execute unless entity @a[distance=..20] run scoreboard players add @s timer 1
execute if score @s timer matches 400.. run particle minecraft:squid_ink ~ ~ ~ .2 .2 .2 .1 10 normal @a
execute if score @s timer matches 400.. run kill @s

execute unless predicate survivalplus:light/4 run function survivalplus:tools/sanity/smiler/kill