execute at @e[tag=spawn] at @e[tag=is_door,distance=..23.5] positioned ^ ^ ^23 run scoreboard players set @e[tag=center,distance=..0.1] rooms_from_spawn 1
execute as @e[tag=center,scores={rooms_from_spawn=1..}] at @s at @e[tag=is_door,distance=..23.5] positioned ^ ^ ^23 run function rooms:1_layout/2.1_operation

execute unless entity @e[tag=!spawn,scores={rooms_from_spawn=0}] run scoreboard players add layout generation 1
