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

NameDrop entity equipment
Rule name (Java 1.21.11+)entity_drops
Old name (Java 1.21.10 and earlier)doEntityDrops
Bedrock namedoentitydrops
Value typetrue / false
Defaulttrue

Commands you can copy

Turn off (false)

/gamerule entity_drops false

Reset to the default (true)

/gamerule entity_drops true

Check the current value

/gamerule entity_drops

Java 1.21.10 and earlier

/gamerule doEntityDrops false

Bedrock Edition

/gamerule doentitydrops false

Notes

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.

Other game rules