Build a working industrial tower crane in vanilla Minecraft that swings its yellow boom arm and winches a glowing cargo container between two stone pads.
Machines & MechanismsIndustrialTechnologyYellowRedWhiteDecorationMap MakingBuilding ToolBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)Rotation math21+ commands
This command creation builds an automated tower crane out of oversized block display entities. A glowing yellow boom arm sits atop an iron mast, rotating back and forth between two stone landing pads while an extending iron cable raises and lowers a red shipping container.
Using display entity interpolation and local coordinates, the crane moves smoothly without complex redstone or mods. Sparks fly and heavy anvil sounds play whenever the cargo touches down on a staging pad.
/scoreboard objectives add c9_crane dummy/scoreboard players set #t c9_crane 0/fill ~-1 ~ ~-1 ~1 ~1 ~1 smooth_stone/fill ~ ~2 ~ ~ ~11 ~ iron_bars/fill ~6 ~ ~-1 ~8 ~ ~1 stone_bricks/fill ~-1 ~ ~6 ~1 ~ ~8 stone_bricks/summon marker ~ ~12 ~ {Tags:["c9_crane","c9_pivot"],Rotation:[0f,0f]}/summon block_display ~ ~12 ~ {Tags:["c9_crane","c9_arm"],Glowing:1b,glow_color_override:16766720,teleport_duration:2,block_state:{Name:"minecraft:yellow_concrete"},transformation:{translation:[-0.6f,0f,-3f],left_rotation:[0f,0f,0f,1f],scale:[1.2f,1.2f,11.5f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~12 ~7 {Tags:["c9_crane","c9_cable"],teleport_duration:2,interpolation_duration:15,block_state:{Name:"minecraft:iron_bars"},transformation:{translation:[-0.5f,-5f,-0.5f],left_rotation:[0f,0f,0f,1f],scale:[1f,5f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~12 ~7 {Tags:["c9_crane","c9_cargo"],Glowing:1b,glow_color_override:16724787,teleport_duration:2,interpolation_duration:15,block_state:{Name:"minecraft:red_shulker_box"},transformation:{translation:[-1.2f,-7f,-1.2f],left_rotation:[0f,0f,0f,1f],scale:[2.4f,2.0f,2.4f],right_rotation:[0f,0f,0f,1f]}}/scoreboard players add #t c9_crane 1/execute if score #t c9_crane matches 160.. run scoreboard players set #t c9_crane 0/execute if score #t c9_crane matches 15 as @e[tag=c9_cable] run data merge entity @s {start_interpolation:0,transformation:{translation:[-0.5f,-9f,-0.5f],scale:[1f,9f,1f]}}/execute if score #t c9_crane matches 15 as @e[tag=c9_cargo] run data merge entity @s {start_interpolation:0,transformation:{translation:[-1.2f,-11f,-1.2f],scale:[2.4f,2.0f,2.4f]}}/execute if score #t c9_crane matches 40 as @e[tag=c9_cable] run data merge entity @s {start_interpolation:0,transformation:{translation:[-0.5f,-5f,-0.5f],scale:[1f,5f,1f]}}/execute if score #t c9_crane matches 40 as @e[tag=c9_cargo] run data merge entity @s {start_interpolation:0,transformation:{translation:[-1.2f,-7f,-1.2f],scale:[2.4f,2.0f,2.4f]}}/execute if score #t c9_crane matches 95 as @e[tag=c9_cable] run data merge entity @s {start_interpolation:0,transformation:{translation:[-0.5f,-9f,-0.5f],scale:[1f,9f,1f]}}/execute if score #t c9_crane matches 95 as @e[tag=c9_cargo] run data merge entity @s {start_interpolation:0,transformation:{translation:[-1.2f,-11f,-1.2f],scale:[2.4f,2.0f,2.4f]}}/execute if score #t c9_crane matches 120 as @e[tag=c9_cable] run data merge entity @s {start_interpolation:0,transformation:{translation:[-0.5f,-5f,-0.5f],scale:[1f,5f,1f]}}/execute if score #t c9_crane matches 120 as @e[tag=c9_cargo] run data merge entity @s {start_interpolation:0,transformation:{translation:[-1.2f,-7f,-1.2f],scale:[2.4f,2.0f,2.4f]}}/execute if score #t c9_crane matches 55..84 as @e[tag=c9_pivot] at @s run tp @s ~ ~ ~ ~-3 ~/execute if score #t c9_crane matches 135..159 as @e[tag=c9_pivot] at @s run tp @s ~ ~ ~ ~3.6 ~/execute at @e[tag=c9_pivot] as @e[tag=c9_arm] run tp @s ~ ~ ~ ~ ~/execute at @e[tag=c9_pivot] positioned ^ ^ ^7 as @e[tag=c9_crane,tag=!c9_pivot,tag=!c9_arm] run tp @s ~ ~ ~ ~ ~setup #8 Summons the yellow concrete boom arm scaled to 11.5 blocks long, offset slightly backwards to create a counterweight behind the central mast.loop #3 At tick 15, merges new transformation data into the iron bar cable display so it smoothly stretches downward over 15 ticks to lower the load.loop #4 Simultaneously shifts the glowing red shulker box cargo down 4 blocks using built-in display interpolation so it lands flush on the stone brick pad.loop #11 Rotates the invisible pivot marker at the top of the tower by -3 degrees per tick for 30 ticks, completing a full 90-degree swing between the two pads.loop #14 Uses local caret coordinates (^ ^ ^7) relative to the rotating pivot marker to keep both the cable and the cargo locked to the tip of the crane arm.


Recorded on our own test server: 68 frames at about 9.7 fps. Our image check saw: A large glowing yellow crane arm made of block display entities rotates on a thin iron pole to move a glowing red block between two stone brick landing pads.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
/kill @e[tag=c9_crane]/scoreboard objectives remove c9_crane/fill ~-1 ~ ~-1 ~8 ~12 ~8 airChange the tick ranges in the loop commands that check the c9_crane score. Just make sure the total rotation degrees during the swing phases still multiply out to 90 degrees so the cargo aligns with the stone pads.
Yes, in the last setup command, change minecraft:red_shulker_box inside block_state to any block you like, such as minecraft:iron_block or minecraft:TNT.
▶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