Build an automated clockwork vault in vanilla Minecraft using display entities, smooth transformations, and glowing particle rings that unseal on a loop.
Machines & MechanismsIndustrialMysticRoyalGoldBlueWhiteDecorationAdventure MapServer LobbyBlock displaysItem displaysSmooth animation (interpolation)Block building (fill/setblock/clone)Rotation math21+ commands
Watch an ornate golden vault unseal itself through a choreographed sequence of spinning brass gears, retracting obsidian doors, and rising diamond pillars. At the climax of the animation, a glowing nether star relic and an enchanted sword levitate from the core surrounded by swirling particle rings.
This creation shows how to combine block_display and item_display entities with transformation matrices and teleport interpolation to animate multi-part machinery without any mods or resource packs.
/scoreboard objectives add c9_t dummy/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 polished_blackstone_bricks/setblock ~ ~-1 ~ gilded_blackstone/summon block_display ~ ~ ~ {Tags:["c9_v","c9_ped"],block_state:{Name:"minecraft:chiseled_polished_blackstone"}, glowing:1b,brightness:{sky:15,block:15},teleport_duration:2,transformation:{translation:[-0.6f,0.0f,-0.6f],scale:[1.2f,0.8f,1.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~ ~ {Tags:["c9_v","c9_gear1"],block_state:{Name:"minecraft:gold_block"},glowing:1b,brightness:{sky:15,block:15},teleport_duration:2,transformation:{translation:[-0.9f,0.2f,-0.9f],scale:[1.8f,0.15f,1.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~ ~ {Tags:["c9_v","c9_gear2"],block_state:{Name:"minecraft:copper_Sblock"},glowing:1b,brightness:{sky:15,block:15},teleport_duration:2,transformation:{translation:[-0.9f,0.45f,-0.9f],scale:[1.8f,0.15f,1.8f],left_rotation:[0f,0.3826834f,0f,0.9238795f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~ ~ {Tags:["c9_v","c9_lid1"],block_state:{Name:"minecraft:crying_obsidian"},glowing:1b,brightness:{sky:15,block:15},teleport_duration:2,interpolation_duration:25,transformation:{translation:[-0.5f,0.8f,-0.5f],scale:[0.5f,0.25f,1.0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~ ~ {Tags:["c9_v","c9_lid2"],block_state:{Name:"minecraft:crying_obsidian"},glowing:1b,brightness:{sky:15,block:15},teleport_duration:2,interpolation_duration:25,transformation:{translation:[0.0f,0.8f,-0.5f],scale:[0.5f,0.25f,1.0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~ ~ {Tags:["c9_v","c9_pil"],block_state:{Name:"minecraft:diamond_block"},glowing:1b,brightness:{sky:15,block:15},teleport_duration:2,interpolation_duration:25,transformation:{translation:[-0.25f,0.1f,-0.25f],scale:[0.5f,0.6f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon item_display ~ ~0.6 ~ {Tags:["c9_v","c9_relic"],item:{id:"minecraft:nether_star",count:1},billboard:"center",glowing:1b,brightness:{sky:15,block:15},teleport_duration:2,interpolation_duration:25,transformation:{translation:[0.0f,0.0f,0.0f],scale:[0.01f,0.01f,0.01f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if score #tick c9_t matches 140.. run scoreboard players set #tick c9_t 0/scoreboard players add #tick c9_t 1/execute if score #tick c9_t matches 20..120 as @e[tag=c9_gear1] at @s run tp @s ~ ~ ~ ~6 ~/execute if score #tick c9_t matches 20..120 as @e[tag=c9_gear2] at @s run tp @s ~ ~ ~ ~-6 ~/execute if score #tick c9_t matches 25 run data merge entity @e[tag=c9_lid1,limit=1] {start_interpolation:0,transformation:{translation:[-1.3f,0.8f,-0.5f],scale:[0.5f,0.25f,1.0f],left_rotation:[0f,0f,0.3826834f,0.9238795f],right_rotation:[0f,0f,0f,1f]}}/execute if score #tick c9_t matches 25 run data merge entity @e[tag=c9_lid2,limit=1] {start_interpolation:0,transformation:{translation:[0.8f,0.8f,-0.5f],scale:[0.5f,0.25f,1.0f],left_rotation:[0f,0f,-0.3826834f,0.9238795f],right_rotation:[0f,0f,0f,1f]}}/execute if score #tick c9_t matches 45 run data merge entity @e[tag=c9_pil,limit=1] {start_interpolation:0,transformation:{translation:[-0.25f,0.9f,-0.25f],scale:[0.5f,1.4f,0.5f],left_rotation:[0f,0.3826834f,0f,0.9238795f],right_rotation:[0f,0f,0f,1f]}}/execute if score #tick c9_t matches 50 run data merge entity @e[tag=c9_relic,limit=1] {start_interpolation:0,transformation:{translation:[0.0f,2.4f,0.0f],scale:[1.5f,1.5f,1.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if score #tick c9_t matches 50..105 as @e[tag=c9_gear1] at @s anchored eyes positioned ^ ^2.2 ^1.6 run particle dust{color:[1.0,0.8,0.1],scale:1.5} ~ ~ ~ 0.05 0.05 0.05 0 2 force/execute if score #tick c9_t matches 50..105 as @e[tag=c9_gear2] at @s anchored eyes positioned ^ ^1.4 ^1.2 run particle soul_fire_flame ~ ~ ~ 0.05 0.05 0.05 0.01 2 force/execute if score #tick c9_t matches 65..100 run particle end_rod ~ ~3.0 ~ 0.4 0.4 0.4 0.05 3 force/execute if score #tick c9_t matches 110 run data merge entity @e[tag=c9_relic,limit=1] {start_interpolation:0,transformation:{translation:[0.0f,0.0f,0.0f],scale:[0.01f,0.01f,0.01f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if score #tick c9_t matches 115 run data merge entity @e[tag=c9_pil,limit=1] {start_interpolation:0,transformation:{translation:[-0.25f,0.1f,-0.25f],scale:[0.5f,0.6f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if score #tick c9_t matches 120 as @e[tag=c9_v] run data merge entity @e[tag=c9_lid1,limit=1] {start_interpolation:0,transformation:{translation:[-0.5f,0.8f,-0.5f],scale:[0.5f,0.25f,1.0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}setup #6 Summons the upper clockwork gear using a <code>block_display</code> pre-rotated by 45 degrees around the Y axis via its <code>left_rotation</code> quaternion so its corners offset the lower gold gear.loop #3 Spins the lower gear clockwise by 6 degrees per tick while the vault is active, taking advantage of <code>teleport_duration:2</code> to keep the rotation smooth.loop #5 Triggers a 25-tick smooth interpolation on the left obsidian vault door, sliding it outward and tilting it 45 degrees open.loop #9 Uses the rotating gear entity's facing angle with local coordinates (<code>^ ^2.2 ^1.6</code>) to draw a spinning halo of gold dust particles around the risen relic.


Recorded on our own test server: 69 frames at about 9.8 fps. Our image check saw: A small vault made of gold, lodestone, and crying obsidian opens up with a rotating gold base, revealing a rising diamond pillar, a glowing nether star, and swirling blue, gold, and white particles.
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 instead of looping automatically, replace the first two loop commands with /execute if entity @a[distance=..6] if score #tick c9_t matches ..109 run scoreboard players add #tick c9_t 1 and run the reset ticks when no player is within 6 blocks.
/kill @e[tag=c9_v]/scoreboard objectives remove c9_t/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 grass_blockEach display entity has interpolation_duration set to 25 ticks. Setting start_interpolation to 0 alongside a new transformation makes the client blend between the old and new positions.
The particle commands execute from the rotating gear display entities using local caret coordinates (^ ^ ^), turning their continuous yaw rotation into circular particle emitters.
▶Automated Circle SculptorMachines & MechanismsEasy22 cmds
▶Cinematic Vault Opening with Rotating Lock RingsMachines & MechanismsMedium24 cmds
▶Colossal Mechanical Vault GateMachines & MechanismsMedium24 cmds
▶Seamless Sliding Vault GateMachines & MechanismsEasy24 cmds
▶Steampunk Astrolabe GyroscopeMachines & MechanismsMedium24 cmds
▶Steampunk Printing Press Newspaper RollMachines & MechanismsHard24 cmds