playsound minecraft:entity.vex.death hostile @a[scores={sanity=..-50}] ~ ~1.5 ~ 2 0
playsound minecraft:entity.warden.hurt hostile @a[scores={sanity=..-50}] ~ ~1.5 ~ 2 0
playsound minecraft:entity.allay.hurt hostile @a[scores={sanity=..-50}] ~ ~1.5 ~ 2 0
effect give @p[scores={sanity=..-50},dx=0,dy=1] blindness 2 0 true
execute at @e[tag=shadow,distance=..3] run particle minecraft:squid_ink ~ ~1.4 ~ .3 .5 .3 .1 30 normal @a[scores={sanity=..-50}]
damage @p[scores={sanity=..-76},dx=0,dy=1] 5 minecraft:mob_attack by @s
damage @p[scores={sanity=..-120},dx=0,dy=1] 8 minecraft:mob_attack by @s
scoreboard players remove @p[scores={sanity=..-50},dx=0,dy=1] sanity 5
scoreboard players remove @p[scores={sanity=-49..-31},dx=0,dy=1,predicate=survivalplus:25chance] sanity 1
scoreboard players remove @p[scores={sanity=-49..-20},dx=0,dy=1,predicate=survivalplus:20chance] sanity 1
#dont trigger on hit effects?
#execute if entity @s[advancements={survivalplus:tools/gethit/gethit=true}] run say remove
kill @e[tag=shadow,distance=..3]