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
relates to 1
Attachments
Comments 4
Probably intentional since doEntityDrops
should not prevent the player inventory from dropping on death.
Can confirm in 20w46a