Build a multi-stage mechanical vault door in Minecraft Java Edition using block_display entities and smooth transformation interpolation.
Machines & MechanismsIndustrialTechnologyWhiteGoldBlackMap MakingAdventure MapDecorationBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)Sounds21+ commands
Traditional piston doors move on a strict one-block grid and make a lot of clanking noise. By using block_display entities and transformation interpolation, you can build a heavy mechanical vault door that smoothly spins a central locking wheel before sliding the massive blast doors apart to reveal a glowing diamond vault inside.
Because display entities can scale to fractional sizes and glide smoothly between positions, the door panels and golden locking mechanism move cleanly in front of the deepslate archway with steam, sparks, and golden treasure particles pouring out when the vault opens.
/scoreboard objectives add c9_vt dummy/fill ~-6 ~ ~-3 ~6 ~7 ~3 deepslate_tiles/fill ~-4 ~1 ~-2 ~4 ~5 ~2 sea_lantern/fill ~-3 ~1 ~-1 ~3 ~5 ~1 diamond_block/fill ~-3 ~1 ~-1 ~3 ~5 ~3 air/fill ~-4 ~ ~2 ~4 ~6 ~3 polished_deepslate/fill ~-3 ~1 ~2 ~3 ~5 ~3 air/summon block_display ~ ~ ~2.2 {Tags:["c9_v","c9_v_ctrl","c9_v_dl"],Glowing:1b,glow_color_override:5636095,brightness:{sky:15,block:15},interpolation_duration:20,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3.1f,5.0f,0.9f],translation:[-3.1f,1.0f,-0.4f]},block_state:{Name:"minecraft:iron_block"}}/summon block_display ~ ~ ~2.2 {Tags:["c9_v","c9_v_dr"],Glowing:1b,glow_color_override:5636095,brightness:{sky:15,block:15},interpolation_duration:20,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3.1f,5.0f,0.9f],translation:[0.0f,1.0f,-0.4f]},block_state:{Name:"minecraft:iron_block"}}/summon block_display ~ ~ ~2.6 {Tags:["c9_v","c9_v_wh"],Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},interpolation_duration:20,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1.8f,1.0f],translation:[-0.9f,2.6f,-0.4f]},block_state:{Name:"minecraft:gold_block"}}/execute as @e[tag=c9_v_ctrl] run scoreboard players add @s c9_vt 1/execute as @e[tag=c9_v_ctrl,scores={c9_vt=120..}] run scoreboard players set @s c9_vt 0/execute if entity @e[tag=c9_v_ctrl,scores={c9_vt=5}] as @e[tag=c9_v_wh] run data merge entity @s {start_interpolation:0,interpolation_duration:18,transformation:{left_rotation:[0f,0f,0.383f,0.924f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1.8f,1.0f],translation:[0.0f,2.23f,-0.4f]}}/execute if entity @e[tag=c9_v_ctrl,scores={c9_vt=5}] run playsound minecraft:block.iron_trapdoor.open master @a ~ ~3 ~3 1.5 0.6/execute if entity @e[tag=c9_v_ctrl,scores={c9_vt=5..23}] run particle electric_spark ~ ~3.5 ~3.3 0.8 0.8 0.2 0.2 10 force/execute if entity @e[tag=c9_v_ctrl,scores={c9_vt=25}] as @e[tag=c9_v_dl] run data merge entity @s {start_interpolation:0,interpolation_duration:28,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3.1f,5.0f,0.9f],translation:[-5.8f,1.0f,-0.1f]}}/execute if entity @e[tag=c9_v_ctrl,scores={c9_vt=25}] as @e[tag=c9_v_dr] run data merge entity @s {start_interpolation:0,interpolation_duration:28,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3.1f,5.0f,0.9f],translation:[2.7f,1.0f,-0.1f]}}/execute if entity @e[tag=c9_v_ctrl,scores={c9_vt=25}] as @e[tag=c9_v_wh] run data merge entity @s {start_interpolation:0,interpolation_duration:28,transformation:{left_rotation:[0f,0f,0.383f,0.924f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1.8f,1.0f],translation:[-2.7f,2.23f,-0.1f]}}/execute if entity @e[tag=c9_v_ctrl,scores={c9_vt=25}] run playsound minecraft:block.piston.contract master @a ~ ~3 ~3 1.5 0.5/execute if entity @e[tag=c9_v_ctrl,scores={c9_vt=25..53}] run particle cloud ~ ~1.2 ~3.2 2.2 0.2 0.2 0.03 5 force/execute if entity @e[tag=c9_v_ctrl,scores={c9_vt=35..85}] run particle dust{color:[1.0,0.85,0.2],scale:2.0} ~ ~3.2 ~1.5 1.5 1.5 1.0 0.02 8 force/execute if entity @e[tag=c9_v_ctrl,scores={c9_vt=85}] as @e[tag=c9_v_dl] run data merge entity @s {start_interpolation:0,interpolation_duration:25,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3.1f,5.0f,0.9f],translation:[-3.1f,1.0f,-0.4f]}}/execute if entity @e[tag=c9_v_ctrl,scores={c9_vt=85}] as @e[tag=c9_v_dr] run data merge entity @s {start_interpolation:0,interpolation_duration:25,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3.1f,5.0f,0.9f],translation:[0.0f,1.0f,-0.4f]}}/execute if entity @e[tag=c9_v_ctrl,scores={c9_vt=85}] as @e[tag=c9_v_wh] run data merge entity @s {start_interpolation:0,interpolation_duration:25,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1.8f,1.0f],translation:[-0.9f,2.6f,-0.4f]}}setup #8 Summons the left half of the vault door as an iron <code>block_display</code> scaled to 3.1 blocks wide and 5 blocks tall, with full brightness so it never turns dark when overlapping walls.setup #10 Summons the central golden locking wheel in front of the seam between the two iron doors, with an orange glow outline.loop #3 At tick 5, rotates the central gold locking wheel by 45 degrees using a quaternion in <code>left_rotation</code> while adjusting its <code>translation</code> so it spins around its true centre over 18 ticks.loop #6 At tick 25, once the lock has turned, slides the left door panel outward by updating its <code>translation</code> vector with a 28-tick interpolation duration.loop #8 Slides the rotated locking wheel along with the left door panel so it stays attached to the door face as the vault opens.


Recorded on our own test server: 58 frames at about 9.6 fps. Our image check saw: A large iron block display door with a rotating gold block center slides open into a deepslate frame with particle effects, revealing a sea lantern interior.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
In the self-running demo, the scoreboard timer c9_vt loops continuously from 0 to 120 ticks. To make the door open only when a player approaches, replace the first two loop commands with proximity checks: increment c9_vt up to 55 when @a[distance=..6] is present, and set c9_vt to 85 when no player is within 6 blocks so the doors close automatically.
/kill @e[tag=c9_v]/fill ~-6 ~ ~-3 ~6 ~7 ~3 air/scoreboard objectives remove c9_vtDisplay entities are purely visual and do not have collision boxes of their own. If you want physical collision in survival mode, place barrier blocks in the doorway during the closed phase and fill them with air when the timer reaches tick 35.
kept in sync when merging transformation data on display entities so the panels never reset their size or orientation mid-animation.
▶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