Mechanical Vault Door

Build an industrial copper and deepslate vault door in Minecraft Java using display entities that spin a central locking wheel, pop outward, and slide open.

Java EditionHolograms & Display EntitiesMedium24 commandsTested on a real 26.2 & 26.3 server
A mechanical iron and copper vault door spins its central gear and slides open inside a deepslate frame. Download the GIF Video & GIF © www.9minecraft.net

Machines & MechanismsIndustrialTechnologyOrangeBlackWhiteMap MakingAdventure MapDecorationBlock displaysItem displaysSmooth animation (interpolation)Block building (fill/setblock/clone)21+ commands

Traditional piston doors are boxy and noisy, but display entities allow for clean, fluid motion. This command setup constructs a massive industrial vault archway out of deepslate tiles and copper with a heavy blast door that pops outward on hinges, spins a central gear wheel, and slides smoothly to the side.

Because the door is hollow all the way through on both the north and south faces, you can watch the glowing vault portal inside from any angle as steam vents and friction sparks fly off the tracks.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard players set #door c9_t 0
  3. /fill ~-6 ~ ~-1 ~6 ~7 ~1 deepslate_tiles
  4. /fill ~-4 ~ ~-1 ~4 ~6 ~1 chiseled_copper
  5. /fill ~-3 ~1 ~-1 ~3 ~5 ~1 air
  6. /fill ~-3 ~1 ~ ~3 ~1 ~ sea_lantern
  7. /summon block_display ~ ~3 ~ {Tags:["c9_all","c9_core"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:iron_block"},transformation:{left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f],translation:[-3.0f,-2.0f,-1.1f],scale:[6.0f,4.0f,2.2f]}}
  8. /summon block_display ~ ~3 ~ {Tags:["c9_all","c9_rim"],Glowing:1b,glow_color_override:16744192,brightness:{sky:15,block:15},block_state:{Name:"minecraft:waxed_copper_block"},transformation:{left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f],translation:[-2.2f,-1.2f,-1.3f],scale:[4.4f,2.4f,2.6f]}}
  9. /summon item_display ~ ~3 ~ {Tags:["c9_all","c9_wheel"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},item:{id:"minecraft:lodestone",count:1},transformation:{left_rotation:[0.0f,0.0f,0.383f,0.924f],right_rotation:[0.0f,0.0f,0.0f,1.0f],translation:[0.0f,0.0f,0.0f],scale:[2.2f,2.2f,3.1f]}}
  10. /summon item_display ~ ~3 ~ {Tags:["c9_all","c9_hub"],Glowing:1b,glow_color_override:16766720,brightness:{sky:15,block:15},item:{id:"minecraft:waxed_copper_grate",count:1},transformation:{left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f],translation:[0.0f,0.0f,0.0f],scale:[2.6f,2.6f,3.4f]}}

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

  1. /scoreboard players add #door c9_t 1
  2. /execute if score #door c9_t matches 140.. run scoreboard players set #door c9_t 0
  3. /execute if score #door c9_t matches 5 as @e[tag=c9_wheel] run data merge entity @s {start_interpolation:0,interpolation_duration:18,transformation:{left_rotation:[0.0f,0.0f,0.924f,0.383f],right_rotation:[0.0f,0.0f,0.0f,1.0f],translation:[0.0f,0.0f,0.0f],scale:[2.2f,2.2f,4.1f]}}
  4. /execute if score #door c9_t matches 5 as @e[tag=c9_hub] run data merge entity @s {start_interpolation:0,interpolation_duration:18,transformation:{left_rotation:[0.0f,0.0f,0.707f,0.707f],right_rotation:[0.0f,0.0f,0.0f,1.0f],translation:[0.0f,0.0f,0.0f],scale:[2.6f,2.6f,4.4f]}}
  5. /execute if score #door c9_t matches 8 as @e[tag=c9_core] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f],translation:[-3.0f,-2.0f,-1.6f],scale:[6.0f,4.0f,3.2f]}}
  6. /execute if score #door c9_t matches 8 as @e[tag=c9_rim] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f],translation:[-2.2f,-1.2f,-1.8f],scale:[4.4f,2.4f,3.6f]}}
  7. /execute if score #door c9_t matches 5..25 run particle campfire_cosy_smoke ~ ~3 ~ 3.2 0.2 1.6 0.03 8 force
  8. /execute if score #door c9_t matches 26 as @e[tag=c9_core] run data merge entity @s {start_interpolation:0,interpolation_duration:32,transformation:{left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f],translation:[2.8f,-2.0f,-1.6f],scale:[6.0f,4.0f,3.2f]}}
  9. /execute if score #door c9_t matches 26 as @e[tag=c9_rim] run data merge entity @s {start_interpolation:0,interpolation_duration:32,transformation:{left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f],translation:[3.6f,-1.2f,-1.8f],scale:[4.4f,2.4f,3.6f]}}
  10. /execute if score #door c9_t matches 26 as @e[tag=c9_wheel] run data merge entity @s {start_interpolation:0,interpolation_duration:32,transformation:{left_rotation:[0.0f,0.0f,1.0f,0.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f],translation:[5.8f,0.0f,0.0f],scale:[2.2f,2.2f,4.1f]}}
  11. /execute if score #door c9_t matches 26 as @e[tag=c9_hub] run data merge entity @s {start_interpolation:0,interpolation_duration:32,transformation:{left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f],translation:[5.8f,0.0f,0.0f],scale:[2.6f,2.6f,4.4f]}}
  12. /execute if score #door c9_t matches 26..58 run particle lava ~1.5 ~1.1 ~ 2.0 0.1 1.5 0.1 5 force
  13. /execute if score #door c9_t matches 58..88 run particle end_rod ~ ~3 ~ 1.8 1.4 0.5 0.02 6 force
  14. /execute if score #door c9_t matches 90 as @e[tag=c9_core] run data merge entity @s {start_interpolation:0,interpolation_duration:36,transformation:{left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f],translation:[-3.0f,-2.0f,-1.1f],scale:[6.0f,4.0f,2.2f]}}

