mojira.dev
MC-75494

Lead item drop is not affected by doEntityDrops gamerule

The bug

Leashed mobs ignore the doEntityDrops gamerule and drop leads upon death or when getting disconnected from the lead.

How to reproduce

  1. Set doEntityDrops gamerule to false by running:

    /gamerule doEntityDrops false
  2. Spawn any leash-able mob

  3. Leash the spawned mob

  4. Kill the mob or fly far away very quickly or have a creeper explode nearby
    → Notice that the lead is dropped

Note: I'm not entirely sure which gamerule should affect lead drop(doEntityDrops or doMobLoot). But none of them affects this behavior.

Video demonstrating the issue: https://drive.google.com/file/d/0Bwh-rUpGiETGWEs5SUFVOEFiUG8/view?usp=sharing

Linked issues

Attachments

Comments 47

Not just fall damage. And I'll be very surprised if this isn't dupe.

Hm... does it include a portal? Because the only one I could find is MC-15270, which includes a portal. Also, please specify the reproduction steps since I don't get your current ones.

@unknown This is creative only. Basically you lead a mob and when mob dies, mob drops another lead even if doEntityDrops is false. Is there any ticket already describing this? (I couldn't find one) If not, I'll create one with better description.

Dlawso the Really Lucky Rabbit

mob drops another lead even if doEntityDrops is false.

That would fall under doMobLoot, then.

Confirmed.
Yoo Tae Jong: I assigned the ticket to you, please change title and description to a proper one.

37 more comments

Confirmed in 1.16-rc1.

Can confirm in 21w05b.

Can confirm in 21w07a.

Video attached.

Can confirm in 1.19.2.

Tyler M

Meri Diana

etanaratsastaja

Confirmed

Platform

Low

Commands

doEntityDrops, drop, gamerule, item, lead

Minecraft 1.8.1, Minecraft 1.8.2-pre1, Minecraft 1.8.2-pre4, Minecraft 1.8.2-pre6, Minecraft 1.8.2, ..., 24w05a, 24w11a, 24w12a, 1.20.6, 1.21

24w33a

Retrieved