Since everyone is saying that I should’ve just used a dispenser:
Dispensers only shoot one arrow at a time. This cannon could shoot a barrage. To make the equivalent of this, you would’ve had to use a bunch of dispensers and fire them simultaneously. Also, I like this.
An arrow cannon using TNT and pistons. (And redstone of course).
Mods used: TooManyItems