The Bug
If the doMobLoot
gamerule is set to false
, foxes will still drop their items they have in their mouth when killed, even the ones spawned naturally or a spawn egg/command.
To Reproduce
Reproduce steps provided by @unknown can be found in this comment.
Attachments
Comments 7
Can confirm in 21w15a. Here are some steps to reproduce this issue:
Steps to Reproduce:
Summon a fox who is holding an item.
/summon minecraft:fox ~ ~ ~ {HandItems:[{id:"minecraft:iron_sword",Count:1b}]}
Set the
doMobLoot
gamerule to false.
/gamerule doMobLoot false
Kill the fox.
→ ❌ Notice how the fox still drops its held item upon being killed.
Can confirm in 20w51a.