mojira.dev
MC-99255

Mobs killed by dogs give wrong loot tables

The bug

Mobs killed by player owned dogs don't give uncommon or rare loot. This bug first appeared when loot tables were changed in 15w43 (works as intended in 15w42) and has not been fixed yet. If the dog does the killing hit it will not give uncommon or rare loot.

What we would expect

A player owned dog assist in the player's mob kill by doing the last blow of damage to the mob and the mob's loot has a chance of dropping an uncommon or rare item.

What happens

A player owned dog assist in the player's mob kill by doing the last blow of damage to the mob and the mob's loot has no chance, what so ever, of dropping an uncommon or rare item.

How to reproduce

  1. Summon player owned dog:

    /summon wolf ~ ~ ~ {Owner:"UserName"}
  2. Summon in a blaze:

    /summon blaze ~ ~ ~ {Health:2}
  3. Punch the blaze once and let your dog finish killing it

  4. Repeat until satisfied

  5. Notice that the blaze never drops a blaze rod as a loot

It affects all types of mobs (but normal skeletons).

Code analysis

Code analysis and fix by Xcom can be found in

[media]

.

Linked issues

Attachments

Comments 8

Confirmed for 1.9.1-pre3
(at least partially confirmed; completely confirmed are the following:
Blazes killed by tamed wolves never drop any blaze rods in 1.9.1-pre3;
Spiders killed by tamed wolves never drop any spider eyes in 1.9.1-pre3;
I haven´t tested other things yet)

Confirmed for 1.9.4
Blazes killed by tamed wolves never drop any blaze rods in 1.9.4
Spiders killed by tamed wolves never drop any spider eyes in 1.9.4
Wither Skeletons killed by tamed wolves never drop any wither skeleton skulls in 1.9.4

Skeletons killed by tamed wolves DO drop armor/bows in 1.9.4

Confirm 1.11 pre-1

Confirmed for 17w06a.

Can confirm for MC 1.12.1.

So strange, its not like a dog is a cactus.

Confirmed 1.13-pre6 and 1.13-pre7.

Note new STR for 1.13 syntax:

  1. /summon minecraft:wolf ~ ~ ~ {Owner:"UserName"}

  2. /summon minecraft:blaze ~ ~ ~ {Health:2}

Ray

coschevi

Confirmed

loot-table

Minecraft 1.9, Minecraft 1.9.1 Pre-Release 2, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, ..., Minecraft 18w30b, Minecraft 1.13.1, Minecraft 18w45a, Minecraft 19w02a, Minecraft 19w07a

Minecraft 19w11a

Retrieved