execute anchored feet facing entity @p[scores={sanity=..-20}] feet run tp @s ~ ~ ~ ~ ~
execute if predicate survivalplus:1chance run playsound minecraft:block.sculk_shrieker.shriek hostile @a[scores={sanity=..-50}] ~ ~1.8 ~ .3 0

execute if predicate survivalplus:25chance run particle dust{color:[1,.2,0],scale:.5} ^.15 ^1.8 ^.3 0 0 0 0 1 normal @a[scores={sanity=-50..-20}]
execute if predicate survivalplus:25chance run particle dust{color:[1,.2,0],scale:.5} ^-.15 ^1.8 ^.3 0 0 0 0 1 normal @a[scores={sanity=-50..-20}]
particle dust{color:[0,0,0],scale:1} ~ ~1.3 ~ .2 .4 .2 0 2 normal @a[scores={sanity=-30..-20}]
particle dust{color:[0,0,0],scale:1} ~ ~1.3 ~ .2 .4 .2 0 7 normal @a[scores={sanity=-50..-31}]

particle dust{color:[0,0,0],scale:1} ~ ~ ~ .2 0 .2 0 10 normal @a[scores={sanity=..-50}]
particle dust{color:[0,0,0],scale:1.2} ~ ~1 ~ .2 .4 .2 0 10 normal @a[scores={sanity=..-50}]
execute positioned ~ ~1.5 ~ run particle dust{color:[0,0,0],scale:1.5} ^ ^.3 ^ .2 .2 .2 0 5 normal @a[scores={sanity=..-50}]
execute positioned ~ ~1.5 ~ run particle dust{color:[1,0,0],scale:.5} ^.15 ^.3 ^.3 0 0 0 0 1 normal @a[scores={sanity=..-50}]
execute positioned ~ ~1.5 ~ run particle dust{color:[1,0,0],scale:.5} ^-.15 ^.3 ^.3 0 0 0 0 1 normal @a[scores={sanity=..-50}]

execute unless entity @a[distance=..20,scores={sanity=..-20}] run scoreboard players add @s timer 1
execute if score @s timer matches 600.. run particle minecraft:squid_ink ~ ~1.4 ~ .3 .5 .3 .1 30 normal @a[scores={sanity=..-50}]
execute if score @s timer matches 600.. run kill @s