Build a self-reconfiguring labyrinth in Minecraft Java using commands, featuring an ancient core and glowing maze walls that rise and sink smoothly.
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.
/scoreboard objectives add c9_t dummy/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 polished_deepslate/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 chiseled_deepslate replace polished_deepslate/fill ~-8 ~ ~-8 ~8 ~2 ~8 dark_prismarine/fill ~-7 ~ ~-8 ~7 ~2 ~8 air/fill ~-3 ~ ~-8 ~3 ~2 ~8 dark_prismarine/fill ~-2 ~ ~-8 ~2 ~2 ~8 air/fill ~-8 ~ ~-7 ~8 ~2 ~7 air/execute as @e[tag=c9_tmp] run kill @s/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]}}/execute unless entity @e[tag=c9_p_done] run summon marker ~ ~ ~ {Tags:["c9_l","c9_p_done"]}/execute at @e[tag=c9_p_done,tag=!c9_built] run fill ~-8 ~ ~-8 ~8 ~3 ~8 dark_prismarine_slab[type=double] replace air/execute at @e[tag=c9_p_done,tag=!c9_built] run fill ~-7 ~ ~-7 ~7 ~3 ~7 air/scoreboard players add #tick c9_t 1/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}/execute if score #tick c9_t matches 20 run summon marker ~ ~ ~ {Tags:["c9_l","c9_max"]}/execute as @e[tag=c9_init] at @s run spreadplayers ~ ~ 2 6 false @s/execute as @e[tag=c9_init] at @s run tp @s ~ ~ ~/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]}}/execute if score #tick c9_t matches 35.. run scoreboard players set #tick c9_t 21/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/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]}}/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/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]}}setup #2 Replaces the centre 19x19 grass floor with chiseled and polished deepslate to form the dark labyrinth foundation.setup #10 Summons a glowing cyan beacon block display floating above the centre of the maze to act as the labyrinth's power core.loop #5 During the first 20 ticks, spawns 20 oversized block display walls with a 25-tick interpolation duration for smooth vertical sliding.loop #7 Uses spreadplayers to distribute the freshly spawned maze walls across the arena floor.loop #12 Every cycle, picks 3 random raised walls, highlights them with a cyan glow, and smoothly interpolates their vertical translation down into the floor.loop #14 Picks 3 sunken walls, rotates their orientation by 90 degrees using quaternion rotation, and slides them back up out of the floor.


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.
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.
/kill @e[tag=c9_l]/scoreboard objectives remove c9_t/fill ~-9 ~ ~-9 ~9 ~4 ~9 air/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 grass_blockThey are block_display entities configured with an interpolation_duration of 25 ticks, allowing their scale, rotation, and translation to animate smoothly between states.
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.
/data/execute/fill/kill/particle/playsound/scoreboard/spreadplayers/summon/tp
▶Levitating Ancient Obelisk Rune AssemblyMoving StructuresEasy24 cmds
▶Victorian Ship-in-a-Bottle Mast ErectionMoving StructuresHard24 cmds
▶Gothic Drawbridge & Portcullis WinchMoving StructuresMedium24 cmds
▶Kinetic Chandelier Crystal Rain CascadeMoving StructuresHard24 cmds
▶Steampunk Leviathan Breach & SubmergeMoving StructuresExpert23 cmds
▶Aztec Sun-Stone Calendar Eclipse AlignmentMoving StructuresHard21 cmds