Automated Construction Crane

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.

Java EditionHolograms & Display EntitiesHard24 commandsTested on a real 26.2 & 26.3 server
An automated yellow crane moves a glowing red container between two stone pads in Minecraft. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_crane dummy
  2. /scoreboard players set #t c9_crane 0
  3. /fill ~-1 ~ ~-1 ~1 ~1 ~1 smooth_stone
  4. /fill ~ ~2 ~ ~ ~11 ~ iron_bars
  5. /fill ~6 ~ ~-1 ~8 ~ ~1 stone_bricks
  6. /fill ~-1 ~ ~6 ~1 ~ ~8 stone_bricks
  7. /summon marker ~ ~12 ~ {Tags:["c9_crane","c9_pivot"],Rotation:[0f,0f]}
  8. /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]}}
  9. /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]}}
  10. /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]}}

2. Loop - one repeating command block each (Always Active) 14 commands

  1. /scoreboard players add #t c9_crane 1
  2. /execute if score #t c9_crane matches 160.. run scoreboard players set #t c9_crane 0
  3. /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]}}
  4. /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]}}
  5. /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]}}
  6. /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]}}
  7. /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]}}
  8. /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]}}
  9. /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]}}
  10. /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]}}
  11. /execute if score #t c9_crane matches 55..84 as @e[tag=c9_pivot] at @s run tp @s ~ ~ ~ ~-3 ~
  12. /execute if score #t c9_crane matches 135..159 as @e[tag=c9_pivot] at @s run tp @s ~ ~ ~ ~3.6 ~
  13. /execute at @e[tag=c9_pivot] as @e[tag=c9_arm] run tp @s ~ ~ ~ ~ ~
  14. /execute at @e[tag=c9_pivot] positioned ^ ^ ^7 as @e[tag=c9_crane,tag=!c9_pivot,tag=!c9_arm] run tp @s ~ ~ ~ ~ ~

How it works

Frames from the test run

Automated Construction Crane - frame 1Automated Construction Crane - frame 2Automated Construction Crane - frame 3

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.

Build it in your world

  1. Stand at the centre of a flat open area where you want the crane base to be built.
  2. Run each of the 10 setup commands in chat or in impulse command blocks positioned at the centre.
  3. Place a row of 14 repeating command blocks (or one repeating block leading into 13 chain command blocks), all set to Always Active.
  4. Paste the 14 loop commands into those command blocks in order, ensuring their execution position is aligned with the centre of the crane.
  5. Watch the crane automatically cycle through lowering, hoisting, and swinging the cargo container between the two stone pads.

Remove it again 3 commands

  1. /kill @e[tag=c9_crane]
  2. /scoreboard objectives remove c9_crane
  3. /fill ~-1 ~ ~-1 ~8 ~12 ~8 air

FAQ

How can I make the crane swing faster or pause longer?

Change 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.

Can I change what block the crane carries?

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.

Commands used

/data/execute/fill/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides