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.
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.
/scoreboard objectives add c9_t dummy/scoreboard players set #tick c9_t 0/scoreboard players set #hits c9_t 0/fill ~-3 ~-1 ~-2 ~3 ~-1 ~2 stone_bricks/fill ~-2 ~-1 ~-1 ~2 ~-1 ~1 spruce_planks/setblock ~1 ~ ~ stripped_oak_wood/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]}}/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]}}/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]}}/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]}}/scoreboard players add #tick c9_t 1/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]}}/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]}}/execute at @e[tag=c9_body] run particle poof ~-0.4 ~1.0 ~ 0.03 0.06 0.03 0.01 1/execute as @e[tag=c9_key] at @s run tp @s ~ ~ ~ ~15 ~/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]}}/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]}}/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/execute if score #tick c9_t matches 22 run playsound block.wood.break block @a ~1 ~1 ~ 1 0.8/execute if score #tick c9_t matches 22 run scoreboard players add #hits c9_t 1/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]}}/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]}}/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]}}/execute if score #tick c9_t matches 35 if score #hits c9_t matches 1..2 run scoreboard players set #tick c9_t 0setup #7 Summons the copper block display torso of the automaton, scaled and centered on the left side of the workbench.setup #9 Summons an iron axe item display rotated to face the oak tree trunk, with interpolation enabled for smooth chopping animations.loop #6 At tick 5 of each swing cycle, merges a raised transformation matrix into the axe display entity over 12 ticks.loop #7 At tick 20, swings the axe down rapidly over 4 ticks into the oak trunk.loop #11 On the first two strikes, tilts the oak tree slightly away from the axe impact using quaternion rotation before it springs back.loop #13 On the third strike, rotates the oak trunk 90 degrees over 16 ticks so it falls sideways off the chopping block.


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.
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.
/kill @e[tag=c9_all]/fill ~-3 ~-1 ~-2 ~3 ~ ~2 air/fill ~-3 ~-1 ~-2 ~3 ~-1 ~2 grass_block/scoreboard objectives remove c9_tItem 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.
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.
/data/execute/fill/particle/playsound/scoreboard/setblock/summon/tp
▶Autonomous Timber-Harvesting MechMachines & MechanismsHard23 cmds
▶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