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

NameDrop mob loot
Rule name (Java 1.21.11+)mob_drops
Old name (Java 1.21.10 and earlier)doMobLoot
Bedrock namedomobloot
Value typetrue / false
Defaulttrue

Commands you can copy

Turn off (false)

/gamerule mob_drops false

Reset to the default (true)

/gamerule mob_drops true

Check the current value

/gamerule mob_drops

Java 1.21.10 and earlier

/gamerule doMobLoot false

Bedrock Edition

/gamerule domobloot false

Notes

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.

Other game rules