# ------------------ Clear Clock -------------------------
execute unless score global clock = clear_max clock run scoreboard players add global clock 1
execute if score global clock = clear_max clock at @e[tag=center,limit=1] run function rooms:0_clear/1_clear
execute if score global clock >= clear_max clock run scoreboard players set global clock 0

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