Shifting Labyrinth Maze Generator Grid

A 19x19 shifting labyrinth grid of rising stone pillars, glowing sea lantern caps, and rotating deepslate brick walls driven by a central crystal core.

Java EditionMini-games & UtilitiesExpert24 commandsTested on a real 26.2 & 26.3 server
Rotating stone barriers rise and sink in a checkerboard grid around a glowing, tilted central core. Download the GIF Video & GIF © www.9minecraft.net

Arenas & Mini-gamesMedievalMysticCyanBlackWhiteMini-gameMap MakingAdventure MapBlock displaysSmooth animation (interpolation)Riding & passengersBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands

This command creation turns a 19x19 stone brick arena into a living 4x4 labyrinth grid. Sixteen heavy stone pillars topped with glowing sea lanterns and wide deepslate brick barriers rise out of the floor, rotate 90 degrees to open and seal corridors, and sink back underground in an alternating checkerboard wave.

At the center of the open courtyard, a tilted cyan Labyrinth Core spins continuously above a glowing sea lantern pad while bursts of cyan and gold dust particles mark each maze shift.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-9 ~-1 ~-9 ~9 ~1 ~9 deepslate_bricks
  3. /fill ~-8 ~ ~-8 ~8 ~1 ~8 air
  4. /fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 stone_bricks
  5. /fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 sea_lantern
  6. /summon block_display ~ ~3.2 ~ {Tags:["c9_e","c9_core"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},teleport_duration:2,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0.3827f,0.9239f],right_rotation:[0f,0f,0f,1f],scale:[1.2f,1.2f,1.2f],translation:[0f,-0.8485f,-0.6f]}}
  7. /summon marker ~-6 ~ ~-6 {Tags:["c9_e","c9_row","c9_r0"]}
  8. /summon marker ~-6 ~ ~2 {Tags:["c9_e","c9_row","c9_r0"]}
  9. /summon marker ~-6 ~ ~-2 {Tags:["c9_e","c9_row","c9_r1"]}
  10. /summon marker ~-6 ~ ~6 {Tags:["c9_e","c9_row","c9_r1"]}

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

  1. /execute if score #t c9_t matches 1..2 as @e[tag=c9_r0] at @s run summon block_display ~ ~-2.3 ~ {Tags:["c9_e","c9_wall","c9_a"],teleport_duration:18,brightness:{sky:14,block:10},block_state:{Name:"minecraft:deepslate_bricks"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3.6f,2.1f,0.55f],translation:[-1.8f,0f,-0.275f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_e"],teleport_duration:18,brightness:{sky:14,block:10},block_state:{Name:"minecraft:stone_bricks"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.0f,2.3f,1.0f],translation:[-0.5f,0f,-0.5f]}},{id:"minecraft:block_display",Tags:["c9_e"],teleport_duration:18,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.25f,0.8f],translation:[-0.4f,2.2f,-0.4f]}}]}
  2. /execute if score #t c9_t matches 1..2 as @e[tag=c9_r1] at @s run summon block_display ~ ~ ~ {Tags:["c9_e","c9_wall","c9_b"],Rotation:[90f,0f],teleport_duration:18,brightness:{sky:14,block:10},block_state:{Name:"minecraft:deepslate_bricks"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3.6f,2.1f,0.55f],translation:[-1.8f,0f,-0.275f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_e"],teleport_duration:18,brightness:{sky:14,block:10},block_state:{Name:"minecraft:stone_bricks"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.0f,2.3f,1.0f],translation:[-0.5f,0f,-0.5f]}},{id:"minecraft:block_display",Tags:["c9_e"],teleport_duration:18,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.25f,0.8f],translation:[-0.4f,2.2f,-0.4f]}}]}
  3. /execute if score #t c9_t matches 1..2 as @e[tag=c9_r0] at @s run summon block_display ~4 ~ ~ {Tags:["c9_e","c9_wall","c9_b"],Rotation:[90f,0f],teleport_duration:18,brightness:{sky:14,block:10},block_state:{Name:"minecraft:deepslate_bricks"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3.6f,2.1f,0.55f],translation:[-1.8f,0f,-0.275f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_e"],teleport_duration:18,brightness:{sky:14,block:10},block_state:{Name:"minecraft:stone_bricks"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.0f,2.3f,1.0f],translation:[-0.5f,0f,-0.5f]}},{id:"minecraft:block_display",Tags:["c9_e"],teleport_duration:18,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.25f,0.8f],translation:[-0.4f,2.2f,-0.4f]}}]}
  4. /execute if score #t c9_t matches 1..2 as @e[tag=c9_r1] at @s run summon block_display ~4 ~-2.3 ~ {Tags:["c9_e","c9_wall","c9_a"],teleport_duration:18,brightness:{sky:14,block:10},block_state:{Name:"minecraft:deepslate_bricks"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3.6f,2.1f,0.55f],translation:[-1.8f,0f,-0.275f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_e"],teleport_duration:18,brightness:{sky:14,block:10},block_state:{Name:"minecraft:stone_bricks"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.0f,2.3f,1.0f],translation:[-0.5f,0f,-0.5f]}},{id:"minecraft:block_display",Tags:["c9_e"],teleport_duration:18,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.25f,0.8f],translation:[-0.4f,2.2f,-0.4f]}}]}
  5. /execute if score #t c9_t matches 1 as @e[tag=c9_row] at @s run tp @s ~8 ~ ~
  6. /scoreboard players add #t c9_t 1
  7. /execute if score #t c9_t matches 70.. run scoreboard players set #t c9_t 9
  8. /execute if score #t c9_t matches 10 as @e[tag=c9_a] at @s run tp @s ~ ~2.3 ~ ~90 ~
  9. /execute if score #t c9_t matches 10 as @e[tag=c9_b] at @s run tp @s ~ ~-2.3 ~
  10. /execute if score #t c9_t matches 40 as @e[tag=c9_b] at @s run tp @s ~ ~2.3 ~ ~90 ~
  11. /execute if score #t c9_t matches 40 as @e[tag=c9_a] at @s run tp @s ~ ~-2.3 ~
  12. /execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~6 ~
  13. /execute if score #t c9_t matches 10..22 as @e[tag=c9_a] at @s run particle dust{color:[0.1,0.9,1.0],scale:1.5} ~ ~1.2 ~ 0.8 0.8 0.8 0 4
  14. /execute if score #t c9_t matches 40..52 as @e[tag=c9_b] at @s run particle dust{color:[1.0,0.7,0.1],scale:1.5} ~ ~1.2 ~ 0.8 0.8 0.8 0 4

