Updated:
Allow TNT to be activated and to explode game rule (tnt_explodes)
The "Allow TNT to be activated and to explode" rule is called tnt_explodes in Java 1.21.11 and later, and tntExplodes in 1.21.10 and earlier. Controls whether TNT can be lit and explode.
Basic data
| Name | Allow TNT to be activated and to explode |
|---|---|
| Rule name (Java 1.21.11+) | tnt_explodes |
| Old name (Java 1.21.10 and earlier) | tntExplodes |
| Bedrock name | tntexplodes |
| Value type | true / false |
| Default | true |
Commands you can copy
Turn off (false)
/gamerule tnt_explodes falseReset to the default (true)
/gamerule tnt_explodes trueCheck the current value
/gamerule tnt_explodesJava 1.21.10 and earlier
/gamerule tntExplodes falseBedrock Edition
/gamerule tntexplodes falseNotes
- Java 1.21.11 renamed game rules to lower case with underscores. If an older command or a map description uses the old name, rewrite it for your version.
- Game rules are saved per world. On a server, a new world starts with the default values again.
Questions
Typing tntExplodes gives an error
In Java 1.21.11 and later the rule is called tnt_explodes. Write /gamerule tnt_explodes … instead. Worlds on 1.21.10 and earlier keep the old name.
How do I check the current value?
Run /gamerule tnt_explodes without a value. The current value is shown in chat.