Build a working siege trebuchet using block displays that winds up its counterweight, launches a flaming boulder, and shatters a castle wall.
Machines & MechanismsMedievalFireOrangeRedBlackCinematicAdventure MapDecorationBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)Glowing outlines21+ commands
This command creation builds an animated siege trebuchet opposite a fortified stone wall. Using smooth display entity interpolation, the trebuchet winds its throwing arm down while raising a heavy iron counterweight, then whips forward to launch a glowing magma boulder across the battlefield.
The projectile flies in a high arc, leaving a trail of fire and thick smoke before smashing through the stone bricks in a burst of sparks and debris. After a short cooldown, the wall rebuilds itself and the siege engine reloads for another shot.
/scoreboard objectives add c9_treb dummy/scoreboard players set #time c9_treb 0/fill ~-4 ~ ~-11 ~4 ~2 ~-7 cobblestone/fill ~-2 ~1 ~-11 ~2 ~5 ~-9 stripped_spruce_wood/fill ~-1 ~1 ~-11 ~1 ~5 ~-9 air/fill ~-5 ~ ~10 ~5 ~6 ~12 stone_bricks/fill ~-5 ~7 ~10 ~5 ~7 ~12 stone_brick_slab/summon block_display ~ ~5 ~-10 {Tags:["c9_t","c9_arm"],block_state:{Name:"dark_oak_wood"},transformation:{translation:[-0.25f,-1.5f,-0.25f],scale:[0.5f,7.5f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~5 ~-10 {Tags:["c9_t","c9_weight"],block_state:{Name:"iron_block"},transformation:{translation:[-0.6f,-2.7f,-0.6f],scale:[1.2f,1.4f,1.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~2 ~-13 {Tags:["c9_t","c9_proj"],Glowing:1b,glow_color_override:16733440,block_state:{Name:"magma_block"},transformation:{translation:[-0.45f,-0.45f,-0.45f],scale:[0.9f,0.9f,0.9f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/scoreboard players add #time c9_treb 1/execute if score #time c9_treb matches 141.. run scoreboard players set #time c9_treb 1/execute if score #time c9_treb matches 1 run fill ~-4 ~1 ~10 ~4 ~6 ~12 stone_bricks/execute if score #time c9_treb matches 1 run data merge entity @e[tag=c9_arm,limit=1] {start_interpolation:0,interpolation_duration:45,transformation:{translation:[-0.25f,-1.5f,-0.25f],scale:[0.5f,7.5f,0.5f],left_rotation:[-0.766f,0f,0f,0.643f],right_rotation:[0f,0f,0f,1f]}}/execute if score #time c9_treb matches 1 run data merge entity @e[tag=c9_weight,limit=1] {start_interpolation:0,interpolation_duration:45,transformation:{translation:[-0.6f,-2.7f,-0.6f],scale:[1.2f,1.4f,1.2f],left_rotation:[-0.766f,0f,0f,0.643f],right_rotation:[0f,0f,0f,1f]}}/execute if score #time c9_treb matches 1 run tp @e[tag=c9_proj] ~ ~1.2 ~-14.6/execute if score #time c9_treb matches 1..45 as @e[tag=c9_proj] at @s run particle crit ~ ~0.5 ~ 0.3 0.2 0.3 0.05 2 force/execute if score #time c9_treb matches 50 run data merge entity @e[tag=c9_arm,limit=1] {start_interpolation:0,interpolation_duration:7,transformation:{translation:[-0.25f,-1.5f,-0.25f],scale:[0.5f,7.5f,0.5f],left_rotation:[0.259f,0f,0f,0.966f],right_rotation:[0f,0f,0f,1f]}}/execute if score #time c9_treb matches 50 run data merge entity @e[tag=c9_weight,limit=1] {start_interpolation:0,interpolation_duration:7,transformation:{translation:[-0.6f,-2.7f,-0.6f],scale:[1.2f,1.4f,1.2f],left_rotation:[0.259f,0f,0f,0.966f],right_rotation:[0f,0f,0f,1f]}}/execute if score #time c9_treb matches 51..58 as @e[tag=c9_proj] at @s run tp @s ~ ~1.35 ~0.95/execute if score #time c9_treb matches 59..68 as @e[tag=c9_proj] at @s run tp @s ~ ~0.4 ~1.2/execute if score #time c9_treb matches 69..78 as @e[tag=c9_proj] at @s run tp @s ~ ~-1.2 ~1.2/execute if score #time c9_treb matches 51..78 as @e[tag=c9_proj] at @s run particle flame ~ ~ ~ 0.2 0.2 0.2 0.03 8 force/execute if score #time c9_treb matches 78 run fill ~-2 ~1 ~10 ~2 ~5 ~12 air destroysetup #8 Summons the trebuchet throwing arm as a scaled block_display. The translation shifts the block down by 1.5 blocks relative to the entity's pivot at ~ ~5 ~-10 so that the short end holds the counterweight and the long end swings the projectile.loop #4 At tick 1, the arm begins a 45-tick interpolation using a quaternion left_rotation of [-0.766, 0, 0, 0.643] (a -100 degree pitch), tilting the long beam back toward the ground.loop #8 At tick 50, the counterweight drops and the arm whips forward over 7 ticks to a 30-degree forward angle ([0.259, 0, 0, 0.966]).loop #10 Commands 10, 11, and 12 move the glowing magma boulder in three distinct velocity phases (steep climb, peak arc, and steep dive) to create a parabolic trajectory toward the castle wall.loop #14 At tick 78, when the boulder reaches the wall at Z=+11, /fill with the destroy keyword breaks a 5x5x3 hole in the stone bricks, producing block-breaking sounds, particles, and item drops.


Recorded on our own test server: 57 frames at about 9.5 fps. Our image check saw: A wooden trebuchet behind a stone brick wall launches a flaming projectile that leaves smoke and breaks a hole in the center of the wall.
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 fire the trebuchet manually instead of looping automatically, remove the first two loop commands and add a button connected to a command block that runs /scoreboard players set #time c9_treb 50 while a separate repeating block increments #time only when it is between 1 and 80.
/kill @e[tag=c9_t]/kill @e[type=item]/scoreboard objectives remove c9_treb/fill ~-6 ~ ~-15 ~6 ~8 ~14 airIn the transformation compound, the translation vector [-0.25, -1.5, -0.25] offsets the model geometry relative to the entity's coordinates, and left_rotation applies before translation, rotating the entire offset beam around the entity's exact spawn position.
The wall only breaks once every 7 seconds and drops a small handful of blocks, which despawn naturally or can be cleared by adding a command that kills items on tick 1.
▶Self-Folding Damask Steel Katana ForgeMachines & MechanismsHard24 cmds
▶Autonomous Glassblowing Kiln WorkshopMachines & MechanismsHard24 cmds
▶Colossal Fortress GateMachines & MechanismsMedium24 cmds
▶Gothic Cathedral Organ Pipe SymphonyMachines & MechanismsHard22 cmds
▶Holographic Magnetic Tokamak Fusion ConfinementMachines & MechanismsExpert26 cmds
▶Kinematic Radial Aircraft Engine IgnitionMachines & MechanismsExpert24 cmds