3

Suppose I have a hill or a mountain I wish to demolish. I created a cannon using the classic recipe so I can do this task:

TNT cannon

My problem is that reloading is quite cumbersome. I know that I can manufacture cobblestone using lava and water. Is there some way to manufature TNT somehow? If i need a mod for this it is not a problem!

So my goal is to be able to fire a primed TNT by pressing a button and without the need of reloading.

Adam Arold
  • 4,749
  • 17
  • 55
  • 85

3 Answers3

4

This is now completely possible if you have access to command blocks. The key difference is that you can use the command blocks to /summon some PrimedTNT all in one spot, and all with very short fuses.

For instance in three command blocks, you could summon the cannon charge at 0, 0:

summon PrimedTNT 0 64 0 {Fuse:5}

Changing the Y value to something appropriate for your environment. In a fourth command block, you would then summon your "cannon ball":

summon PrimedTNT 1 65 0 {Fuse:100}

The Fuse data tag is measured in redstone ticks, i.e. tenths of a second, and have a limit of 127 (signed 8-bit number / Java byte).

TNT Cannon Running

MBraedley
  • 16,403
  • 20
  • 101
  • 149
  • This is AWESOME! What mod do I need to get my hands on command blocks? – Adam Arold Feb 16 '14 at 18:28
  • You don't. You do need cheats enabled for single player, but that can be accomplished by opening the game to LAN. Simply issue /give @p command_block 64 to give yourself a stack of them. – MBraedley Feb 16 '14 at 18:33
  • What version of Minecraft do I need? – Adam Arold Feb 16 '14 at 18:44
  • The block has been around since about 1.4, but I'm not sure when summon was added. Somewhat recently I think. – MBraedley Feb 16 '14 at 22:13
  • One more question: How can you fire that far? – Adam Arold Apr 14 '14 at 00:15
  • It depends on the number of charge TNTs (here it's only 3), and that gets you I think to the first crater hat you can see. There's several craters after that, some beyond the render distance. – MBraedley Apr 14 '14 at 00:19
  • Ok, I found out that you can actually give a Motion parameter to your TNT which describes the speed and direction. – Adam Arold Apr 14 '14 at 00:34
  • Yeah, that's another way. It's more complicated, which is why I didn't bother to do it that way. That would give you more finesse as to the location of the shot, though. – MBraedley Apr 14 '14 at 00:54
2

Zisteau created a TNT magazine that could be used for dropping TNT. Multiple magazines, arranged correctly, could be used to create a TNT cannon.

This might not be the best use of resources (or time), unless you're willing to go into creative and/or use MCEdit. In which case, why would you be worried about a mountain?

MBraedley
  • 16,403
  • 20
  • 101
  • 149
  • This is not generating TNT. This will run out of ammo eventually. As I stated in my question I want something that doesn't need a reload. – Adam Arold Nov 28 '12 at 12:15
  • 8
    @AdamArold: There is no way to generate TNT as far as I know. I must have skipped over that part of your question. – MBraedley Nov 28 '12 at 12:32
-8

There is no way at all to do this

DeJay
  • 1