# Rooms
execute if entity @s[tag=center,tag=!has_player] run function game:room/no_player
execute if entity @s[tag=center,tag=has_player] run function game:room/main

# Mark room that has player
tag @s[tag=center] remove has_player

# Spell detect door dash
execute if entity @s[tag=spell,tag=dash] as @e[tag=center,sort=nearest,limit=1] if entity @s[scores={room_state=1}] if block ~ 12 ~ barrier run function game:room/1_door_trigger/dash

# Spell void
kill @s[tag=spell,predicate=game:void_high]
