Build an animated sci-fi vault door in vanilla Minecraft using block display entities that spin, unlock, and slide apart with smooth interpolation.
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.
/scoreboard objectives add c9_timer dummy/fill ~-5 ~ ~-1 ~5 ~7 ~1 deepslate_tiles/fill ~-4 ~ ~ ~4 ~6 ~ polished_deepslate/fill ~-3 ~ ~-1 ~3 ~5 ~1 air/fill ~-5 ~-1 ~-2 ~5 ~-1 ~2 waxed_oxidized_cut_copper/setblock ~-4 ~5 ~-1 sea_lantern/setblock ~4 ~5 ~-1 sea_lantern/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"}}/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"}}/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"}}/scoreboard players add #gate c9_timer 1/execute if score #gate c9_timer matches 160.. run scoreboard players set #gate c9_timer 0/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]}}/execute if score #gate c9_timer matches 10 run playsound block.iron_trapdoor.open master @a ~ ~2.5 ~ 2 0.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]}}/execute if score #gate c9_timer matches 25 run particle cloud ~ ~0.2 ~ 1.5 0.1 0.5 0.05 35 force/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]}}/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]}}/execute if score #gate c9_timer matches 35 run playsound block.piston.contract master @a ~ ~2.5 ~ 2 0.5/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]}}/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]}}/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]}}/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]}}/execute if score #gate c9_timer matches 10..65 run particle electric_spark ~ ~2.5 ~ 2.5 2 0.6 0.1 4 forcesetup #8 Summons the left half of the blast door as a <code>block_display</code> entity scaled to 3 blocks wide, 5 blocks tall, and 0.8 blocks thick, offset so its right edge meets the exact center of the doorway.setup #10 Summons the central redstone locking gear with a red glowing outline and slightly thicker Z-scale (1.1) so it visibly protrudes from the iron blast doors.loop #3 At tick 10, uses a quaternion <code>left_rotation</code> on the Z-axis to smoothly rotate the central locking core by 45 degrees into a diamond orientation over 15 ticks.loop #5 At tick 25, shrinks the rotated locking gear slightly and translates it upward into the upper vault frame before the main doors begin moving.loop #7 At tick 35, slides the left door display entity 2.8 blocks left into the deepslate wall cavity over 30 ticks (1.5 seconds). Command 7 does the exact mirror image for the right door.


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.
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.
/kill @e[tag=c9_ent]/scoreboard objectives remove c9_timer/fill ~-5 ~ ~-2 ~5 ~7 ~2 air/fill ~-5 ~-1 ~-2 ~5 ~-1 ~2 grass_blockBlock 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.
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>.
/data/execute/fill/particle/playsound/scoreboard/setblock/summon
▶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