mojira.dev
MC-153010

doMobLoot gamerule doesn't prevent foxes from dropping their items

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 20w51a.

Can confirm in 21w06a.

Can confirm in 21w07a.

Can confirm in 1.16.5 and 21w10a. Video attached.

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 1.17.

Can confirm in 1.17.1.

DrownedZombie

(Unassigned)

Confirmed

Entities

doMobLoot

Minecraft 1.14.2 Pre-Release 4, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2, 1.15.2, 20w18a, ..., 1.17, 1.17.1, 1.18.1, 1.20.4, 24w07a

Retrieved