Updated:
Drop entity equipment game rule (entity_drops)
The "Drop entity equipment" rule is called entity_drops in Java 1.21.11 and later, and doEntityDrops in 1.21.10 and earlier. Controls whether minecarts, item frames, boats and similar entities drop items when broken.
Basic data
| Name | Drop entity equipment |
|---|---|
| Rule name (Java 1.21.11+) | entity_drops |
| Old name (Java 1.21.10 and earlier) | doEntityDrops |
| Bedrock name | doentitydrops |
| Value type | true / false |
| Default | true |
Commands you can copy
Turn off (false)
/gamerule entity_drops falseReset to the default (true)
/gamerule entity_drops trueCheck the current value
/gamerule entity_dropsJava 1.21.10 and earlier
/gamerule doEntityDrops falseBedrock Edition
/gamerule doentitydrops 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 doEntityDrops gives an error
In Java 1.21.11 and later the rule is called entity_drops. Write /gamerule entity_drops … instead. Worlds on 1.21.10 and earlier keep the old name.
How do I check the current value?
Run /gamerule entity_drops without a value. The current value is shown in chat.