Files
hostile_allays
Code
9 31
hostile_allays/data/hostile_allays/function/tick.mcfunction
execute as @e[type=minecraft:allay,tag=!ha_initialized] run function hostile_allays:init
execute as @e[type=minecraft:allay,tag=ha_initialized,scores={ha_attack_cd=0}] at @s run function hostile_allays:attack
scoreboard players remove @e[type=minecraft:allay,tag=ha_initialized,scores={ha_attack_cd=1..}] ha_attack_cd 1
execute as @e[type=minecraft:vex] run function hostile_allays:fix_vex
function hostile_allays:prevent_anchor_explosions