Infinite Procedural Backrooms Generator

Watch a glowing architect orb carve out an endless labyrinth of damp carpets, yellow wallpaper, and glowing ceiling tiles in real time using vanilla commands.

Java EditionComplex Contraptions & CinematicsHard24 commandsTested on a real 26.2 & 26.3 server
An open-air Backrooms maze with yellow floors and floating ceiling lights. Download the GIF Video & GIF © www.9minecraft.net

Self-building StructuresHorrorMysticYellowOrangeWhiteMap MakingAdventure MapMini-gameBlock displaysArmor standsBlock building (fill/setblock/clone)Rotation math21+ commands

Inspired by the eerie, endless corridors of the Backrooms, this command creation generates a live procedural maze right before your eyes. Instead of hiding the hallways under a solid roof, the generator builds a wide-open cross-section with a central glass atrium and floating fluorescent ceiling strips so you can watch every turn and intersection take shape.

Two glowing architect orbs weave through the yellow stripped-birch monolith, carving out damp carpets, pillars, and brightly lit rooms while kicking up bursts of yellow dust and electric sparks. Every few seconds, the labyrinth dissolves in a golden pulse and begins carving a fresh layout.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard objectives add c9_rng dummy
  3. /fill ~-14 ~ ~-14 ~14 ~ ~14 hay_block
  4. /fill ~-14 ~1 ~-14 ~14 ~4 ~14 stripped_birch_wood
  5. /fill ~-3 ~1 ~-3 ~3 ~4 ~3 air
  6. /setblock ~ ~4 ~ ochre_froglight
  7. /summon armor_stand ~ ~1 ~ {Tags:["c9_gen","c9_g1"],NoGravity:1b,Invisible:1b,Rotation:[0f,0f]}
  8. /summon armor_stand ~ ~1 ~ {Tags:["c9_gen","c9_g2"],NoGravity:1b,Invisible:1b,Rotation:[180f,0f]}
  9. /summon block_display ~ ~1.5 ~ {Tags:["c9_orb1"],Glowing:1b,glow_color_override:16776960,block_state:{Name:"minecraft:ochre_froglight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,1.1f,1.1f],translation:[-0.55f,0f,-0.55f]}}
  10. /summon block_display ~ ~1.5 ~ {Tags:["c9_orb2"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.9f,0.9f,0.9f],translation:[-0.45f,0.2f,-0.45f]}}

2. Loop - one repeating command block each (Always Active) 14 commands

  1. /scoreboard players add #tick c9_t 1
  2. /scoreboard players add #age c9_t 1
  3. /execute store result score #r c9_rng run random value 0..99
  4. /execute if score #tick c9_t matches 1..3 as @e[tag=c9_gen] at @s run tp @s ^ ^ ^1
  5. /execute as @e[tag=c9_gen] at @s unless block ~ ~-1 ~ hay_block run tp @s ~ ~1 ~ ~180 ~
  6. /execute if score #tick c9_t matches 1..3 as @e[tag=c9_gen] at @s run fill ~-1 ~ ~-1 ~1 ~3 ~1 air
  7. /execute as @e[tag=c9_gen] at @s run particle dust{color:[1.0,0.9,0.2],scale:1.8} ~ ~1.8 ~ 0.7 1.0 0.7 0 12
  8. /execute if score #tick c9_t matches 4 as @e[tag=c9_gen] at @s run setblock ~ ~4 ~ ochre_froglight
  9. /execute if score #tick c9_t matches 4 as @e[tag=c9_gen] at @s if score #r c9_rng matches 0..25 run fill ~-2 ~ ~-2 ~2 ~3 ~2 air replace stripped_birch_wood
  10. /execute if score #tick c9_t matches 4 as @e[tag=c9_gen] at @s if score #r c9_rng matches 0..44 run tp @s ~ ~ ~ ~90 ~
  11. /execute if score #tick c9_t matches 4 as @e[tag=c9_gen] at @s if score #r c9_rng matches 45..89 run tp @s ~ ~ ~ ~-90 ~
  12. /execute as @e[tag=c9_g1] at @s run tp @e[tag=c9_orb1,limit=1] ~ ~1.2 ~ ~15 ~
  13. /execute as @e[tag=c9_g2] at @s run tp @e[tag=c9_orb2,limit=1] ~ ~1.2 ~ ~-15 ~
  14. /execute if score #tick c9_t matches 4.. run scoreboard players set #tick c9_t 0

How it works

Frames from the test run

Infinite Procedural Backrooms Generator - frame 1Infinite Procedural Backrooms Generator - frame 2Infinite Procedural Backrooms Generator - frame 3

Recorded on our own test server: 54 frames at about 8.9 fps. Our image check saw: An open-top maze resembling the Backrooms with wood walls, yellow carpet floors, floating froglights, and glowing item icons.

Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.

Build it in your world

  1. Find a flat area with at least 30x30 blocks of clear space and stand at the center.
  2. Run each of the 10 setup commands in chat to create the scoreboards, the yellow wall block, the starting room, and the two glowing architect orbs.
  3. Place 14 command blocks in a connected chain at the center of the arena: set the first to Repeating, Unconditional, Always Active, and the remaining 13 to Chain, Unconditional, Always Active.
  4. Paste the 14 loop commands in order into the command blocks.
  5. Watch from above or step inside the maze as the two glowing orbs carve out endless yellow corridors and fluorescent ceiling lights.

Use it with real players

To make the Backrooms generate endlessly around a real player as they walk, replace @e[tag=c9_gen] in the loop commands with @a and summon the carver orbs at ^ ^ ^6 in front of the player so hallways open up just ahead of where you look.

Remove it again 6 commands

  1. /kill @e[tag=c9_gen]
  2. /kill @e[tag=c9_orb1]
  3. /kill @e[tag=c9_orb2]
  4. /fill ~-14 ~ ~-14 ~14 ~5 ~14 air
  5. /scoreboard objectives remove c9_t
  6. /scoreboard objectives remove c9_rng

FAQ

Why does the maze have an open ceiling instead of a full roof?

A solid ceiling hides the procedural generation from outside viewers. Leaving the ceiling open with floating ochre froglight fixtures lets you watch the corridors and rooms get carved out in real time while still lighting the yellow walls inside.

What happens when the glowing orbs reach the edge of the platform?

Loop command 5 checks if there is still a hay block floor underneath the orb. As soon as an orb reaches the border of the 29x29 arena, it automatically turns 180 degrees and continues carving back toward the interior.

Commands used

/execute/fill/particle/random/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides