Is there a way to prevent TNT offset?
I am creating a railgun using TNT and commands, and I want each firing to be as accurate as possible. I am trying to limit the offset (that little bump and jump of movement after TNT is summoned/ignited) so shots are straightforward. Here is what I have tried:
- I tried using
/tp @e[type=tnt] x y z, but the projectile ends up in the propellant chamber and usually does not come out of the barrel, blowing up the gun, or it falls out of the barrel and lands on the ground a few blocks away. - I also used the "four trick," by putting a ring of 4 blocks around the block that the TNT is summoned. If I use a blast-weak block, like wool, I have to replace the ring every time I fire it. If I use a blast-resistant one, the power of the shot is much weaker, due to the ring absorbing most of the blast.
Is there any way to do this?
Best Answer
I also used the "four trick," by putting a ring of 4 blocks around the block that the TNT is summoned. If I use a blast-weak block, like wool, I have to replace the ring every time I fire it. If I use a blast-resistant one, the power of the shot is much weaker, due to the ring absorbing most of the blast.
Do that, but add a piston underneath the TNT that pushes it upwards out of the four blocks (and presumably into a stream of water).
Pictures about "Is there a way to prevent TNT offset?"



How to spawn a huge tnt?
The easiest way wui=ould be the /fill command. Like this - /fill x1 y1 z1 x2 y2 z2 minecraft:tnt. That the 2 sets of coords are opposite corners of a big rectangle area you'd fill. Or, even easier, use relative commands - /fill ~ ~ ~ ~31 ~31 ~31 minecraft:tnt for a 32x32x32 square right next to you.Your OFFSETS are WRONG. Here's how to fix that.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Charlotte May, Mathias Reding, Ethan Wilkinson, Erik Mclean
