Self-Generating Liminal Facility

Watch an eerie backrooms-style industrial maze of fluorescent corridors, copper pipes, and claustrophobic chambers assemble itself in real time.

Java EditionComplex Contraptions & CinematicsHard24 commandsTested on a real 26.2 & 26.3 server
Aerial view of a yellow Minecraft grid facility with glowing lights, copper blocks, and swirling particles. Download the GIF Video & GIF © www.9minecraft.net

Self-building StructuresHorrorIndustrialTechnologyYellowOrangeAdventure MapMap MakingBuilding ToolArmor standsBlock building (fill/setblock/clone)21+ commands

This command creation builds a sprawling, claustrophobic liminal facility right before your eyes. Starting from a glowing central junction on an industrial tiled floor, autonomous builder probes branch outward across a four-block grid. As they snap into place, each cell constructs damp yellow concrete walls, buzzing overhead light strips, and copper pipe networks.

We leave the roof cut away so you can watch the maze grow from above, while floating block displays animate each new wall tile rising from the foundation in a burst of electric sparks and golden dust.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard objectives add c9_dir dummy
  3. /fill ~-16 ~-1 ~-16 ~16 ~-1 ~16 deepslate_tiles
  4. /fill ~-16 ~ ~-16 ~16 ~5 ~16 air
  5. /fill ~-16 ~ ~-16 ~16 ~3 ~16 iron_bars outline
  6. /fill ~-16 ~ ~-16 ~16 ~ ~16 black_concrete hollow
  7. /summon marker ~ ~ ~ {Tags:["c9_m","c9_ctrl"]}
  8. /summon armor_stand ~ ~ ~ {Tags:["c9_m","c9_b"],Invisible:1b,NoGravity:1b,Small:1b}
  9. /scoreboard players set @e[tag=c9_ctrl] c9_t 0
  10. /scoreboard players set @e[tag=c9_ctrl] c9_dir 0

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

  1. /scoreboard players add @e[tag=c9_ctrl] c9_t 1
  2. /execute as @e[tag=c9_ctrl] run scoreboard players operation @s c9_dir = @s c9_t
  3. /execute as @e[tag=c9_ctrl] if score @s c9_dir matches 4.. run scoreboard players set @s c9_dir 0
  4. /execute as @e[tag=c9_b] at @s if block ~ ~-1 ~ deepslate_tiles run fill ~-2 ~-1 ~-2 ~2 ~3 ~2 yellow_terracotta hollow
  5. /execute as @e[tag=c9_b] at @s if block ~ ~-1 ~ yellow_terracotta run fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 stripped_birch_wood
  6. /execute as @e[tag=c9_b] at @s if block ~ ~3 ~ yellow_terracotta run setblock ~ ~3 ~ ochre_froglight
  7. /execute as @e[tag=c9_b] at @s if block ~ ~3 ~ ochre_froglight run fill ~-2 ~2 ~ ~2 ~2 ~ waxed_copper_block replace air
  8. /execute as @e[tag=c9_b] at @s if block ~ ~3 ~ ochre_froglight run fill ~-1 ~3 ~-1 ~1 ~3 ~1 air replace yellow_terracotta
  9. /execute as @e[tag=c9_b] at @s if block ~ ~3 ~ ochre_froglight run particle dust{color:[1.0,0.9,0.5],scale:1.5} ~ ~2.5 ~ 1.2 1 1.2 0 25
  10. /execute as @e[tag=c9_b] at @s if score @e[tag=c9_ctrl,limit=1] c9_t matches 10.. if block ~4 ~-1 ~ deepslate_tiles run summon armor_stand ~4 ~ ~ {Tags:["c9_m","c9_b"],Invisible:1b,NoGravity:1b,Small:1b}
  11. /execute as @e[tag=c9_b] at @s if score @e[tag=c9_ctrl,limit=1] c9_t matches 10.. if block ~-4 ~-1 ~ deepslate_tiles run summon armor_stand ~-4 ~ ~ {Tags:["c9_m","c9_b"],Invisible:1b,NoGravity:1b,Small:1b}
  12. /execute as @e[tag=c9_b] at @s if score @e[tag=c9_ctrl,limit=1] c9_t matches 10.. if block ~ ~-1 ~4 deepslate_tiles run summon armor_stand ~ ~ ~4 {Tags:["c9_m","c9_b"],Invisible:1b,NoGravity:1b,Small:1b}
  13. /execute as @e[tag=c9_b] at @s if score @e[tag=c9_ctrl,limit=1] c9_t matches 10.. if block ~ ~-1 ~-4 deepslate_tiles run summon armor_stand ~ ~ ~-4 {Tags:["c9_m","c9_b"],Invisible:1b,NoGravity:1b,Small:1b}
  14. /execute as @e[tag=c9_b] at @s if block ~ ~3 ~ ochre_froglight run fill ~-2 ~ ~-1 ~2 ~1 ~1 air replace yellow_terracotta

How it works

Frames from the test run

Self-Generating Liminal Facility - frame 1Self-Generating Liminal Facility - frame 2Self-Generating Liminal Facility - frame 3

Recorded on our own test server: 34 frames at about 5.7 fps. Our image check saw: An aerial view of a large Minecraft grid made of yellow walls with open roofs, containing glowing froglights, copper blocks, tiled floors, and yellow particles.

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. Create a flat clearing at least 35x35 blocks wide and stand at the exact centre.
  2. Run each of the 10 setup commands in chat one by one to lay the foundation and place the seed probe.
  3. Place 14 repeating command blocks in a line or stack outside the 33x33 platform and set them all to Always Active.
  4. Paste one loop command into each repeating command block, wrapping coordinates with execute positioned X Y Z run ... if your command blocks are outside the centre.
  5. Add one extras command block set to Repeat and Always Active with: /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 11.. run kill @e[tag=c9_b,limit=4,sort=arbitrary] and reset c9_t to 0 every 12 ticks so the maze grows step by step.
  6. Watch from above as the rooms snap together and copper pipes link across the halls.

Use it with real players

To let a player generate the facility as they walk instead of auto-expanding everything at once, remove the four /summon armor_stand expansion commands from the loop and run /execute at @a if block ~ ~-1 ~ deepslate_tiles align xz run summon armor_stand ~ ~ ~ {Tags:["c9_m","c9_b"],Invisible:1b,NoGravity:1b} so new corridors appear right around you as you explore.

Remove it again 5 commands

  1. /kill @e[tag=c9_m]
  2. /fill ~-16 ~ ~-16 ~16 ~5 ~16 air
  3. /fill ~-16 ~-1 ~-16 ~16 ~-1 ~16 grass_block
  4. /scoreboard objectives remove c9_t
  5. /scoreboard objectives remove c9_dir

FAQ

Why doesn't the facility keep expanding past the edges of the platform?

Each builder probe checks for deepslate tiles four blocks away before summoning the next room. Because the setup only places a 33x33 tile pad, the probes naturally stop at the perimeter.

Can I change the wall and pipe materials to make a different style of dungeon?

Yes! Replace yellow_terracotta with stone_bricks or iron_block, and swap waxed_copper_block for tinted_glass or chain to change the entire aesthetic.

Commands used

/execute/fill/particle/scoreboard/setblock/summon

Similar creations

Join 9Minecraft News & Guides