Watch an empty platform transform into a glowing Backrooms maze as four autonomous builder entities carve corridors, wallpaper walls, and install lights.
Self-building StructuresHorrorTechnologyYellowWhiteBuilding ToolAdventure MapMini-gameBlock displaysItem displaysArmor standsRiding & passengersBlock building (fill/setblock/clone)Rotation math21+ commands
This command creation generates a sprawling Backrooms labyrinth right before your eyes. Starting from a central glowing core, four autonomous builder drones roam outward in cardinal directions, laying down damp yellow wool carpets, erecting striped terracotta and oak wallpaper walls, and wiring up ochre froglight ceiling fixtures.
Because the builders use randomized pathfinding and check for unvisited floor tiles before carving, every run produces a completely unique layout of rooms and intersecting hallways.
/scoreboard objectives add c9_timer dummy/scoreboard objectives add c9_rng dummy/fill ~-16 ~-1 ~-16 ~16 ~-1 ~16 stripped_birch_wood/fill ~-16 ~ ~-16 ~16 ~4 ~16 air/fill ~-3 ~ ~-3 ~3 ~2 ~3 yellow_terracotta/fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 yellow_wool/fill ~-1 ~ ~-1 ~1 ~2 ~1 air/setblock ~ ~3 ~ ochre_froglight/summon item_display ~ ~1.5 ~ {Tags:["c9_ent","c9_core"],Glowing:1b,glow_color_override:16766720,item:{id:"minecraft:ochre_froglight",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.2f,1.2f,1.2f]}}/summon armor_stand ~ ~ ~ {Tags:["c9_ent","c9_b"],Invisible:1b,NoGravity:1b,Marker:1b,Rotation:[0f,0f],Passengers:[{id:"minecraft:block_display",Tags:["c9_ent"],Glowing:1b,glow_color_override:16776960,block_state:{Name:"minecraft:shroomlight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.4f,0.8f,-0.4f],scale:[0.8f,0.8f,0.8f]}}]}/execute if score #total c9_timer matches 0..2 run summon armor_stand ~ ~ ~ {Tags:["c9_ent","c9_b"],Invisible:1b,NoGravity:1b,Marker:1b,Rotation:[90f,0f],Passengers:[{id:"minecraft:block_display",Tags:["c9_ent"],Glowing:1b,glow_color_override:16776960,block_state:{Name:"minecraft:shroomlight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.4f,0.8f,-0.4f],scale:[0.8f,0.8f,0.8f]}}]}/scoreboard players add #tick c9_timer 1/scoreboard players add #total c9_timer 1/execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~6 ~/execute as @e[tag=c9_b] at @s run particle dust{color:[1.0,0.9,0.2],scale:1.6} ~ ~1.4 ~ 0.3 0.5 0.3 0 4 force/execute if score #tick c9_timer matches 4.. as @e[tag=c9_b] at @s positioned ^ ^ ^4 unless entity @e[tag=c9_core,distance=..14] at @s run tp @s ~ ~ ~ ~180 ~/execute if score #tick c9_timer matches 4.. as @e[tag=c9_b] at @s positioned ^ ^ ^4 if entity @e[tag=c9_core,distance=..14] at @s if block ^ ^-1 ^4 stripped_birch_wood run fill ^-3 ^ ^1 ^3 ^2 ^7 yellow_terracotta keep/execute if score #tick c9_timer matches 4.. as @e[tag=c9_b] at @s positioned ^ ^ ^4 if entity @e[tag=c9_core,distance=..14] at @s if block ^ ^-1 ^4 stripped_birch_wood run fill ^-3 ^1 ^1 ^3 ^1 ^7 stripped_oak_log replace yellow_terracotta/execute if score #tick c9_timer matches 4.. as @e[tag=c9_b] at @s positioned ^ ^ ^4 if entity @e[tag=c9_core,distance=..14] at @s if block ^ ^-1 ^4 stripped_birch_wood run fill ^-1 ^-1 ^-1 ^1 ^-1 ^5 yellow_wool/execute if score #tick c9_timer matches 4.. as @e[tag=c9_b] at @s positioned ^ ^ ^4 if entity @e[tag=c9_core,distance=..14] at @s if block ^ ^3 ^4 air run fill ^-1 ^ ^-1 ^1 ^2 ^5 air/execute if score #tick c9_timer matches 4.. as @e[tag=c9_b] at @s positioned ^ ^ ^4 if entity @e[tag=c9_core,distance=..14] at @s run setblock ^ ^3 ^4 ochre_froglight/execute if score #tick c9_timer matches 4.. as @e[tag=c9_b] at @s store result score @s c9_rng run random value 1..3/execute if score #tick c9_timer matches 4.. as @e[tag=c9_b] at @s positioned ^ ^ ^4 if entity @e[tag=c9_core,distance=..14] at @s run tp @s ^ ^ ^4 ~90 ~/execute if score #tick c9_timer matches 4.. as @e[tag=c9_b,scores={c9_rng=1}] at @s run tp @s ~ ~ ~ ~-90 ~/execute if score #tick c9_timer matches 4.. run scoreboard players set #tick c9_timer 0setup #3 Prepares the 33x33 grid floor with <code>stripped_birch_wood</code>, which acts as the unvisited tile state for the maze builders.loop #6 Checks if the block 4 steps ahead of a builder is further than 14 blocks from the central core; if so, the builder turns 180 degrees to stay inside the stage boundaries.loop #7 When moving into an unvisited cell (checked via <code>stripped_birch_wood</code> floor), places a 7x3x7 shell of <code>yellow_terracotta</code> using <code>keep</code> so existing corridors are never blocked off.loop #8 Replaces the middle layer of the terracotta walls with <code>stripped_oak_log</code> to create the striped Backrooms wallpaper pattern.loop #10 Carves out the 3-block-wide hallway interior from the current cell into the new cell and installs an <code>ochre_froglight</code> on the ceiling in the next command.loop #12 Uses <code>/random value 1..3</code> along with relative rotation teleports to make each builder randomly turn left, right, or continue straight after advancing 4 blocks.


Recorded on our own test server: 69 frames at about 9.7 fps. Our image check saw: A top-down view shows a yellow Backrooms-style maze with froglights being actively generated by four glowing marker entities moving around.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To center the maze generation around yourself instead of the fixed stage center, summon the c9_core entity at your position and run the initial floor setup command around your coordinates. You can also enclose the roof completely by running /fill ~-16 ~3 ~-16 ~16 ~3 ~16 smooth_sandstone keep once the builders finish carving the corridors.
/kill @e[tag=c9_ent]/fill ~-16 ~ ~-16 ~16 ~4 ~16 air/fill ~-16 ~-1 ~-16 ~16 ~-1 ~16 grass_block/scoreboard objectives remove c9_timer/scoreboard objectives remove c9_rngThe ceiling is left open except for the floating ochre froglights so you can watch the glowing builder drones carve out the interior corridors from above.
Yes! Change the number 4 in the loop commands (where it says matches 4..) to a lower number like 2 for faster generation, or a higher number like 10 for slower step-by-step building.
▶Backrooms Yellow Maze GeneratorSelf-building StructuresHard24 cmds
▶Self-Building Liminal HallsSelf-building StructuresHard24 cmds
▶Self-Building Infinite Yellow HallsSelf-building StructuresHard24 cmds
▶Self-Generating Liminal FacilitySelf-building StructuresHard24 cmds
▶Mechanical Spider Silk Web SpinnerSelf-building StructuresHard24 cmds
▶Automated Lighthouse Fresnel Lens IgnitionSelf-building StructuresMedium24 cmds