execute unless entity @e[type=marker,tag=bad_bug] run summon marker 75 -57 9 {Tags:["bad_bug"]}
execute at @e[type=marker,tag=bad_bug] as @e[type=#main:enemies,distance=..20] run tp @s @n[type=marker,tag=room_spawn]

execute if entity @a[tag=admin_test] run gamerule sendCommandFeedback true
execute if entity @a[tag=!admin_test] run gamerule sendCommandFeedback false

# #boss test
function main:mechanics/combo/title
execute unless entity @a run reload
execute if entity @a[tag=!tutorial_finished,tag=tutorial_started] run function main:tutorial/tick
execute as @a[tag=hub] run function main:hub/tick

execute unless entity @a[tag=main_menu] run function main:settings/tick
function main:settings/stats/tick_actual
execute as @a run function main:mechanics/interaction/q/1
#characters
execute as @a[tag=main_menu] run function main:menu/select/tick

#ai
execute if entity @a[tag=game_started] run function main:game/tick

#music
execute if entity @a[tag=music] run function main:mechanics/music/tick
execute if entity @e[type=item_display,tag=camera] as @a[tag=camera_spectate] at @s run function main:mechanics/camera/tick with storage camera

#id
# execute at @a[scores={player_id=0}] run scoreboard players add #NextID player_id 1
# scoreboard players operation @a[scores={player_id=0}] player_id = #NextID player_id
scoreboard players set @a player_id 1

function main:mechanics/animation/tick