tag @s add ignoreswing
execute positioned ^ ^1 ^1 as @e[type=!#survivalplus:notalive,tag=!ignoreswing,distance=..2.5] run damage @s 1 player_attack by @p[tag=ignoreswing]
execute positioned ^ ^1 ^1 run particle minecraft:sweep_attack
execute positioned ^ ^1 ^1 run playsound minecraft:entity.player.attack.sweep player @a ~ ~ ~ 1 1.2
tag @s remove ignoreswing
advancement revoke @s only survivalplus:tools/witchswing