#------------------ Clear Clock -------------------------
execute unless score global clock = room_max clock run scoreboard players add global clock 1
execute if score global clock = room_max clock as @e[tag=center,tag=!structure,limit=1] at @s run function rooms:2_structure/1_main
execute if score global clock >= room_max clock run scoreboard players set global clock 0

# Change state
execute unless entity @e[tag=center,tag=!structure,limit=1] run scoreboard players set structure generation 0
