Clockwork Woodcutter Automaton Scene

Watch a copper-and-gold clockwork automaton with a spinning golden wind-up key chop down a timber tree on a spruce workbench while venting puffs of steam.

Java EditionHolograms & Display EntitiesMedium24 commandsTested on a real 26.2 & 26.3 server
A copper and gold clockwork automaton stands beside a felled tree trunk on a workbench platform. Download the GIF Video & GIF © www.9minecraft.net

Machines & MechanismsIndustrialTechnologyNatureOrangeGoldGreenDecorationMap MakingServer LobbyBlock displaysItem displaysSmooth animation (interpolation)Block building (fill/setblock/clone)SoundsRotation math21+ commands

This command creation builds a self-running clockwork woodcutter scene on a stone and spruce workbench. An articulated copper and gold automaton continuously vents puffs of steam from its back while a golden wind-up key spins in place.

Using smooth display entity interpolation, the automaton raises and swings an iron axe into an oak tree, sending wood chips flying with each strike until the trunk topples over and resets.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard players set #tick c9_t 0
  3. /scoreboard players set #hits c9_t 0
  4. /fill ~-3 ~-1 ~-2 ~3 ~-1 ~2 stone_bricks
  5. /fill ~-2 ~-1 ~-1 ~2 ~-1 ~1 spruce_planks
  6. /setblock ~1 ~ ~ stripped_oak_wood
  7. /summon block_display ~-1 ~ ~ {Tags:["c9_all","c9_body"],block_state:{Name:"minecraft:waxed_copper_block"},transformation:{translation:[-0.35f,0.0f,-0.35f],scale:[0.7f,1.3f,0.7f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  8. /summon block_display ~-1 ~1.3 ~ {Tags:["c9_all","c9_head"],block_state:{Name:"minecraft:gold_block"},transformation:{translation:[-0.25f,0.0f,-0.25f],scale:[0.5f,0.5f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  9. /summon item_display ~-0.75 ~1.1 ~0.4 {Tags:["c9_all","c9_axe"],item:{id:"minecraft:iron_axe"},interpolation_duration:8,transformation:{translation:[0f,0f,0f],scale:[1.4f,1.4f,1.4f],left_rotation:[0f,0.707f,0f,0.707f],right_rotation:[0f,0f,0.383f,0.924f]}}
  10. /summon block_display ~1 ~0.6 ~ {Tags:["c9_all","c9_tree"],interpolation_duration:15,block_state:{Name:"minecraft:oak_log"},transformation:{translation:[-0.4f,0.0f,-0.4f],scale:[0.8f,3.2f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}

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

  1. /scoreboard players add #tick c9_t 1
  2. /execute if score #tick c9_t matches 1 if entity @e[tag=c9_body] unless entity @e[tag=c9_key] run summon item_display ~-1.4 ~0.75 ~ {Tags:["c9_all","c9_key"],item:{id:"minecraft:clock"},transformation:{translation:[0f,0f,0f],scale:[0.8f,0.8f,0.8f],left_rotation:[0f,0.707f,0f,0.707f],right_rotation:[0f,0f,0f,1f]}}
  3. /execute if score #tick c9_t matches 1 if entity @e[tag=c9_body] unless entity @e[tag=c9_leaves] run summon block_display ~1 ~3.0 ~ {Tags:["c9_all","c9_leaves"],block_state:{Name:"minecraft:oak_leaves"},transformation:{translation:[-1.1f,0.0f,-1.1f],scale:[2.2f,1.8f,2.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  4. /execute at @e[tag=c9_body] run particle poof ~-0.4 ~1.0 ~ 0.03 0.06 0.03 0.01 1
  5. /execute as @e[tag=c9_key] at @s run tp @s ~ ~ ~ ~15 ~
  6. /execute if score #tick c9_t matches 5 as @e[tag=c9_axe] run data merge entity @s {start_interpolation:0,interpolation_duration:12,transformation:{translation:[-0.25f,0.55f,0f],scale:[1.4f,1.4f,1.4f],left_rotation:[0f,0.707f,0f,0.707f],right_rotation:[0f,0f,0.866f,0.5f]}}
  7. /execute if score #tick c9_t matches 20 as @e[tag=c9_axe] run data merge entity @s {start_interpolation:0,interpolation_duration:4,transformation:{translation:[0.75f,-0.2f,0f],scale:[1.4f,1.4f,1.4f],left_rotation:[0f,0.707f,0f,0.707f],right_rotation:[0f,0f,-0.259f,0.966f]}}
  8. /execute if score #tick c9_t matches 22 run particle block{block_state:{Name:"minecraft:oak_planks"}} ~0.6 ~1.1 ~ 0.25 0.25 0.25 0.15 35
  9. /execute if score #tick c9_t matches 22 run playsound block.wood.break block @a ~1 ~1 ~ 1 0.8
  10. /execute if score #tick c9_t matches 22 run scoreboard players add #hits c9_t 1
  11. /execute if score #tick c9_t matches 22 if score #hits c9_t matches 1..2 as @e[tag=c9_tree] run data merge entity @s {start_interpolation:0,interpolation_duration:3,transformation:{translation:[-0.3f,0.0f,-0.4f],scale:[0.8f,3.2f,0.8f],left_rotation:[0f,0f,-0.08f,0.997f],right_rotation:[0f,0f,0f,1f]}}
  12. /execute if score #tick c9_t matches 26 if score #hits c9_t matches 1..2 as @e[tag=c9_tree] run data merge entity @s {start_interpolation:0,interpolation_duration:5,transformation:{translation:[-0.4f,0.0f,-0.4f],scale:[0.8f,3.2f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  13. /execute if score #tick c9_t matches 22 if score #hits c9_t matches 3.. as @e[tag=c9_tree] run data merge entity @s {start_interpolation:0,interpolation_duration:16,transformation:{translation:[0.0f,0.0f,-0.4f],scale:[0.8f,3.2f,0.8f],left_rotation:[0f,0f,-0.707f,0.707f],right_rotation:[0f,0f,0f,1f]}}
  14. /execute if score #tick c9_t matches 35 if score #hits c9_t matches 1..2 run scoreboard players set #tick c9_t 0

How it works

Frames from the test run

Clockwork Woodcutter Automaton Scene - frame 1Clockwork Woodcutter Automaton Scene - frame 2Clockwork Woodcutter Automaton Scene - frame 3

Recorded on our own test server: 56 frames at about 9.3 fps. Our image check saw: A copper and gold automaton with smoke particles on its back stands next to a chopped tree trunk with floating leaves on a stone and wood platform.

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 on a flat open area where you want the workbench scene to appear.
  2. Run each of the 10 setup commands once in chat or put them in impulse command blocks at the stage center.
  3. Place a repeating command block set to Always Active at the same center reference point (or wrap the coordinates) for the first loop command.
  4. Chain the remaining 13 loop commands in Chain, Unconditional, Always Active command blocks attached to the repeating block.
  5. To replay the tree falling after the third chop, reset #tick and #hits on the c9_t scoreboard to 0.

Use it with real players

To let players trigger each chop manually instead of running on an automatic loop, replace the automatic reset in loop command 13 with a right-click or proximity detector such as /execute if entity @a[distance=..4] if score #tick c9_t matches 35.. run scoreboard players set #tick c9_t 0.

Remove it again 4 commands

  1. /kill @e[tag=c9_all]
  2. /fill ~-3 ~-1 ~-2 ~3 ~ ~2 air
  3. /fill ~-3 ~-1 ~-2 ~3 ~-1 ~2 grass_block
  4. /scoreboard objectives remove c9_t

FAQ

Why does the axe move smoothly instead of teleporting between angles?

Item and block display entities support built-in client interpolation. Setting start_interpolation to 0 and giving interpolation_duration a tick count makes Minecraft smoothly blend between the old and new transformation matrices.

Can I make the tree stand back up and repeat forever?

Yes! If you reset both #tick and #hits to 0 after tick 70, the loop will pull the tree back upright on the next cycle and continue chopping indefinitely.

Commands used

/data/execute/fill/particle/playsound/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides