mojira.dev
MC-148765

Thrown Loyalty trident still drops with keepInventory on

If the player dies after throwing a loyalty trident, the item will be dropped as an item even if the keepInventory gamerule is enabled.

Steps to Reproduce:

(In survival)

  1. Get a trident

  2. Enchant it

    /enchant @p minecraft:loyalty 3
  3. Throw the trident

  4. Die (can use /kill)

Observed Behavior:

The trident will drop as an item onto the ground.

Expected Result:

The trident would return to the player/their inventory.

Screenshots/Videos:

[media]

Linked issues

Attachments

Comments 4

Still affects 1.16.4 and 20w49a, also, can I request ownership.

Can confirm in 21w06a

Isn't this working as intended? While thrown, the trident is not inside of the player's inventory — and thus isn't affected by keepInventory.

Affects 1.20.5. Requesting ownership of this issue.

Lance Williams

[Mod] Jingy

(Unassigned)

Community Consensus

Player

gamerule, keepinventory, loyalty, trident

Minecraft 1.13.2, 1.14.4, 1.16.4, 20w49a, 1.20.6, 24w21b, 1.21.7

Retrieved