execute if entity @s[scores={room_state=1}] run function game:room/1_door_trigger/main
execute if entity @s[scores={room_state=2}] run function game:room/2_room_start/main
execute if entity @s[scores={room_state=3}] run function game:room/3_spawn_wave/main
execute if entity @s[scores={room_state=4}] run function game:room/4_wave_ongoing/main
execute if entity @s[scores={room_state=5}] run function game:room/5_room_end/main
execute if entity @s[scores={room_state=6}] run function game:room/6_room_completed/main

execute if entity @s[scores={room_state=3..4}] run function game:room/let_others_in/main
