#main
execute as @e[type=item_display,tag=aj.engineer_q.root] at @s run function main:characters/engineer/q/id1/tick_1

execute as @e[type=#main:not_enemies,tag=aj.engineer_q.bone.gear] rotated ~ 0 at @s facing entity @e[type=#main:enemies,tag=enemy,sort=nearest,distance=..12,limit=1] feet run rotate @s ~ 0

execute as @e[type=villager,tag=engineer_q] if score @s health > @s health_max run scoreboard players operation @s health = @s health_max

execute if score .shield_cd engineer matches 1.. run scoreboard players remove .shield_cd engineer 1

execute if score .sentry_particles engineer matches 1.. run function main:characters/engineer/q/id1/death_particles