Updated:
Deal drowning damage game rule (drowning_damage)
The "Deal drowning damage" rule is called drowning_damage in Java 1.21.11 and later, and drowningDamage in 1.21.10 and earlier. Controls whether players take damage when they run out of air underwater.
Basic data
| Name | Deal drowning damage |
|---|---|
| Rule name (Java 1.21.11+) | drowning_damage |
| Old name (Java 1.21.10 and earlier) | drowningDamage |
| Bedrock name | drowningdamage |
| Value type | true / false |
| Default | true |
Commands you can copy
Turn off (false)
/gamerule drowning_damage falseReset to the default (true)
/gamerule drowning_damage trueCheck the current value
/gamerule drowning_damageJava 1.21.10 and earlier
/gamerule drowningDamage falseBedrock Edition
/gamerule drowningdamage 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 drowningDamage gives an error
In Java 1.21.11 and later the rule is called drowning_damage. Write /gamerule drowning_damage … instead. Worlds on 1.21.10 and earlier keep the old name.
How do I check the current value?
Run /gamerule drowning_damage without a value. The current value is shown in chat.