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

NameAllow 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 nametntexplodes
Value typetrue / false
Defaulttrue

Commands you can copy

Turn off (false)

/gamerule tnt_explodes false

Reset to the default (true)

/gamerule tnt_explodes true

Check the current value

/gamerule tnt_explodes

Java 1.21.10 and earlier

/gamerule tntExplodes false

Bedrock Edition

/gamerule tntexplodes false

Notes

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.

Other game rules