It might be a cake-cannon, much like her Party-Cannon.

Despite her being an earth-pony, PinkiePie showed in the past, that she's quite inventful, even capable to build a candy-helicopter.

(it broke due to Gilda, but it worked pretty fine, considering the extremely low built-time)