execute if entity @a[dx=0,predicate=survivalplus:pumpkinhat] positioned ~-0.99 ~-0.99 ~-0.99 if entity @a[dx=0,predicate=survivalplus:pumpkinhat] as @a[dx=0,predicate=survivalplus:pumpkinhat] at @s if entity @e[type=enderman,distance=..2] run function survivalplus:tools/endermansus/remove
particle electric_spark
execute if entity @s[distance=..6] if block ^ ^ ^.5 #survivalplus:nobounce positioned ^ ^ ^.5 run function survivalplus:tools/endermansus/look
