How can I turn off TNT block damage?
I'm making a map and there's gonna be a lot of blasting going on and I don't want it to damage blocks.
I've done /gamerule mobGriefing false but there's still gonna be TNT block damage.
Is there a way I can turn that off too?
Best Answer
This is a theory I have had, it's a little confusing and I am still working on making it work. If you can make it so a command blocks finds the TNT ( with the test for command) and makes it so it spawns a creeper with a no explosion delay, and makes the creeper's explosion off (game rule mob griefing off). After it is spawned make it so that the entity of lit TNT is killed. In short you would lite a TNT the TNT would disappear and replace with a creeper that instantly explodes.
Pictures about "How can I turn off TNT block damage?"



How do I make TNT not take damage in Minecraft?
Simply create a small enclosure comprising blocks of obsidian, Netherite, or Crying Obsidian (Ancient Debris works as well but is incredibly rare to find in Survival Mode) and head inside before the TNT detonates. The enclosure should withstand the explosion and the blocks should remain intact.How do I stop TNT from exploding?
If set to true, TNT explosions are enabled in your Minecraft worlds. If set to false, TNT explosions are disabled in your Minecraft worlds. You need to have WorldGuard and WorldEdit plugins installed on your server to use this option. If set to allow, explosions caused by creepers will be enabled.how to disable tnt explosions in minecraft (version 1.16)
More answers regarding how can I turn off TNT block damage?
Answer 2
Not in Vanilla Minecraft, no.
You would need a server plugin or a mod (preferably WorldGuard) to do this.
There is a good question here that shows how you can do this with World Guard.
Answer 3
Make a contraption that makes a command block go on and off and on and off and on, etc, etc. now, type /kill @e[type=PrimedTnt] in the command block. This will destroy tnt as soon as it is set. SIMPLE!
Answer 4
do not use TNT, just use an instant exploding creeper by using /summon creeper x y z {Fuse:0} or if you want all tnt is not damaging any block use
summon a charged creeper at the location of the TNT by putting /execute @e[type=PrimedTNT] ~ ~ ~ summon creeper ~ ~ ~ {Fuse:0} in a clock, and use /kill @e[type=PrimedTNT] in a clock too
Answer 5
When a PrimedTnt is about to explode (fuse is 1 or 0) replace it with an invisible creeper. I'm not going to put the commands, but I saw a youtube video by Sethbling called "Zelda Bombs in Minecraft" which uses that mechanism, among others
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Алесь Усцінаў, Shivam Patel, Ono Kosuki, George Milton
