execute as @n[type=!#survivalplus:notalive,tag=!chainlight,distance=..6,nbt={HurtTime:10s}] at @s anchored eyes if entity @n[type=!#survivalplus:notalive,tag=!chainlight,distance=..6,nbt=!{HurtTime:10s}] facing entity @n[type=!#survivalplus:notalive,tag=!chainlight,distance=..6,nbt=!{HurtTime:10s}] eyes run function survivalplus:tools/dealdmg/chainlightning
#playsound minecraft:entity.zombie_villager.cure hostile @a ~ ~1 ~ .25 1.7