A working medieval trebuchet spins its wooden winch to haul down the throwing arm, launching a blazing boulder that shatters a stone castle wall into rubble.
This command creation builds a full-scale medieval siege scene with a timber trebuchet on one side of the field and a fortified stone castle wall with flanking towers on the other. Every few seconds, the wooden capstan winch spins to haul down the throwing arm, whips it overhead, and hurls a flaming magma boulder across the sky.
Using item_display transformation interpolation and calculated falling_block projectile physics, the boulder follows a high parabolic arc before smashing straight through the curtain wall in a burst of fire, smoke, and tumbling stone rubble, then resets cleanly for the next volley.
/scoreboard objectives add c9 dummy/fill ~-14 ~0 ~-2 ~-7 ~0 ~2 minecraft:spruce_planks/fill ~-10 ~1 ~-2 ~-10 ~5 ~-2 minecraft:dark_oak_log/fill ~-10 ~1 ~2 ~-10 ~5 ~2 minecraft:dark_oak_log/fill ~-10 ~5 ~-2 ~-10 ~5 ~2 minecraft:stripped_spruce_log[axis=z]/fill ~8 ~0 ~-5 ~10 ~6 ~5 minecraft:stone_bricks/fill ~8 ~7 ~-5 ~10 ~9 ~-4 minecraft:stone_bricks/fill ~8 ~7 ~4 ~10 ~9 ~5 minecraft:stone_bricks/summon minecraft:item_display ~-9.5 ~5.5 ~0.5 {Tags:["c9_arm"],item:{id:"minecraft:spruce_planks",count:1},transformation:{left_rotation:[0f,0f,0.383f,0.924f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[8.0f,0.6f,0.6f]}}/summon minecraft:item_display ~-13.5 ~1.5 ~0.5 {Tags:["c9_winch"],teleport_duration:2,item:{id:"minecraft:spruce_log",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2.8f,0.7f,0.7f]}}/scoreboard players add #t c9 1/execute if score #t c9 matches 136.. run scoreboard players set #t c9 1/execute if score #t c9 matches 1 run fill ~4 ~0 ~-3 ~16 ~4 ~3 minecraft:air/execute if score #t c9 matches 2 run fill ~8 ~0 ~-3 ~10 ~6 ~3 minecraft:stone_bricks/execute if score #t c9 matches 3 as @e[tag=c9_arm] run data merge entity @s {start_interpolation:1,interpolation_duration:44,transformation:{left_rotation:[0f,0f,0.954f,-0.301f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[8.0f,0.6f,0.6f]}}/execute if score #t c9 matches 48 as @e[tag=c9_arm] run data merge entity @s {start_interpolation:0,interpolation_duration:6,transformation:{left_rotation:[0f,0f,0.906f,0.423f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[8.0f,0.6f,0.6f]}}/execute if score #t c9 matches 55 as @e[tag=c9_arm] run data merge entity @s {start_interpolation:1,interpolation_duration:7,transformation:{left_rotation:[0f,0f,0.383f,0.924f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[8.0f,0.6f,0.6f]}}/execute if score #t c9 matches 3..47 as @e[tag=c9_winch] at @s run tp @s ~ ~ ~ ~12 ~/execute if score #t c9 matches 59 run summon minecraft:falling_block ~-9.5 ~9.2 ~0.5 {BlockState:{Name:"minecraft:magma_block"},Time:1,DropItem:0b,Motion:[0.65,0.72,0.0],Tags:["c9_boulder"]}/execute if score #t c9 matches 59..99 at @e[tag=c9_boulder] run particle minecraft:flame ~ ~0.5 ~ 0.35 0.35 0.35 0.04 12/execute if score #t c9 matches 99 run fill ~8 ~0 ~-2 ~10 ~6 ~2 minecraft:air/execute if score #t c9 matches 99 run particle minecraft:explosion_emitter ~9 ~3 ~0.5 1.8 1.8 1.8 0 4/execute if score #t c9 matches 99 run summon minecraft:falling_block ~9 ~3 ~-1 {BlockState:{Name:"minecraft:stone_bricks"},Time:1,DropItem:0b,Motion:[0.22,0.48,-0.06]}/execute if score #t c9 matches 100 run summon minecraft:falling_block ~9 ~4 ~1.5 {BlockState:{Name:"minecraft:cracked_stone_bricks"},Time:1,DropItem:0b,Motion:[0.20,0.45,0.04]}setup #9 Summons an item_display of spruce_planks scaled to 8 blocks long at the trebuchet axle so it can rotate smoothly around its center pivot.loop #5 Interpolates the arm rotation over 44 ticks while the winch winds down, pulling the throwing end back into the cocked angle.loop #6 Splits the rapid throwing swing with a midpoint quaternion keyframe so SLERP carries the beam cleanly overhead instead of clipping through the ground.loop #8 Rotates the capstan winch by 12 degrees per tick during the haul phase, using teleport_duration:2 for smooth visual motion.loop #9 Launches a magma_block falling_block from the peak of the arm swing with calibrated X and Y velocity to arc 14 blocks high and strike the wall after 40 ticks.loop #11 Carves a breach through the stone curtain wall at the exact impact tick while explosion particles and falling_block rubble scatter outward.


Recorded on our own test server: 57 frames at about 9.4 fps. Our image check saw: A wooden trebuchet launches a flaming magma block that arcs across the field and explodes against a stone brick castle wall, breaching its center before resetting.
To fire the trebuchet manually instead of on an automatic loop, remove the second loop command that resets #t, keep the arm cocked at tick 47, and wire a button or pressure plate to run /scoreboard players set #t c9 48 (along with a second button running /scoreboard players set #t c9 1 to reload and repair the wall).
/kill @e[tag=c9_arm]/kill @e[tag=c9_winch]/kill @e[tag=c9_boulder]/scoreboard objectives remove c9/fill ~-15 ~0 ~-6 ~17 ~10 ~6 minecraft:airDisplay entity rotation interpolation always takes the shortest angular path between two quaternions. Adding a midpoint keyframe at 130 degrees forces the beam to whip up and over the top rather than swinging downward through the frame.
No. At tick 1 of every cycle, a fill command clears any settled magma blocks and stone rubble around the breach right before tick 2 rebuilds the castle wall.
▶Automated Potion Bottling Conveyor LineComplex Contraptions & CinematicsEasy
▶Levitating Ancient Obelisk Rune AssemblyComplex Contraptions & CinematicsEasy
▶Multi-Stage Space Rocket Launch SequenceComplex Contraptions & CinematicsMedium
▶Rotating Brass Celestial Orrery MechanismComplex Contraptions & CinematicsEasy