##IDs
execute as @s[tag=id3_mob,nbt={OnGround:1b}] run tag @s remove in_air
execute as @s[tag=id1_mob] at @s run function main:game/mobs/ai/id/id1/tick
execute as @s[tag=id2_mob] at @s run function main:game/mobs/ai/id/id2/tick
execute as @s[tag=id3_mob] at @s run function main:game/mobs/ai/id/id3/tick
execute as @s[tag=id4_mob] at @s run function main:game/mobs/ai/id/id4/tick
execute as @s[tag=id5_mob] at @s run function main:game/mobs/ai/id/id5/tick
execute as @s[tag=id6_mob] at @s run function main:game/mobs/ai/id/id6/tick
execute as @s[tag=id7_mob] at @s run function main:game/mobs/ai/id/id7/tick
execute as @s[tag=id8_mob] at @s run function main:game/mobs/ai/id/id8/tick
execute as @e[type=armor_stand,tag=id8_tombstone] at @s run function main:game/mobs/ai/id/id8/tombstone
execute as @s[tag=id9_mob] at @s run function main:game/mobs/ai/id/id9/tick
execute as @s[tag=id10_mob] at @s run function main:game/mobs/ai/id/id10/tick
execute as @s[tag=id11_mob] at @s run function main:game/mobs/ai/id/id11/tick
execute as @s[tag=id15_mob] at @s run function main:game/mobs/ai/id/id15/tick
execute as @s[tag=id16_mob] at @s run function main:game/mobs/ai/id/id16/tick
execute as @s[tag=id17_mob] at @s run function main:game/mobs/ai/id/id17/tick
execute as @s[tag=id18_mob] at @s run function main:game/mobs/ai/id/id18/tick
execute as @s[tag=id19_mob] at @s run function main:game/mobs/ai/id/id19/tick
execute as @s[tag=id20_mob] at @s run function main:game/mobs/ai/id/id20/tick
execute as @s[tag=id21_mob] at @s run function main:game/mobs/ai/id/id21/tick
execute as @s[tag=id22_mob] at @s run function main:game/mobs/ai/id/id22/tick
execute as @s[tag=id24_mob] at @s run function main:game/mobs/ai/id/id24/tick
execute as @s[tag=id25_mob] at @s run function main:game/mobs/ai/id/id25/tick
execute as @s[tag=id26_mob] at @s run function main:game/mobs/ai/id/id26/tick
execute as @s[tag=id27_mob] at @s run function main:game/mobs/ai/id/id27/tick
execute as @s[tag=id28_mob] at @s run function main:game/mobs/ai/id/id28/tick
execute as @s[tag=id29_mob] at @s run function main:game/mobs/ai/id/id29/tick
execute as @s[tag=id30_mob] at @s run function main:game/mobs/ai/id/id30/tick
execute as @s[tag=id1001_mob] at @s run function main:game/mobs/ai/id/id1001/tick
execute as @s[tag=id4004_mob] at @s run function main:game/mobs/ai/id/id4004/tick

function main:game/mobs/ai/scores/tick

execute as @s[tag=!fake,scores={enemy_move=1..}] run scoreboard players remove @s enemy_move 1
execute as @s[tag=!fake,scores={enemy_move_duration=1..}] run scoreboard players remove @s enemy_move_duration 1

execute as @e[type=item_display,tag=id30_path] at @s run function main:game/mobs/ai/id/id30/creep_tick

#boss
execute as @s[tag=boss] run function main:game/mobs/ai/boss_scores