Self-Generating Fluorescent Maze

Watch an endless network of glowing fluorescent office corridors, damp carpets, and buzzing ceiling lights build itself in real time across a flat plain.

Java EditionComplex Contraptions & CinematicsHard23 commandsTested on a real 26.2 & 26.3 server
Glowing builder drones construct a maze of yellow corridors and sea lanterns in Minecraft. Download the GIF Video & GIF © www.9minecraft.net

Self-building StructuresHorrorIndustrialYellowWhiteAdventure MapMini-gameMap MakingItem displaysBlock building (fill/setblock/clone)Rotation math21+ commands

This command creation turns a flat plain into a growing network of fluorescent office corridors. Starting from a central room, glowing builder drones carve out yellow wallpapered halls, damp brown carpets, drop-ceilings with buzzing lights, and random supply crates.

The maze builds itself in real time right before your eyes using autonomous display entities that tunnel, branch, and place fluorescent sea lantern fixtures with electric particle sparks.

1. Setup - type these once 9 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /scoreboard objectives add c9_rng dummy
  3. /fill ~-16 ~-1 ~-16 ~16 ~5 ~16 air
  4. /fill ~-16 ~-1 ~-16 ~16 ~-1 ~16 brown_wool
  5. /fill ~-15 ~ ~-15 ~15 ~2 ~15 stripped_birch_wood
  6. /fill ~-15 ~3 ~-15 ~15 ~3 ~15 smooth_stone_slab[type=top]
  7. /fill ~-1 ~ ~-1 ~1 ~3 ~1 air
  8. /setblock ~ ~3 ~ sea_lantern
  9. /summon item_display ~ ~1.5 ~ {Tags:["c9_ent","c9_builder","c9_init"],Glowing:1b,glow_color_override:16777045,item:{id:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.8f,0.8f],translation:[0f,0f,0f]}}

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

  1. /execute as @e[tag=c9_init] at @s run summon item_display ~ ~ ~ {Tags:["c9_ent","c9_builder"],Rotation:[90f,0f],Glowing:1b,glow_color_override:16777045,item:{id:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.8f,0.8f],translation:[0f,0f,0f]}}
  2. /execute as @e[tag=c9_init] at @s run summon item_display ~ ~ ~ {Tags:["c9_ent","c9_builder"],Rotation:[180f,0f],Glowing:1b,glow_color_override:16777045,item:{id:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.8f,0.8f],translation:[0f,0f,0f]}}
  3. /execute as @e[tag=c9_init] at @s run summon item_display ~ ~ ~ {Tags:["c9_ent","c9_builder"],Rotation:[270f,0f],Glowing:1b,glow_color_override:16777045,item:{id:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.8f,0.8f],translation:[0f,0f,0f]}}
  4. /tag @e[tag=c9_init] remove c9_init
  5. /execute as @e[tag=c9_builder] at @s run particle electric_spark ~ ~0.5 ~ 0.3 0.3 0.3 0.05 3 force
  6. /scoreboard players add @e[tag=c9_builder] c9_tick 1
  7. /execute as @e[tag=c9_builder] store result score @s c9_rng run random value 1..100
  8. /execute as @e[tag=c9_builder,scores={c9_tick=5..}] at @s if block ^ ^ ^4 stripped_birch_wood run fill ^-1 ^-1.5 ^1 ^1 ^1.5 ^5 air
  9. /execute as @e[tag=c9_builder,scores={c9_tick=5..}] at @s if block ~ ~-2.5 ~ brown_wool run setblock ~ ~1.5 ~ sea_lantern
  10. /execute as @e[tag=c9_builder,scores={c9_tick=5..}] at @s run particle dust{color:[1.0,0.95,0.4],scale:2.0} ^ ^ ^2 1.0 1.0 1.0 0 25 force
  11. /execute as @e[tag=c9_builder,scores={c9_tick=5..,c9_rng=1..30}] at @s if block ^1 ^-2.5 ^2 brown_wool run setblock ^1 ^-1.5 ^2 barrel[facing=up]
  12. /execute as @e[tag=c9_builder,scores={c9_tick=5..}] at @s if block ^ ^-2.5 ^4 brown_wool run tp @s ^ ^ ^4
  13. /execute as @e[tag=c9_builder,scores={c9_tick=5..,c9_rng=1..45}] at @s run tp @s ~ ~ ~ ~90 ~
  14. /execute as @e[tag=c9_builder,scores={c9_tick=5..}] at @s run scoreboard players set @s c9_tick 0

How it works

Frames from the test run

Self-Generating Fluorescent Maze - frame 1Self-Generating Fluorescent Maze - frame 2Self-Generating Fluorescent Maze - frame 3

Recorded on our own test server: 58 frames at about 9.6 fps. Our image check saw: An aerial view of a maze with yellow walls, brown floors, barrels, and sea lanterns being built in real-time by glowing cube entities.

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. Stand at the center of a flat open area where you want the 31x31 fluorescent maze to generate.
  2. Run all 9 setup commands in order in chat or from an impulse command block to build the base structure and spawn the initial drone.
  3. Place 14 repeating command blocks (or 1 repeating block connected to 13 chain blocks), all set to Always Active.
  4. Paste one loop command into each block in order.
  5. Watch from above or step inside the center room as the four glowing drones carve out hallways, install lights, and place supply barrels.

Use it with real players

To let a player trigger a new maze room around themselves on demand, summon the initial c9_init drone at @p after running the fill commands centered on the player.

Remove it again 5 commands

  1. /kill @e[tag=c9_ent]
  2. /fill ~-16 ~ ~-16 ~16 ~5 ~16 air
  3. /fill ~-16 ~-1 ~-16 ~16 ~-1 ~16 grass_block
  4. /scoreboard objectives remove c9_tick
  5. /scoreboard objectives remove c9_rng

FAQ

Why does the ceiling have open gaps above the hallways?

The builder drones carve up through the slab drop-ceiling between the sea lantern fixtures so you can watch the maze excavate itself from above while still keeping the suspended fluorescent lights intact.

Will the builder drones ever wander outside the maze platform?

No, before moving forward, each drone checks for the brown wool carpet floor 4 blocks ahead. If it reaches the outer boundary, it stays inside and turns 90 degrees on subsequent ticks.

Commands used

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

Similar creations

Join 9Minecraft News & Guides