How it works

Frames from the test run

Shifting Labyrinth Maze Generator Grid - frame 1Shifting Labyrinth Maze Generator Grid - frame 2Shifting Labyrinth Maze Generator Grid - frame 3

Recorded on our own test server: 58 frames at about 9.6 fps. Our image check saw: A stone brick arena features a 4x4 grid of sea-lantern-topped deepslate barriers rising, rotating, and sinking in an alternating checkerboard pattern around a spinning, tilted cyan cube.

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 grassy area on the first air block above the grass.
  2. Run each of the 10 setup commands in chat in order to build the 19x19 arena, central crystal core, and grid row markers.
  3. Place 14 Repeating, Unconditional, Always Active command blocks nearby (or in a chain of 1 Repeating + 13 Chain Always Active command blocks).
  4. Make sure the loop commands execute relative to the arena center using execute positioned, or stand at the center when testing.
  5. Wait 1 second for the 16 labyrinth walls to finish spawning and watch the checkerboard maze shift every 1.5 seconds.

Use it with real players

To make the maze activate only when players enter the arena, change loop command 5 to /execute if entity @a[distance=..12] run scoreboard players add #t c9_t 1, or add real collision blocks by placing barrier blocks at raised c9_a and c9_b coordinates.

Remove it again 4 commands

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

FAQ

Why do the maze pillars have smooth rising and rotating motion instead of snapping?

Each wall uses a block_display entity with teleport_duration:18, so the client smoothly interpolates both its vertical position and its 90-degree yaw rotation over 18 ticks.

Can I change how fast the labyrinth shifts?

Yes. Lower the reset threshold in loop command 6 (for example from 70.. to 50..) and move the second shift from tick 40 to tick 30 for faster cycles.

Commands used

/execute/fill/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides