mojira.dev
MC-205881

Loyalty Trident belonging to a dead player will still drop an item if doEntityDrops is false

Loyalty-enchanted tridents will drop themselves as an item if they're attempting to return to a player who is dead, and setting doEntityDrops to false doesn't prevent this from happening.

Steps to recreate

-Run command /gamerule doEntityDrops false

-Give yourself a trident with a Loyalty enchantment

-Throw it, then kill yourself before it can return to you

-The trident will be found sitting on the ground as an item.

Linked issues

Attachments

Comments 4

Can confirm in 20w46a

[Mod] violine1101

Probably intentional since doEntityDrops should not prevent the player inventory from dropping on death.

Can confirm in 20w51a.

Can confirm in 21w03a.

Conure512

(Unassigned)

Confirmed

(Unassigned)

1.16.4, 20w46a, 20w51a, 21w03a, 1.20.4, 24w04a, 1.21.6, 1.21.7 Release Candidate 2, 1.21.7

Retrieved