The bug
When a trident has one durability remaining, it is possible to hit a mob with it, consuming the last durability and destroying the trident. The fix of MC-163946 implies that tridents are intended to be like elytra, unable to be used when only one durability is remaining so that the player can’t accidentally destroy this rare item.
To reproduce
/give @s minecraft:trident[minecraft:damage=249]
Make sure you’re in survival mode because creative mode doesn’t use tool durability. While at close range to a mob, left click the mob with the trident to perform the melee attack (not throwing). The mob is damaged and the trident is destroyed.
Credit
Credit for the discovery of this bug goes to Doctor Nok in this video
https://www.youtube.com/watch?v=mPx8Hgxh8Fg&t=48s
Linked issues
Attachments
Comments 12
NeunEinser, if this was intended behavior, then the fix to MC-163946 would’ve been that the trident is thrown without simultaneously playing the breaking animation/sound, and the trident entity is destroyed (and plays the breaking sound) immediately upon colliding with a block or mob (after damaging the mob). Instead, the fix to MC-163946 was that use of the trident as a long-range weapon is completely disallowed when the trident has one durability remaining. For consistency, use of the trident as a short-range weapon should be completely disallowed when the trident has one durability remaining. Left clicking while holding a trident that has one durability remaining should do nothing.
No, the fix to MC-163946 was to return the behavior to how it was in 1.13 before it regressed.
Then 1.13 was affected by this bug also. 1.13 having this behavior doesn’t change the fact that it’s inconsistent to be able to use a trident’s last durability via melee, but not via throwing.
Likely intended as throwing it would cause it to break in your hand and still produce a projectile entity.
If you're holding it in your hand and melee, you are using it to attack, which probably should consume durability.