data modify entity @n[type=minecraft:enderman] carriedBlockState.Name set from entity @s equipment.head.id
item replace entity @s[predicate=survivalplus:pumpkinhat] armor.head with air
#execute as @e[type=minecraft:enderman,distance=..10] run data modify entity @s AngryAt set from entity @p UUID
#execute as @n[type=enderman] at @s if data entity @s AngryAt run playsound minecraft:entity.enderman.scream hostile @a ~ ~2.5 ~
execute at @n[type=enderman] run playsound minecraft:item.armor.equip_generic player @a ~ ~1.5 ~
advancement grant @s only survivalplus:adventure/misc/pumpkin_mask