Build an animated mechanical safe in Minecraft using block display entities that retract copper bolts, split iron doors, and reveal a glowing core.
Moving StructuresTechnologyIndustrialOrangeWhitePurpleAdventure MapMap MakingCinematicBlock displaysSmooth animation (interpolation)Riding & passengersBlock building (fill/setblock/clone)Rotation math21+ commands
This command creation builds a floating mechanical safe right in front of you using block display entities and smooth transformation interpolation. On a repeating cycle, four copper locking bolts retract outward, the massive outer iron shell splits and slides apart in four directions, and a glowing amethyst inner container lowers to reveal a spinning beacon core surrounded by golden rings and magic particles.
Because everything uses display entity transformations, the heavy vault panels glide smoothly without clipping or teleport jitter, giving your world a clean sci-fi centerpiece.
/scoreboard objectives add c9_t dummy/fill ~-5 ~ ~-5 ~5 ~ ~5 polished_deepslate/fill ~-3 ~ ~-3 ~3 ~ ~3 chiseled_deepslate/fill ~-2 ~1 ~-2 ~2 ~1 ~2 iron_block/setblock ~ ~1 ~ sea_lantern/summon marker ~ ~2 ~ {Tags:["c9_m","c9_ctrl"]}/summon block_display ~ ~4.5 ~ {Tags:["c9_m","c9_core"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:beacon"},transformation:{translation:[-0.5f,-0.5f,-0.5f],scale:[1f,1f,1f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},teleport_duration:2}/summon block_display ~ ~4.5 ~ {Tags:["c9_m","c9_ring"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:gold_block"},transformation:{translation:[-0.7f,-0.1f,-0.7f],scale:[1.4f,0.2f,1.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},teleport_duration:2}/summon block_display ~ ~4.5 ~ {Tags:["c9_m","c9_inner"],Glowing:1b,glow_color_override:11141375,block_state:{Name:"minecraft:amethyst_block"},transformation:{translation:[-1.2f,-1.2f,-1.2f],scale:[2.4f,2.4f,2.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon area_effect_cloud ~ ~4.5 ~ {Tags:["c9_m"],Duration:999999,Passengers:[{id:"minecraft:block_display",Tags:["c9_m","c9_s_n"],Glowing:1b,glow_color_override:14540253,block_state:{Name:"minecraft:iron_block"},transformation:{translation:[-1.6f,-1.6f,-1.6f],scale:[3.2f,3.2f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_m","c9_s_s"],Glowing:1b,glow_color_override:14540253,block_state:{Name:"minecraft:iron_block"},transformation:{translation:[-1.6f,-1.6f,1.1f],scale:[3.2f,3.2f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_m","c9_s_w"],Glowing:1b,glow_color_override:14540253,block_state:{Name:"minecraft:iron_block"},transformation:{translation:[-1.6f,-1.6f,-1.6f],scale:[0.5f,3.2f,3.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_m","c9_s_e"],Glowing:1b,glow_color_override:14540253,block_state:{Name:"minecraft:iron_block"},transformation:{translation:[1.1f,-1.6f,-1.6f],scale:[0.5f,3.2f,3.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_m","c9_b_n"],Glowing:1b,glow_color_override:16744448,block_state:{Name:"minecraft:copper_block"},transformation:{translation:[-0.6f,-0.6f,-1.8f],scale:[1.2f,1.2f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_m","c9_b_s"],Glowing:1b,glow_color_override:16744448,block_state:{Name:"minecraft:copper_block"},transformation:{translation:[-0.6f,-0.6f,1.2f],scale:[1.2f,1.2f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_m","c9_b_w"],Glowing:1b,glow_color_override:16744448,block_state:{Name:"minecraft:copper_block"},transformation:{translation:[-1.8f,-0.6f,-0.6f],scale:[0.6f,1.2f,1.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_m","c9_b_e"],Glowing:1b,glow_color_override:16744448,block_state:{Name:"minecraft:copper_block"},transformation:{translation:[1.2f,-0.6f,-0.6f],scale:[0.6f,1.2f,1.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}]}/scoreboard players add @e[tag=c9_ctrl] c9_t 1/execute as @e[tag=c9_ctrl,scores={c9_t=140..}] run scoreboard players set @s c9_t 0/execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~6 ~4/execute as @e[tag=c9_ring] at @s run tp @s ~ ~ ~ ~-8 ~-6/execute if entity @e[tag=c9_ctrl,scores={c9_t=5}] as @e[tag=c9_b_n] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{translation:[-0.6f,-0.6f,-3.6f],scale:[0.8f,0.8f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_t=5}] as @e[tag=c9_b_s] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{translation:[-0.6f,-0.6f,3.0f],scale:[0.8f,0.8f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_t=5}] as @e[tag=c9_b_w] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{translation:[-3.6f,-0.6f,-0.6f],scale:[0.6f,0.8f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_t=5}] as @e[tag=c9_b_e] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{translation:[3.0f,-0.6f,-0.6f],scale:[0.6f,0.8f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_t=20}] as @e[tag=c9_s_n] run data merge entity @s {start_interpolation:0,interpolation_duration:20,transformation:{translation:[-1.6f,0.2f,-3.2f],scale:[3.2f,3.2f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_t=20}] as @e[tag=c9_s_s] run data merge entity @s {start_interpolation:0,interpolation_duration:20,transformation:{translation:[-1.6f,0.2f,2.7f],scale:[3.2f,3.2f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_t=20}] as @e[tag=c9_s_w] run data merge entity @s {start_interpolation:0,interpolation_duration:20,transformation:{translation:[-3.2f,0.2f,-1.6f],scale:[0.5f,3.2f,3.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_t=20}] as @e[tag=c9_s_e] run data merge entity @s {start_interpolation:0,interpolation_duration:20,transformation:{translation:[2.7f,0.2f,-1.6f],scale:[0.5f,3.2f,3.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_t=35}] as @e[tag=c9_inner] run data merge entity @s {start_interpolation:0,interpolation_duration:20,transformation:{translation:[-1.3f,-2.4f,-1.3f],scale:[2.6f,0.3f,2.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_t=35..120}] run particle end_rod ~ ~4.5 ~ 1.2 1.2 1.2 0.05 3 forcesetup #7 Summons the central beacon block display centered on its pivot point with <code>teleport_duration:2</code> so continuous rotation looks smooth.setup #10 Spawns all four iron outer vault walls and four copper locking bolts in a single command as passengers on an area effect cloud at the vault center.loop #5 At tick 5, merges a new <code>transformation</code> into the northern copper bolt with <code>interpolation_duration:15</code> so it retracts outward over 0.75 seconds.loop #9 At tick 20, after the bolts unlock, slides the outer iron shell panels outward and slightly upward over 20 ticks.loop #13 At tick 35, compresses and lowers the inner amethyst chamber into a glowing pedestal beneath the spinning core.


Recorded on our own test server: 50 frames at about 9.8 fps. Our image check saw: A floating iron and copper vault structure hovers over a pedestal, sliding open and lowering an amethyst block with blue and 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 open only when a player approaches the pedestal instead of running on an automatic loop, replace the first loop command with /execute if entity @a[distance=..6] run scoreboard players add @e[tag=c9_ctrl,scores={c9_t=..60}] c9_t 1 so the sequence triggers on proximity.
/kill @e[tag=c9_m]/scoreboard objectives remove c9_t/fill ~-5 ~ ~-5 ~5 ~1 ~5 airBlock display entities support client-side transformation interpolation. Setting start_interpolation to 0 and interpolation_duration to 15 or 20 tells Minecraft to smoothly animate between the old and new position and scale.
Yes. Change the block_state Name inside the setup commands from iron_block, copper_block, or amethyst_block to any block you like, and adjust glow_color_override to match.
▶Victorian Zoetrope Animation CarouselMoving StructuresMedium22 cmds
▶Pneumatic Bank Vault Time-Lock UnboltingMoving StructuresHard24 cmds
▶Steampunk Dirigible Mooring Mast DockingMoving StructuresExpert24 cmds
▶Steampunk Leviathan Breach & SubmergeMoving StructuresExpert23 cmds
▶Art Deco Skyscraper Spire TelescopingMoving StructuresHard24 cmds
▶Automated Walking MechMoving StructuresExpert23 cmds