How it works

Frames from the test run

Mechanical Vault Door - frame 1Mechanical Vault Door - frame 2Mechanical Vault Door - frame 3

Recorded on our own test server: 51 frames at about 8.4 fps. Our image check saw: A deepslate tile and copper archway with an iron block door that rotates a glowing copper grate wheel and slides open to the right with smoke and flame particles.

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 spot where you want the center of your vault archway to be built.
  2. Run each of the 10 setup commands in chat or in impulse command blocks powered once.
  3. Place a chain of 14 command blocks nearby: the first set to Repeating, Unconditional, Always Active, and the remaining 13 set to Chain, Unconditional, Always Active.
  4. Paste the 14 loop commands in order into the repeating chain.
  5. Watch the central locking wheel rotate and vent steam before the entire blast door pops out of its frame and slides open.

Use it with real players

To make the vault door open only when a player approaches instead of looping automatically, replace the first two timer commands in the loop with /execute if entity @a[distance=..8] if score #door c9_t matches ..58 run scoreboard players add #door c9_t 1 so the sequence advances when someone steps near the vault.

Remove it again 3 commands

  1. /kill @e[tag=c9_all]
  2. /fill ~-6 ~ ~-1 ~6 ~7 ~1 air
  3. /scoreboard objectives remove c9_t

FAQ

Can players walk through the display entity door while it is closed?

Display entities do not have built-in collision boxes. If you want physical collision while closed, you can place and clear barrier blocks inside the doorway frame timed to the scoreboard.

How do I change the speed of the vault door sliding open?

Edit the interpolation_duration value inside the tick 26 data merge commands. A smaller number makes the door slide faster, while a higher number gives it a heavier, slower movement.

Commands used

/data/execute/fill/particle/scoreboard/summon

Similar creations

Join 9Minecraft News & Guides