Build a ten-block tall mechanical vault gate in vanilla Minecraft using block displays that rotate a golden lock, retract copper bars, and slide open.
Machines & MechanismsIndustrialTechnologyRoyalGoldGreenPurpleAdventure MapMap MakingServer LobbyBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)21+ commands
This command creation builds a ten-block tall mechanical vault gate framed in deepslate bricks and copper. Instead of static blocks, the door panels, four heavy copper locking bars, and a glowing central golden lock are made from smooth-moving block display entities.
When the mechanism triggers, the golden core rotates 90 degrees and sinks into the door while releasing steam particles. Next, the four copper locking bars slide outward into the frame, and the two massive reinforced door panels retract and part sideways to reveal a brightly lit treasure chamber filled with gold, emerald, and amethyst blocks.
/scoreboard objectives add c9_vt dummy/fill ~-7 ~ ~-5 ~7 ~11 ~1 deepslate_bricks/fill ~-5 ~1 ~-4 ~5 ~10 ~-1 sea_lantern/fill ~-4 ~1 ~-4 ~4 ~9 ~-1 gold_block/fill ~-3 ~2 ~-3 ~3 ~8 ~-1 amethyst_block/fill ~-2 ~3 ~-3 ~2 ~7 ~-1 emerald_block/fill ~-5 ~1 ~ ~5 ~10 ~1 air/summon block_display ~ ~ ~ {Tags:["c9_v","c9_v_dl"],brightness:{sky:15,block:15},interpolation_duration:20,block_state:{Name:"minecraft:reinforced_deepslate"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[5f,10f,1f],translation:[-5f,1f,-0.5f]}}/summon block_display ~ ~ ~ {Tags:["c9_v","c9_v_dr"],brightness:{sky:15,block:15},interpolation_duration:20,block_state:{Name:"minecraft:reinforced_deepslate"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[5f,10f,1f],translation:[0f,1f,-0.5f]}}/summon block_display ~ ~6 ~ {Tags:["c9_v","c9_v_core"],Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},interpolation_duration:20,block_state:{Name:"minecraft:gold_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[2.6f,2.6f,1.8f],translation:[-1.3f,-1.3f,-0.8f]}}/scoreboard players add #t c9_vt 1/execute if score #t c9_vt matches 160.. run scoreboard players set #t c9_vt 1/execute if score #t c9_vt matches 1 unless entity @e[tag=c9_v_bl] run summon block_display ~ ~ ~ {Tags:["c9_v","c9_v_bl"],Glowing:1b,glow_color_override:16744231,brightness:{sky:15,block:15},block_state:{Name:"minecraft:waxed_copper_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[4.8f,1.2f,1.4f],translation:[-5f,7.5f,-0.6f]}}/execute if score #t c9_vt matches 1 unless entity @e[tag=c9_v_bl2] run summon block_display ~ ~ ~ {Tags:["c9_v","c9_v_bl"],Glowing:1b,glow_color_override:16744231,brightness:{sky:15,block:15},block_state:{Name:"minecraft:waxed_copper_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[4.8f,1.2f,1.4f],translation:[-5f,3.3f,-0.6f]}}/execute if score #t c9_vt matches 1 unless entity @e[tag=c9_v_br] run summon block_display ~ ~ ~ {Tags:["c9_v","c9_v_br"],Glowing:1b,glow_color_override:16744231,brightness:{sky:15,block:15},block_state:{Name:"minecraft:waxed_copper_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[4.8f,1.2f,1.4f],translation:[0.2f,7.5f,-0.6f]}}/execute if score #t c9_vt matches 1 unless entity @e[tag=c9_v_br2] run summon block_display ~ ~ ~ {Tags:["c9_v","c9_v_br","c9_v_br2","c9_v_bl2"],Glowing:1b,glow_color_override:16744231,brightness:{sky:15,block:15},block_state:{Name:"minecraft:waxed_copper_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[4.8f,1.2f,1.4f],translation:[0.2f,3.3f,-0.6f]}}/execute if score #t c9_vt matches 10 as @e[tag=c9_v_core] run data merge entity @s {start_interpolation:0,interpolation_duration:18,transformation:{left_rotation:[0f,0f,0.7071f,0.7071f],right_rotation:[0f,0f,0f,1f],scale:[1.6f,1.6f,1.8f],translation:[0f,-1.13f,-1.2f]}}/execute if score #t c9_vt matches 10..80 run particle end_rod ~ ~6 ~0.8 4 4 0.3 0.05 6 force/execute if score #t c9_vt matches 28 as @e[tag=c9_v_bl] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.6f,1.2f,1.4f],translation:[-5.4f,5.4f,-0.6f]}}/execute if score #t c9_vt matches 28 as @e[tag=c9_v_br] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.6f,1.2f,1.4f],translation:[4.8f,5.4f,-0.6f]}}/execute if score #t c9_vt matches 45 as @e[tag=c9_v_dl] run data merge entity @s {start_interpolation:0,interpolation_duration:30,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.6f,10f,1f],translation:[-5.5f,1f,-0.8f]}}/execute if score #t c9_vt matches 45 as @e[tag=c9_v_dr] run data merge entity @s {start_interpolation:0,interpolation_duration:30,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.6f,10f,1f],translation:[4.9f,1f,-0.8f]}}/execute if score #t c9_vt matches 45..75 run particle cloud ~ ~1.5 ~0.5 4.5 0.3 0.2 0.03 12 force/execute if score #t c9_vt matches 135 as @e[tag=c9_v_dl] run data merge entity @s {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[5f,10f,1f],translation:[-5f,1f,-0.5f]}}setup #8 Summons the left half of the colossal door using a <code>block_display</code> scaled to 5 blocks wide and 10 blocks tall, with full sky and block brightness so its reinforced deepslate texture stands out clearly.setup #10 Summons the central golden lock block display at the center of the gate with an orange-gold glowing outline.loop #7 At tick 10, rotates the golden central lock 45 degrees on the Z axis using a quaternion rotation and shrinks it backward into the vault door over 18 ticks.loop #9 At tick 28, retracts the left copper locking bars into the side frame using smooth display interpolation.loop #11 At tick 45, slides the left 10-block tall reinforced deepslate door panel open into the side wall to expose the glowing treasure chamber behind it.


Recorded on our own test server: 57 frames at about 9.4 fps. Our image check saw: A large deepslate brick frame encloses a vault filled with emerald, amethyst, gold, and sea lantern blocks, while heavy reinforced deepslate door panels with a glowing golden core open and close with white particle effects.
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 gate open only when a player walks up to it instead of cycling automatically, replace the first loop command with /execute if entity @a[distance=..10] if score #t c9_vt matches ..110 run scoreboard players add #t c9_vt 1 so the sequence advances and holds open while a player stands within 10 blocks.
/kill @e[tag=c9_v]/fill ~-7 ~ ~-5 ~7 ~11 ~1 air/scoreboard objectives remove c9_vtThey are block_display entities rather than placed blocks. Using the start_interpolation and interpolation_duration NBT tags tells Minecraft to animate the scale and translation smoothly over the specified number of ticks.
Yes! Because the doorway opening is filled with air blocks during setup and the moving doors are non-solid block_display entities, players can walk right into the treasure room once the panels slide open.
▶Steampunk Astrolabe GyroscopeMachines & MechanismsMedium24 cmds
▶Steampunk Printing Press Newspaper RollMachines & MechanismsHard24 cmds
▶Victorian Phonograph Soundwave VisualizerMachines & MechanismsMedium24 cmds
▶Holographic Magnetic Tokamak Fusion ConfinementMachines & MechanismsExpert26 cmds
▶Kinematic Radial Aircraft Engine IgnitionMachines & MechanismsExpert24 cmds
▶Kinematic V8 Engine Piston CutawayMachines & MechanismsExpert24 cmds