mojira.dev
MC-307171

Looting doesn't apply when a mob dies to fall damage right after being hurt by the player

If a mob gets hit by a looting enchanted item and dies by fall damage, the enchantment won’t work. If the player does that, they can drop xp and rare drops but it doesn’t count as a player kill in the stats.

The sword in the screenshots was enchanted with Looting 255 and Smite 4.

Linked issues

Attachments

Comments 5

Thank you for helping us improve Minecraft! We saved your files:

[media][media]

It's only supposed to work if its directly killed by the player.

I believe this and MC- 207034 are the same issue.

Same two null-attacker paths as MC-207034 , see my comment there; the same lastHurtByPlayer fallback fixes both the Looting loss and the missing kill statistic for fall deaths.

blockofamethyst

(Unassigned)

Confirmed

26.1.1, 26.1.2, 26.2 Snapshot 7

Retrieved