tag @s add player1
tag @s add player2
execute as @e[distance=..50,type=#survivalplus:changed,predicate=!survivalplus:norerolltag,type=!#survivalplus:noreroll,type=!#survivalplus:notalive,tag=item_snatcher] run function survivalplus:tools/gethit/yoinked
execute as @e[distance=..50,type=#survivalplus:changed,predicate=!survivalplus:norerolltag,type=!#survivalplus:noreroll,type=!#survivalplus:notalive,tag=item_snatcher] run function survivalplus:tools/gethit/yoinked2
execute at @e[distance=..50,type=#survivalplus:changed,predicate=!survivalplus:norerolltag,type=!#survivalplus:noreroll,type=!#survivalplus:notalive] run particle explosion ~ ~1 ~ .5 .5 .5 0 5
execute as @e[distance=..50,type=#survivalplus:changed,predicate=!survivalplus:norerolltag,type=!#survivalplus:noreroll,type=!#survivalplus:notalive] run effect clear @s
execute as @e[distance=..50,type=#survivalplus:changed,predicate=!survivalplus:norerolltag,type=!#survivalplus:noreroll,type=!#survivalplus:notalive] run function survivalplus:mobs/wipe
function survivalplus:mobs
execute at @s run playsound minecraft:entity.evoker.cast_spell player @a ~ ~ ~
tag @s remove player1
tag @s remove player2