Minecraft wiki entry for TNT_cannons, associated text: To build a sand cannon, use a piston to push the sand off in front of the TNT charge, or a sticky piston attached to an inverter to remove a block holding the sand up.