particle ldz:wraith_sludge ~ ~0.35 ~
summon ldz:ender_wraith_puddle ~ ~0.35 ~ ~ ~ player_spawned
playsound mob.ender_wraith.sludge_splat @a ~ ~ ~
tag @e[r=3,family=mob] add PlayerWraithDamage
tag @e[r=3,family=goat] add PlayerWraithDamage
tag @e[r=3,family=fish] add PlayerWraithDamage
tag @e[r=3,family=panda] add PlayerWraithDamage
tag @e[r=3,family=piglin] add PlayerWraithDamage
tag @e[r=3,family=monster] add PlayerWraithDamage
tag @e[r=3,family=ender] add PlayerWraithDamage

effect @e[r=3,tag=PlayerWraithDamage] wither 5 1
damage @e[r=3,tag=PlayerWraithDamage] 2 entity_attack entity @s
tag @e remove PlayerWraithDamage