Disable TNT Explosions
Turn off TNT from detonating
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Stops 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 false27 characters
- Java: yes
- Bedrock: yes
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java, / on Bedrock).
- Paste the command and press Enter.
- TNT can be lit but will not explode.
Related commands
Stop creepers, endermen, and other mobs from changing blocks
/gamerule mobGriefing falsePrevent snow layers stacking during snowfall
/gamerule snowAccumulationHeight 0Prevent tridents, wind charges, and similar projectiles from breaking blocks
/gamerule projectilesCanBreakBlocks false