##id5 - Behavior and AI

##camo
execute at @s positioned ~-5 ~-5 ~-5 unless entity @a[dx=9,dz=9,dy=9] run function main:game/mobs/ai/id/id5/away
execute at @s positioned ~-5 ~-5 ~-5 if entity @a[dx=9,dz=9,dy=9] run function main:game/mobs/ai/id/id5/close

execute at @s run particle dust{color:[0,1,0],scale:0.5} ~ ~1 ~ 0.5 0.5 0.5 1 5

#attack
function main:game/mobs/ai/attack/tick {"cooldown":30,"positioned_1":"~-10 ~-10 ~-10","positioned_2":"dx=19,dy=19,dz=19]","positioned_3":"~-2 ~-2 ~-2","positioned_4":"dx=3,dy=3,dz=3]","id":5}