execute if score layout generation matches 1 run function rooms:1_layout/1_generate
execute if score layout generation matches 2 run function rooms:1_layout/2_rooms_from_spawn
execute if score layout generation matches 3 run function rooms:1_layout/furthest_empty
execute if score layout generation matches 3 as @e[tag=center] at @s run function rooms:1_layout/one_door_room
execute if score layout generation matches 3 run scoreboard players add layout generation 1
execute if score layout generation matches 4 run function rooms:1_layout/3_boss
execute if score layout generation matches 5 run function rooms:1_layout/4_other_rooms
