execute as @e[distance=...5,type=!#survivalplus:notalive] run damage @s 6 generic
execute as @e[distance=...5,type=!#survivalplus:notalive] run effect give @s slowness 1 10
execute as @e[distance=...5,type=!#survivalplus:notalive] run effect give @s slowness 10 1
execute as @a[distance=...5] run title @s actionbar {"text": "You've sprung a trap!","color": "red"}
execute align xyz run summon minecraft:evoker_fangs ~.5 ~ ~.5
kill @s