tag @s add exnecro
execute as @e[type=!#survivalplus:notalive,tag=!exnecro,distance=..5,tag=!ngboss] run damage @s 40 magic by @p[tag=exnecro]
execute as @e[distance=..5,tag=ngboss] run damage @s 10 magic by @p[tag=exnecro]
execute if entity @s[scores={sanity=..-20}] if entity @e[tag=shadow,distance=..5] run function survivalplus:tools/sanity/shadow/kill
playsound minecraft:entity.wither.ambient player @a ~ ~ ~ 1 .8
tag @s remove exnecro