Updated:
Drop mob loot game rule (mob_drops)
The "Drop mob loot" rule is called mob_drops in Java 1.21.11 and later, and doMobLoot in 1.21.10 and earlier. Controls whether mobs drop items and experience when killed.
Basic data
| Name | Drop mob loot |
|---|---|
| Rule name (Java 1.21.11+) | mob_drops |
| Old name (Java 1.21.10 and earlier) | doMobLoot |
| Bedrock name | domobloot |
| Value type | true / false |
| Default | true |
Commands you can copy
Turn off (false)
/gamerule mob_drops falseReset to the default (true)
/gamerule mob_drops trueCheck the current value
/gamerule mob_dropsJava 1.21.10 and earlier
/gamerule doMobLoot falseBedrock Edition
/gamerule domobloot 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 doMobLoot gives an error
In Java 1.21.11 and later the rule is called mob_drops. Write /gamerule mob_drops … instead. Worlds on 1.21.10 and earlier keep the old name.
How do I check the current value?
Run /gamerule mob_drops without a value. The current value is shown in chat.