TNT cannon with a water barrel

A TNT cannon uses the blast of some TNT (the charges) to throw another TNT (the projectile). Press the button: about 4 seconds later the charges explode and, in the simulator, throw the projectile about 21 blocks east.

TNT cannon in the 3D viewer, its charges and projectile lit after one press of the button
43 blocks · about 21 blocks in the simulator

How it works, part by part

1 · ButtonA stone button stays pressed for 1 second (20 ticks). It sits on the back of the back charge dispenser and powers it directly. The dust on top of that dispenser carries the press to the other two, and the dust beside the button starts the repeater line.
2 · Dust on the dispensersDust powers the block it lies on. This line runs over the back charge dispenser, which the button powers, and onto the two side ones, so all three fire in the same tick.
3 · Charge dispensersEach holds 16 TNT. A powered dispenser lights the TNT in front of it 4 ticks later, and lit TNT explodes 79 ticks after that. All three face the back water block, so the three charges are lit in the same spot in the same tick and explode together.
4 · WaterTwo water sources, closed in on every side but the top. Lit TNT sinks in still water. An explosion in water breaks no blocks, but it still pushes the TNT near it: the charges throw the projectile without blowing up the cannon.
5 · Projectile dispenserIt holds 16 TNT and faces up, so it lights the projectile on top of itself, 24 ticks after the charges. When the charges explode, the projectile is lying there with 24 ticks of fuse left. The blast throws it up and east; the cannon's own blocks shade it from part of the blast. In the simulator it flies about 21 blocks and explodes as it comes back down level with the top of the floor. In the game a dispenser's TNT hops a little sideways at random when it is lit. The simulator puts the three charges in one spot and follows the average hop; a real shot can land somewhere else.
6 · RepeatersThree repeaters at delay 4 (8 ticks each) hold the press back 24 ticks before it reaches the projectile dispenser, so the projectile is lit after the charges and is still burning when they explode.
7 · WallsStone that closes in the water and holds up the dust on the dispensers.
8 · FloorStone under the water, the dust and the repeaters, which need a block to sit on.

Download for your world

Both files hold the same machine, for Java Edition 26.3. Pick the one your tools load.

How to load it
  1. Structure block: put the .nbt file in your world’s generated/minecraft/structure folder, place a structure block (/give @s structure_block), set it to Load, type the file name without .nbt, then Load.
  2. WorldEdit: put the .schem file in WorldEdit’s schematics folder, then type //schem load <name> and //paste.
  3. Litematica: put the .schem file in .minecraft/schematics, open the Litematica menu (M), load it and place it where you stand.

The full guide, step by step

Build it

Materials
  • 24× stone
  • 9× redstone dust
  • 4× dispenser
  • 3× repeater
  • 2× water
  • 1× button

Layer by layer

From the bottom up. Turn the 3D view and click a block to see exactly where it goes.

  1. Layer 1 20× stone
  2. Layer 2 4× dispenser, 4× stone, 4× redstone dust, 3× repeater, 2× water, 1× button
  3. Layer 3 5× redstone dust

Want a variant? Ask your AI.

Show me the TNT cannon from Contraptify and make a variant of it. How to connect your AI

Related machines