An automated industrial vault whose heavy 7x7 octagonal steel door unseals with steam, spins a copper wheel, and rolls aside via block cloning.
Machines & MechanismsIndustrialTechnologyOrangeCyanBlackMap MakingAdventure MapDecorationItem displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)21+ commands
Watch a massive deepslate bunker gate come to life on its own. Thick clouds of steam hiss out of the seams before a 7x7 octagonal iron and copper vault door shifts block by block along steel rails, revealing a glowing sea lantern chamber inside.
By pairing rapid frame-by-frame /clone commands with a spinning item_display copper grate wheel, the door moves with real physical blocks while keeping smooth rotational motion and rail sparks.
/scoreboard objectives add c9_vault dummy/fill ~-7 ~0 ~-4 ~12 ~9 ~0 minecraft:deepslate_bricks hollow/fill ~-3 ~1 ~0 ~3 ~7 ~0 minecraft:air/fill ~-7 ~0 ~1 ~12 ~0 ~2 minecraft:polished_deepslate/fill ~-7 ~8 ~1 ~12 ~8 ~1 minecraft:polished_deepslate/fill ~-3 ~2 ~1 ~3 ~6 ~1 minecraft:copper_block/fill ~-2 ~1 ~1 ~2 ~7 ~1 minecraft:copper_block/fill ~-2 ~2 ~1 ~2 ~6 ~1 minecraft:iron_block/fill ~-1 ~3 ~-3 ~1 ~5 ~-3 minecraft:sea_lantern/summon minecraft:item_display ~0 ~4 ~1 {Tags:["c9_door"],item:{id:"minecraft:waxed_copper_grate",count:1},item_display:"none",teleport_duration:3,interpolation_duration:3,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0.5f,0.5f,1.15f],scale:[3.2f,3.2f,0.35f]}}/scoreboard players add @e[tag=c9_door,limit=1] c9_vault 1/scoreboard players add #step c9_vault 1/execute if score #step c9_vault matches 4.. run scoreboard players set #step c9_vault 0/execute if score @e[tag=c9_door,limit=1] c9_vault matches 65..99 at @e[tag=c9_door,limit=1] run particle minecraft:dust{color:[0.1,0.9,1.0],scale:1.8} ~-7.5 ~0.5 ~-2.5 1.5 1.5 0.5 0 8/execute if score @e[tag=c9_door,limit=1] c9_vault matches 15..35 at @e[tag=c9_door,limit=1] run particle minecraft:cloud ~0.5 ~0.5 ~1.2 2.4 2.4 0.2 0.04 5/execute if score @e[tag=c9_door,limit=1] c9_vault matches 36..64 if score #step c9_vault matches 0 at @e[tag=c9_door,limit=1] run clone ~-3 ~-3 ~0 ~3 ~3 ~0 ~-2 ~-3 ~0 replace move/execute if score @e[tag=c9_door,limit=1] c9_vault matches 36..64 if score #step c9_vault matches 0 at @e[tag=c9_door,limit=1] run tp @e[tag=c9_door,limit=1] ~1 ~ ~/execute if score @e[tag=c9_door,limit=1] c9_vault matches 100..128 if score #step c9_vault matches 0 at @e[tag=c9_door,limit=1] run clone ~-3 ~-3 ~0 ~3 ~3 ~0 ~-4 ~-3 ~0 replace move/execute if score @e[tag=c9_door,limit=1] c9_vault matches 100..128 if score #step c9_vault matches 0 at @e[tag=c9_door,limit=1] run tp @e[tag=c9_door,limit=1] ~-1 ~ ~/execute if score @e[tag=c9_door,limit=1] c9_vault matches 36..64 if score #step c9_vault matches 0 run data merge entity @e[tag=c9_door,limit=1] {start_interpolation:0,interpolation_duration:3,transformation:{left_rotation:[0f,0f,0.7071f,0.7071f]}}/execute if score @e[tag=c9_door,limit=1] c9_vault matches 100..128 if score #step c9_vault matches 0 run data merge entity @e[tag=c9_door,limit=1] {start_interpolation:0,interpolation_duration:3,transformation:{left_rotation:[0f,0f,-0.7071f,0.7071f]}}/execute if score #step c9_vault matches 3 run data merge entity @e[tag=c9_door,limit=1] {start_interpolation:0,interpolation_duration:0,transformation:{left_rotation:[0f,0f,0f,1f]}}/execute if score @e[tag=c9_door,limit=1] c9_vault matches 36..64 at @e[tag=c9_door,limit=1] run particle minecraft:flame ~0.5 ~-3.0 ~0.5 2.5 0.1 0.2 0.05 8/execute if score @e[tag=c9_door,limit=1] c9_vault matches 140.. run scoreboard players set @e[tag=c9_door,limit=1] c9_vault 0setup #6 Using two overlapping <code>/fill</code> commands of <code>copper_block</code> (7x5 and 5x7) trims the corners off to build a chunky octagonal vault door, then centers an <code>iron_block</code> plate inside it.setup #10 Spawns the <code>item_display</code> wheel tagged <code>c9_door</code> at the door's origin. Because item displays are centered around <code>(0,0,0)</code>, its <code>left_rotation</code> spins smoothly around the axle while <code>translation</code> keeps it mounted on the front face.loop #6 Every 4 ticks (when <code>#step</code> is 0) during ticks 36 to 64, <code>/clone ... replace move</code> lifts the entire 7x7 door and shifts it 1 block to the right along the rails.loop #10 Rotates the copper grate wheel by 90 degrees over 3 ticks as the door moves, then tick 3 of each 4-tick cycle snaps it invisibly back to 0 degrees so it spins continuously.


Recorded on our own test server: 69 frames at about 9.8 fps. Our image check saw: An octagonal copper and iron vault door with a rotating grate slides sideways along a deepslate wall with smoke and spark particles, revealing a recessed wall of glowing sea lanterns.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To make the vault open only when a player approaches, add if entity @p[distance=..8] before run scoreboard players add @e[tag=c9_door,limit=1] c9_vault 1 when the score is 0, and let the timer pause at tick 80 while @p[distance=..8] is still nearby so the door stays open until you leave.
/kill @e[tag=c9_door]/scoreboard objectives remove c9_vault/fill ~-7 ~0 ~-4 ~12 ~9 ~2 minecraft:airThe door itself is made of real solid blocks shifted by <code>/clone ... replace move</code>, which means you can actually walk through the doorway when it opens and cannot walk through it when it is sealed.
Yes. Once the setup commands finish, you can replace the inside of the <code>deepslate_bricks</code> chamber behind the door with chests, armor stands, or treasure blocks without affecting the rolling mechanism.
▶Steampunk Astrolabe GyroscopeMachines & MechanismsMedium24 cmds
▶Steampunk Printing Press Newspaper RollMachines & MechanismsHard24 cmds
▶Holographic Magnetic Tokamak Fusion ConfinementMachines & MechanismsExpert26 cmds
▶Kinematic Radial Aircraft Engine IgnitionMachines & MechanismsExpert24 cmds
▶Kinematic V8 Engine Piston CutawayMachines & MechanismsExpert24 cmds
▶Kinetic Moiré Pattern Interference SculptureMachines & MechanismsMedium23 cmds