Self-Reconfiguring Labyrinth

Build a self-reconfiguring labyrinth in Minecraft Java using commands, featuring an ancient core and glowing maze walls that rise and sink smoothly.

Java EditionComplex Contraptions & CinematicsMedium24 commandsTested on a real 26.2 & 26.3 server
A dark prismarine maze arena with rotating walls and a glowing central beacon. Download the GIF Video & GIF © www.9minecraft.net

Moving StructuresOceanMysticDarkCyanBlackMini-gameAdventure MapMap MakingBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)Sounds21+ commands

The Self-Reconfiguring Labyrinth transforms a flat arena into an ancient, living puzzle. At the centre stands a spinning beacon core surrounded by a grid of dark prismarine pillars and forty connectable maze walls.

Controlled by an unseen pulse, sections of the labyrinth glow with sculk energy and sink seamlessly into the floor, while submerged walls erupt upward with clouds of soul fire and enchant particles to reshape the corridors before your eyes.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 polished_deepslate
  3. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 chiseled_deepslate replace polished_deepslate
  4. /fill ~-8 ~ ~-8 ~8 ~2 ~8 dark_prismarine
  5. /fill ~-7 ~ ~-8 ~7 ~2 ~8 air
  6. /fill ~-3 ~ ~-8 ~3 ~2 ~8 dark_prismarine
  7. /fill ~-2 ~ ~-8 ~2 ~2 ~8 air
  8. /fill ~-8 ~ ~-7 ~8 ~2 ~7 air
  9. /execute as @e[tag=c9_tmp] run kill @s
  10. /summon block_display ~ ~1.5 ~ {Tags:["c9_l","c9_core"], glowing:1b, glow_color_override:65535, block_state:{Name:"minecraft:beacon"}, transformation:{translation:[-0.5f,-0.5f,-0.5f],scale:[1f,1f,1f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}

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

  1. /execute unless entity @e[tag=c9_p_done] run summon marker ~ ~ ~ {Tags:["c9_l","c9_p_done"]}
  2. /execute at @e[tag=c9_p_done,tag=!c9_built] run fill ~-8 ~ ~-8 ~8 ~3 ~8 dark_prismarine_slab[type=double] replace air
  3. /execute at @e[tag=c9_p_done,tag=!c9_built] run fill ~-7 ~ ~-7 ~7 ~3 ~7 air
  4. /scoreboard players add #tick c9_t 1
  5. /execute if score #tick c9_t matches 1..20 unless entity @e[tag=c9_max] run summon block_display ~ ~ ~ {Tags:["c9_l","c9_w","c9_init"],block_state:{Name:"minecraft:polished_deepslate"},interpolation_duration:25,teleport_duration:25}
  6. /execute if score #tick c9_t matches 20 run summon marker ~ ~ ~ {Tags:["c9_l","c9_max"]}
  7. /execute as @e[tag=c9_init] at @s run spreadplayers ~ ~ 2 6 false @s
  8. /execute as @e[tag=c9_init] at @s run tp @s ~ ~ ~
  9. /execute as @e[tag=c9_init] run data merge entity @s {Tags:["c9_l","c9_w","c9_up"],transformation:{translation:[-1.5f,0f,-0.4f],scale:[3f,2.5f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  10. /execute if score #tick c9_t matches 35.. run scoreboard players set #tick c9_t 21
  11. /execute if score #tick c9_t matches 22 as @e[tag=c9_w,limit=4,sort=random] at @s run particle sculk_soul ~ ~1.2 ~ 0.6 0.8 0.6 0.02 20 force
  12. /execute if score #tick c9_t matches 22 as @e[tag=c9_up,limit=3,sort=random] run data merge entity @s {Tags:["c9_l","c9_w","c9_dn"],start_interpolation:0,glowing:1b,glow_color_override:43775,transformation:{translation:[-1.5f,-2.6f,-0.4f],scale:[3f,2.5f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  13. /execute if score #tick c9_t matches 28 as @e[tag=c9_dn,limit=3,sort=random] at @s run playsound block.deepslate_bricks.place master @a ~ ~ ~ 0.7 0.6
  14. /execute if score #tick c9_t matches 28 as @e[tag=c9_dn,limit=3,sort=random] run data merge entity @s {Tags:["c9_l","c9_w","c9_up"],start_interpolation:0,glowing:0b,transformation:{translation:[-1.5f,0f,-0.4f],scale:[3f,2.5f,0.8f],left_rotation:[0f,0.707f,0f,0.707f],right_rotation:[0f,0f,0f,1f]}}

How it works

Frames from the test run

Self-Reconfiguring Labyrinth - frame 1Self-Reconfiguring Labyrinth - frame 2Self-Reconfiguring Labyrinth - frame 3

Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A sunken dark prismarine arena with a central beacon surrounded by dark wall segments that rotate and emit sculk 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. Stand at the centre of a flat area where you want your 19x19 labyrinth to appear.
  2. Run each of the 10 setup commands in your chat once to lay the deepslate floor and summon the glowing central beacon core.
  3. Place 14 repeating command blocks (or 1 repeating followed by 13 chained command blocks) nearby and set them all to Always Active.
  4. Paste the 14 loop commands into the blocks in order.
  5. Watch for 1 second as the 20 monolith walls populate the floor and begin sliding up, sinking down, and rotating automatically.

Use it with real players

Because block_display entities do not have physical collision boxes by default, players can walk through the visual walls. To add physical collision for a survival minigame, execute at every entity tagged c9_up to place temporary barrier blocks along its length, and fill those barriers back to air whenever a wall switches to the c9_dn tag.

Remove it again 4 commands

  1. /kill @e[tag=c9_l]
  2. /scoreboard objectives remove c9_t
  3. /fill ~-9 ~ ~-9 ~9 ~4 ~9 air
  4. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 grass_block

FAQ

Why do the walls slide smoothly instead of snapping like regular blocks?

They are block_display entities configured with an interpolation_duration of 25 ticks, allowing their scale, rotation, and translation to animate smoothly between states.

Can I change the material of the shifting maze walls?

Yes! In the fifth loop command, change minecraft:polished_deepslate inside block_state to any block you like, such as minecraft:stone_bricks or minecraft:oxidized_copper.

Commands used

/data/execute/fill/kill/particle/playsound/scoreboard/spreadplayers/summon/tp

Similar creations

Join 9Minecraft News & Guides