mojira.dev
MC-205881

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

I'm sure this is just an oversight - 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.

Related issues

Attachments

Comments

migrated
[media]
FivesBlue

Can confirm in 20w46a

violine1101

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

Avoma

Can confirm in 20w51a.

Avoma

Can confirm in 21w03a.

Conure512

(Unassigned)

Confirmed

(Unassigned)

1.16.4, 20w46a, 20w51a, 21w03a, 1.20.4, 24w04a

Retrieved