Self-Carving Labyrinth

Watch four glowing builders dash across an obsidian grid as towering stone bricks and lantern-topped pillars erupt from the floor to weave a live maze.

Java EditionComplex Contraptions & CinematicsHard24 commandsTested on a real 26.2 & 26.3 server
Stone brick maze walls topped with sea lanterns radiate from a glowing cyan center. Download the GIF Video & GIF © www.9minecraft.net

Self-building StructuresMysticMedievalDarkCyanBlackMini-gameMap MakingCinematicBlock displaysArmor standsSmooth animation (interpolation)Block building (fill/setblock/clone)Rotation math21+ commands

The Self-Carving Labyrinth turns a flat platform into an ever-growing stone maze right before your eyes. From a glowing central nexus, four spectral weavers dart outward at ninety-degree angles, trailing cyan energy and raising five-block-tall stone brick walls crowned with sea lanterns directly from the ground.

Each builder checks the path ahead before moving: if it hits the outer border or an existing corridor, it automatically turns ninety degrees and carves a fresh pathway, packing the arena with intricate winding corridors.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /fill ~-14 ~-1 ~-14 ~14 ~-1 ~14 crying_obsidian
  3. /fill ~-13 ~-1 ~-13 ~13 ~-1 ~13 deepslate_tiles
  4. /fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 chiseled_polished_blackstone
  5. /setblock ~ ~ ~ beacon
  6. /summon block_display ~-0.5 ~1.5 ~-0.5 {Tags:["c9_all","c9_core"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],scale:[1f,1f,1f],right_rotation:[0f,0f,0f,1f]}}
  7. /summon armor_stand ~ ~ ~-2 {Tags:["c9_all","c9_carver"],NoGravity:1b,Invisible:1b,Rotation:[180f,0f]}
  8. /summon armor_stand ~2 ~ ~ {Tags:["c9_all","c9_carver"],NoGravity:1b,Invisible:1b,Rotation:[-90f,0f]}
  9. /summon armor_stand ~ ~ ~2 {Tags:["c9_all","c9_carver"],NoGravity:1b,Invisible:1b,Rotation:[0f,0f]}
  10. /summon armor_stand ~-2 ~ ~ {Tags:["c9_all","c9_carver"],NoGravity:1b,Invisible:1b,Rotation:[90f,0f]}

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

  1. /scoreboard players add #tick c9_timer 1
  2. /scoreboard players add @e[tag=c9_pillar] c9_timer 1
  3. /execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~6 ~
  4. /particle sculk_soul ~ ~2 ~ 0.6 0.6 0.6 0.03 2 force
  5. /execute as @e[tag=c9_carver] at @s run particle soul_fire_flame ~ ~1.5 ~ 0.15 0.5 0.15 0.01 3 force
  6. /execute if score #tick c9_timer matches 4.. as @e[tag=c9_carver] at @s if block ^ ^-1 ^3 crying_obsidian run tp @s ~ ~ ~ ~90 ~
  7. /execute if score #tick c9_timer matches 4.. as @e[tag=c9_carver] at @s if block ^ ^ ^2 stone_bricks run tp @s ~ ~ ~ ~90 ~
  8. /execute if score #tick c9_timer matches 4.. as @e[tag=c9_carver] at @s unless block ^ ^ ^2 stone_bricks unless block ^ ^-1 ^3 crying_obsidian run summon block_display ~-0.45 ~ ~-0.45 {Tags:["c9_all","c9_pillar"],Glowing:1b,glow_color_override:5636095,block_state:{Name:"minecraft:chiseled_stone_bricks"},transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],scale:[0.9f,0.2f,0.9f],right_rotation:[0f,0f,0f,1f]}}
  9. /execute if score #tick c9_timer matches 4.. as @e[tag=c9_carver] at @s unless block ^ ^ ^2 stone_bricks unless block ^ ^-1 ^3 crying_obsidian run fill ^ ^ ^ ^ ^4 ^2 stone_bricks replace air
  10. /execute if score #tick c9_timer matches 4.. as @e[tag=c9_carver] at @s unless block ^ ^-1 ^3 crying_obsidian run setblock ~ ~5 ~ sea_lantern
  11. /execute if score #tick c9_timer matches 4.. as @e[tag=c9_carver] at @s unless block ^ ^-1 ^3 crying_obsidian run tp @s ^ ^ ^2 ~90 ~
  12. /execute as @e[tag=c9_pillar,scores={c9_timer=2}] run data merge entity @s {start_interpolation:0,interpolation_duration:12,transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],scale:[0.9f,5.6f,0.9f],right_rotation:[0f,0f,0f,1f]}}
  13. /kill @e[tag=c9_pillar,scores={c9_timer=18..}]
  14. /execute if score #tick c9_timer matches 4.. run scoreboard players set #tick c9_timer 0

How it works

Frames from the test run

Self-Carving Labyrinth - frame 1Self-Carving Labyrinth - frame 2Self-Carving Labyrinth - frame 3

Recorded on our own test server: 51 frames at about 8.4 fps. Our image check saw: A partially formed maze of stone brick walls topped with sea lanterns branches out in four directions from a spinning, cyan-glowing central block on a dark tiled platform.

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 41x41 area with at least 10 blocks of open air above you.
  2. Run the 10 setup commands in chat or from an impulse command block to build the deepslate arena, central beacon, and 4 labyrinth carvers.
  3. Place 14 repeating command blocks set to Always Active (or connect 1 repeating block into 13 chain command blocks).
  4. Paste each loop command in order from 1 to 14 into the command blocks.
  5. Watch the four glowing builders spiral and branch out across the floor, raising walls and sea lantern pillars automatically.
  6. Run the remove commands whenever you want to clear the maze and reset the ground.

Use it with real players

To let a player carve labyrinth walls behind themselves as they walk, add tag c9_carver to yourself with /tag @s add c9_carver and remove the tp @s commands in loop steps 6, 7, and 11 so your own movement and look direction control where the 5-block walls erupt.

Remove it again 4 commands

  1. /kill @e[tag=c9_all]
  2. /fill ~-14 ~ ~-14 ~14 ~6 ~14 air
  3. /fill ~-14 ~-1 ~-14 ~14 ~-1 ~14 grass_block
  4. /scoreboard objectives remove c9_timer

FAQ

Why do the walls move in 2-block steps?

Stepping 2 blocks per cycle leaves a 1-block walkable corridor between parallel stone brick walls so the finished structure forms a true grid maze.

Will the glowing display entities cause lag over time?

No. Each glowing rising pillar is only used for the 0.9-second pop-up animation and is automatically removed once its scoreboard timer reaches 18 ticks.

Commands used

/data/execute/fill/kill/particle/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides