Seamless Mechanical Vault Gate

Build an animated sci-fi vault door in vanilla Minecraft using block display entities that spin, unlock, and slide apart with smooth interpolation.

Java EditionHolograms & Display EntitiesMedium24 commandsTested on a real 26.2 & 26.3 server
A custom mechanical vault gate in Minecraft opening smoothly using block display entities. Download the GIF Video & GIF © www.9minecraft.net

Machines & MechanismsTechnologyIndustrialWhiteRedOrangeMap MakingAdventure MapDecorationBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)Sounds21+ commands

Traditional piston doors are restricted to a rigid block grid and snappy one-block movements. By combining block_display entities with smooth matrix transformations and interpolation, we can create a heavy mechanical vault door that rotates a central locking gear before smoothly sliding its reinforced blast doors into the walls.

The doorway features a deepslate and copper frame, glowing sea lantern status lights, steam release bursts, and a central redstone core that spins and retracts into the ceiling while the two door halves part sideways.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /fill ~-5 ~ ~-1 ~5 ~7 ~1 deepslate_tiles
  3. /fill ~-4 ~ ~ ~4 ~6 ~ polished_deepslate
  4. /fill ~-3 ~ ~-1 ~3 ~5 ~1 air
  5. /fill ~-5 ~-1 ~-2 ~5 ~-1 ~2 waxed_oxidized_cut_copper
  6. /setblock ~-4 ~5 ~-1 sea_lantern
  7. /setblock ~4 ~5 ~-1 sea_lantern
  8. /summon block_display ~ ~2.5 ~ {Tags:["c9_ent","c9_left"],interpolation_duration:20,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3f,5f,0.8f],translation:[-3f,-2.5f,-0.4f]},block_state:{Name:"minecraft:iron_block"}}
  9. /summon block_display ~ ~2.5 ~ {Tags:["c9_ent","c9_right"],interpolation_duration:20,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3f,5f,0.8f],translation:[0f,-2.5f,-0.4f]},block_state:{Name:"minecraft:iron_block"}}
  10. /summon block_display ~ ~2.5 ~ {Tags:["c9_ent","c9_gear"],Glowing:1b,glow_color_override:16724787,interpolation_duration:15,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.6f,1.6f,1.1f],translation:[-0.8f,-0.8f,-0.55f]},block_state:{Name:"minecraft:redstone_block"}}

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

  1. /scoreboard players add #gate c9_timer 1
  2. /execute if score #gate c9_timer matches 160.. run scoreboard players set #gate c9_timer 0
  3. /execute if score #gate c9_timer matches 10 run data merge entity @e[tag=c9_gear,limit=1] {start_interpolation:0,interpolation_duration:15,transformation:{left_rotation:[0f,0f,0.3826834f,0.9238795f],right_rotation:[0f,0f,0f,1f],scale:[1.6f,1.6f,1.1f],translation:[0f,-1.13137f,-0.55f]}}
  4. /execute if score #gate c9_timer matches 10 run playsound block.iron_trapdoor.open master @a ~ ~2.5 ~ 2 0.5
  5. /execute if score #gate c9_timer matches 25 run data merge entity @e[tag=c9_gear,limit=1] {start_interpolation:0,interpolation_duration:20,transformation:{left_rotation:[0f,0f,0.3826834f,0.9238795f],right_rotation:[0f,0f,0f,1f],scale:[1.2f,1.2f,1.1f],translation:[0f,1.65f,-0.55f]}}
  6. /execute if score #gate c9_timer matches 25 run particle cloud ~ ~0.2 ~ 1.5 0.1 0.5 0.05 35 force
  7. /execute if score #gate c9_timer matches 35 run data merge entity @e[tag=c9_left,limit=1] {start_interpolation:0,interpolation_duration:30,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3f,5f,0.8f],translation:[-5.8f,-2.5f,-0.4f]}}
  8. /execute if score #gate c9_timer matches 35 run data merge entity @e[tag=c9_right,limit=1] {start_interpolation:0,interpolation_duration:30,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3f,5f,0.8f],translation:[2.8f,-2.5f,-0.4f]}}
  9. /execute if score #gate c9_timer matches 35 run playsound block.piston.contract master @a ~ ~2.5 ~ 2 0.5
  10. /execute if score #gate c9_timer matches 100 run data merge entity @e[tag=c9_left,limit=1] {start_interpolation:0,interpolation_duration:30,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3f,5f,0.8f],translation:[-3f,-2.5f,-0.4f]}}
  11. /execute if score #gate c9_timer matches 100 run data merge entity @e[tag=c9_right,limit=1] {start_interpolation:0,interpolation_duration:30,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3f,5f,0.8f],translation:[0f,-2.5f,-0.4f]}}
  12. /execute if score #gate c9_timer matches 125 run data merge entity @e[tag=c9_gear,limit=1] {start_interpolation:0,interpolation_duration:15,transformation:{left_rotation:[0f,0f,0.3826834f,0.9238795f],right_rotation:[0f,0f,0f,1f],scale:[1.6f,1.6f,1.1f],translation:[0f,-1.13137f,-0.55f]}}
  13. /execute if score #gate c9_timer matches 140 run data merge entity @e[tag=c9_gear,limit=1] {start_interpolation:0,interpolation_duration:15,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.6f,1.6f,1.1f],translation:[-0.8f,-0.8f,-0.55f]}}
  14. /execute if score #gate c9_timer matches 10..65 run particle electric_spark ~ ~2.5 ~ 2.5 2 0.6 0.1 4 force

