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 Mob Griefing
Stop creepers +2 more
Turn Off Fire Spread
Stop fire from spreading to nearby blocks
Disable Mob Spawning
Stop mobs from spawning naturally in the world
Disable Block Drops (No Loot)
Stop mined blocks from dropping items
Stop Snow from Piling Up
Prevent snow layers stacking during snowfall
Stop Projectiles Breaking Blocks
Prevent tridents +2 more