tag @e[r=1,family=player] add EndermenScourgeDamage
tag @e[r=1,family=snowgolem] add EndermenScourgeDamage
tag @e[r=1,family=irongolem] add EndermenScourgeDamage
tag @e[r=1,family=villager] add EndermenScourgeDamage
tag @e[r=1,family=wandering_trader] add EndermenScourgeDamage

execute as @e[c=1,type=ldz:ender_scourge] run damage @e[tag=EndermenScourgeDamage] 1 entity_attack entity @s
tag @e remove EndermenScourgeDamage