Animated Falling Blade

Build an automated wooden chopping rig with smooth block display interpolation that cranks an angled iron blade to the top before dropping it with a heavy slam.

Java EditionHolograms & Display EntitiesMedium26 commandsTested on a real 26.2 & 26.3 server
An automated guillotine structure in Minecraft raises and drops an angled iron blade onto a melon. Download the GIF Video & GIF © www.9minecraft.net

Machines & MechanismsIndustrialMedievalDarkWhiteGreenOrangeDecorationMap MakingMini-gameBlock displaysArmor standsSmooth animation (interpolation)Block building (fill/setblock/clone)Sounds21+ commands

This command creation builds an automated heavy chopping trap in the middle of your world. Using a wooden timber frame and a chain hoist, a gleaming angled iron blade is slowly cranked to the top of the tower, showering mechanical sparks as the gears turn.

Once the latch releases at the top, the blade drops in a split second using block display transformation interpolation. It slams into the base block with an anvil crash, scattering wood splinters and slicing right through any targets standing underneath.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #clock c9_timer 0
  3. /fill ~-3 ~ ~-2 ~3 ~ ~2 stone_bricks
  4. /setblock ~ ~ ~ stripped_dark_oak_wood
  5. /fill ~-2 ~1 ~ ~-2 ~8 ~ spruce_fence
  6. /fill ~2 ~1 ~ ~2 ~8 ~ spruce_fence
  7. /fill ~-2 ~9 ~ ~2 ~9 ~ dark_oak_log[axis=x]
  8. /fill ~-1 ~1 ~ ~-1 ~8 ~ iron_bars
  9. /fill ~1 ~1 ~ ~1 ~8 ~ iron_bars
  10. /summon block_display ~ ~1.2 ~ {Tags:["c9_all","c9_blade"],Glowing:1b,glow_color_override:15658734,teleport_duration:2,interpolation_duration:1,block_state:{Name:"minecraft:iron_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,-0.195f,0.981f],scale:[2.4f,1.3f,0.18f],translation:[-1.2f,0f,-0.09f]}}

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

  1. /scoreboard players add #clock c9_timer 1
  2. /execute if score #clock c9_timer matches 100.. run scoreboard players set #clock c9_timer 0
  3. /execute if score #clock c9_timer matches 1 unless entity @e[tag=c9_chain] run summon block_display ~ ~8.8 ~ {Tags:["c9_all","c9_chain"],interpolation_duration:1,block_state:{Name:"minecraft:chain"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.3f,7.5f,0.3f],translation:[-0.15f,-7.5f,-0.15f]}}
  4. /execute if score #clock c9_timer matches 5 unless entity @e[tag=c9_target] run summon armor_stand ~ ~1 ~ {Tags:["c9_all","c9_target"],NoGravity:1b,CustomName:'{"text":"Test Melon","color":"green"}',CustomNameVisible:1b,equipment:{head:{id:"minecraft:melon",count:1},chest:{id:"minecraft:leather_chestplate",count:1}}}
  5. /execute if score #clock c9_timer matches 10 run data merge entity @e[tag=c9_blade,limit=1] {start_interpolation:0,interpolation_duration:45,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,-0.195f,0.981f],scale:[2.4f,1.3f,0.18f],translation:[-1.2f,5.8f,-0.09f]}}
  6. /execute if score #clock c9_timer matches 10 run data merge entity @e[tag=c9_chain,limit=1] {start_interpolation:0,interpolation_duration:45,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.3f,1.7f,0.3f],translation:[-0.15f,-1.7f,-0.15f]}}
  7. /execute if score #clock c9_timer matches 10..55 run particle crit ~ ~9 ~ 0.6 0.2 0.2 0.05 2 force
  8. /execute if score #clock c9_timer matches 15 run playsound block.grindstone.use master @a ~ ~9 ~ 0.7 0.6
  9. /execute if score #clock c9_timer matches 35 run playsound block.grindstone.use master @a ~ ~9 ~ 0.7 0.8
  10. /execute if score #clock c9_timer matches 56 run playsound block.iron_trapdoor.open master @a ~ ~9 ~ 1.5 0.7
  11. /execute if score #clock c9_timer matches 68 run data merge entity @e[tag=c9_blade,limit=1] {start_interpolation:0,interpolation_duration:3,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,-0.195f,0.981f],scale:[2.4f,1.3f,0.18f],translation:[-1.2f,0.0f,-0.09f]}}
  12. /execute if score #clock c9_timer matches 68 run data merge entity @e[tag=c9_chain,limit=1] {start_interpolation:0,interpolation_duration:3,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.3f,7.5f,0.3f],translation:[-0.15f,-7.5f,-0.15f]}}
  13. /execute if score #clock c9_timer matches 71 run playsound block.anvil.land master @a ~ ~1 ~ 1.2 0.8
  14. /execute if score #clock c9_timer matches 71 run particle block{block_state:{Name:"minecraft:melon"}} ~ ~1.5 ~ 0.5 0.5 0.5 0.15 60 force
  15. /execute if score #clock c9_timer matches 71 run particle sweep_attack ~ ~1.4 ~ 0.6 0.1 0.1 0 3 force
  16. /execute if score #clock c9_timer matches 71 run kill @e[tag=c9_target]

How it works

Frames from the test run

Animated Falling Blade - frame 1Animated Falling Blade - frame 2Animated Falling Blade - frame 3

Recorded on our own test server: 50 frames at about 9.8 fps. Our image check saw: A wooden guillotine structure with chains raises an angled iron blade over an armor stand holding a melon block with unformatted JSON text, before dropping down and smashing the melon into green particles.

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 centre of the chopping frame to be built.
  2. Run each command from the Setup list one by one in chat to build the stone base, wooden frame, iron guide rails, and the angled blade.
  3. Place a stack of 16 Command Blocks nearby, set the bottom one to Repeat and Always Active, and set the other 15 above it to Chain and Always Active.
  4. Paste the Loop commands in order into the command blocks, replacing the tilde (~ ~ ~) coordinates with the exact X Y Z coordinates of your frame's centre.
  5. Watch the mechanism automatically summon a test target, crank the blade to the top of the frame, pause on the latch, and drop down.

Use it with real players

To make the falling blade hurt real players or survival mobs instead of the demo armor stand, remove loop command 4 (which summons the test stand) and replace loop command 16 with /execute if score #clock c9_timer matches 71 run damage @a[distance=..1.8] 16 minecraft:falling_anvil (or use a loop targeting @e[distance=..1.8,tag=!c9_all]).

Remove it again 3 commands

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

FAQ

Why do we use block display interpolation instead of teleporting the blade every tick?

Block display interpolation is rendered smoothly by the game client at your full frame rate, whereas teleporting an entity only updates 20 times per second and looks jittery during fast drops.

How is the diagonal edge on the blade created without a resource pack?

The iron block display uses a quaternion in right_rotation ([0f, 0f, -0.195f, 0.981f]) which rotates the flattened rectangle by about 22.5 degrees on the Z axis.

Commands used

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

Similar creations

Join 9Minecraft News & Guides