Skip to content
[/craft]

Disable TNT Explosions

Turn off TNT from detonating

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Stops primed TNT from exploding, so it can still be lit but does no damage or block destruction. Useful for preventing accidental griefing on a build server. This gamerule exists on both editions; to also stop TNT minecarts, this same rule blocks their ignition when false.

/gamerule tntExplodes false
27 characters

How to use

  1. Open chat (T on Java, / on Bedrock).
  2. Paste the command and press Enter.
  3. TNT can be lit but will not explode.

Related commands

Stop creepers, endermen, and other mobs from changing blocks

/gamerule mobGriefing false

Stop fire from spreading to nearby blocks

/gamerule doFireTick false

Stop mobs from spawning naturally in the world

/gamerule doMobSpawning false

Stop mined blocks from dropping items

/gamerule doTileDrops false

Prevent snow layers stacking during snowfall

/gamerule snowAccumulationHeight 0

Prevent tridents, wind charges, and similar projectiles from breaking blocks

/gamerule projectilesCanBreakBlocks false