How it works

Frames from the test run

Seamless Mechanical Vault Gate - frame 1Seamless Mechanical Vault Gate - frame 2Seamless Mechanical Vault Gate - frame 3

Recorded on our own test server: 68 frames at about 9.7 fps. Our image check saw: A deepslate and copper doorway with iron blast doors and a central redstone block that opens smoothly by sliding the panels into the frame.

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 where you want the center of your vault doorway to be and run each of the 10 setup commands in chat to build the deepslate frame and summon the three door segments.
  2. Place a repeating command block set to Always Active underneath or behind the doorway.
  3. Chain 13 conditional or unconditional chain command blocks (Always Active) off the repeating command block.
  4. Paste the 14 loop commands in order into the command block chain, making sure any coordinate-dependent commands use <code>execute positioned X Y Z run ...</code> matching your doorway center.
  5. Watch the central lock twist, vent steam, retract upward, and slide the two heavy iron panels apart on an 8-second cycle.

Use it with real players

To make the vault gate open only when a player approaches instead of cycling on a loop, replace the first two loop commands with a proximity counter: /execute if entity @a[distance=..6] if score #gate c9_timer matches ..65 run scoreboard players add #gate c9_timer 1 to play the opening sequence up to tick 65 when someone is near, and trigger the closing ticks (100 to 155) only when unless entity @a[distance=..6] is true.

Remove it again 4 commands

  1. /kill @e[tag=c9_ent]
  2. /scoreboard objectives remove c9_timer
  3. /fill ~-5 ~ ~-2 ~5 ~7 ~2 air
  4. /fill ~-5 ~-1 ~-2 ~5 ~-1 ~2 grass_block

FAQ

Why can players walk right through the closed iron blast doors?

Block display entities are purely visual and do not have collision hitboxes. If you want physical collision in your world, you can summon invisible shulkers or place and remove <code>barrier</code> blocks inside the doorway cavity when the timer reaches ticks 35 and 100.

How do I change the blocks used for the door panels and the locking gear?

In the last three setup commands, change <code>minecraft:iron_block</code> or <code>minecraft:redstone_block</code> inside the <code>block_state</code> tag to any solid block ID such as <code>minecraft:NETHERITE_block</code> or <code>minecraft:copper_block</code>.

Commands used

/data/execute/fill/particle/playsound/scoreboard/setblock/summon

Similar creations

Join 9Minecraft News & Guides