Medieval Trebuchet Castle Wall Siege

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.

Java EditionComplex Contraptions & CinematicsMediumTested on a real 26.2 & 26.3 server
A wooden trebuchet hurls a flaming magma boulder that smashes through a stone castle wall. Download the GIF

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.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9 dummy
  2. /fill ~-14 ~0 ~-2 ~-7 ~0 ~2 minecraft:spruce_planks
  3. /fill ~-10 ~1 ~-2 ~-10 ~5 ~-2 minecraft:dark_oak_log
  4. /fill ~-10 ~1 ~2 ~-10 ~5 ~2 minecraft:dark_oak_log
  5. /fill ~-10 ~5 ~-2 ~-10 ~5 ~2 minecraft:stripped_spruce_log[axis=z]
  6. /fill ~8 ~0 ~-5 ~10 ~6 ~5 minecraft:stone_bricks
  7. /fill ~8 ~7 ~-5 ~10 ~9 ~-4 minecraft:stone_bricks
  8. /fill ~8 ~7 ~4 ~10 ~9 ~5 minecraft:stone_bricks
  9. /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]}}
  10. /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]}}

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

  1. /scoreboard players add #t c9 1
  2. /execute if score #t c9 matches 136.. run scoreboard players set #t c9 1
  3. /execute if score #t c9 matches 1 run fill ~4 ~0 ~-3 ~16 ~4 ~3 minecraft:air
  4. /execute if score #t c9 matches 2 run fill ~8 ~0 ~-3 ~10 ~6 ~3 minecraft:stone_bricks
  5. /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]}}
  6. /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]}}
  7. /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]}}
  8. /execute if score #t c9 matches 3..47 as @e[tag=c9_winch] at @s run tp @s ~ ~ ~ ~12 ~
  9. /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"]}
  10. /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
  11. /execute if score #t c9 matches 99 run fill ~8 ~0 ~-2 ~10 ~6 ~2 minecraft:air
  12. /execute if score #t c9 matches 99 run particle minecraft:explosion_emitter ~9 ~3 ~0.5 1.8 1.8 1.8 0 4
  13. /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]}
  14. /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]}

How it works

Frames from the test run

Medieval Trebuchet Castle Wall Siege - frame 1Medieval Trebuchet Castle Wall Siege - frame 2Medieval Trebuchet Castle Wall Siege - frame 3

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.

Build it in your world

  1. Find a flat grassy area at least 35x15 blocks with open sky above it and stand in the center.
  2. Run each of the 10 setup commands in order from your chat bar (or place them in impulse command blocks chained together).
  3. Place 14 repeating command blocks set to Always Active at the center point (or use execute positioned pointing to your center block) and paste one loop command into each.
  4. Watch the capstan winch spin to cock the arm, fling the blazing boulder in a high arc, and shatter the fortress wall.
  5. Wait a couple of seconds after impact to see the breach clear and the stone wall automatically rebuild for the next siege volley.

Use it with real players

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

Remove it again 5 commands

  1. /kill @e[tag=c9_arm]
  2. /kill @e[tag=c9_winch]
  3. /kill @e[tag=c9_boulder]
  4. /scoreboard objectives remove c9
  5. /fill ~-15 ~0 ~-6 ~17 ~10 ~6 minecraft:air

FAQ

Why does the trebuchet arm use two swing commands instead of one?

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

Will the falling boulder and rubble pile up permanently on the ground?

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.

Commands used

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

More complex contraptions & cinematics