Minecraft – way to prevent TNT offset

minecraft-bedrock-editionminecraft-commands

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).