mojira.dev
MC-279806

A riptide trident does not lose durability when the item is placed on the cursor before colliding with a mob

While in riptide mode, you can freely move your trident using hotkeys before colliding with a mob. The game remembers which trident was used, causing it to lose durability a second time when it inflicts damage, even if it's no longer in your hand. However, if you pick up the trident with your cursor or drop it before colliding with a mob, it won't lose durability a second time, despite having been used to attack the mob.

Steps to reproduce

  1. /give @s minecraft:trident[minecraft:damage=248,minecraft:enchantments={"minecraft:riptide":3}]
  2. Make sure there is water or rain nearby to use riptide

  3. Summon a target which is easy to hit from a distance:

    /summon giant ~ ~ ~ {NoAI:1b}

    (The giant has 100 Health)

  4. Stand back a bit and throw the trident at the giant

    1. The greater the distance, the more damage the giant will take, since your attack timer has more time to refresh

  5. Immediately after you begin moving, either throw the trident out or open your inventory and quickly move it to your cursor. If you're too slow, consider lowering the tick rate.

  6. /data get entity @n[type=giant] Health

Expected behavior: The riptide trident should break when it collides with the giant.

Observed behavior: The trident did not lose durability and break upon colliding with the giant. Even though the trident didn't lose durability, the giant took significant damage, indicating that it was hit by the trident, not by the player’s fist. If you had moved the trident using hotkeys instead, it would have broken.

Attachments

Comments 1

Can confirm, this happens whenever the trident leaves the player’s inventory before the collision, including when the player throws it out.

Oquine

(Unassigned)

Confirmed

Platform

Normal

Enchantments, Items

1.21.4, 25w04a, 1.21.5 Pre-release 2, 1.21.8 Release Candidate 1

Retrieved