Throw a trident in survival mode, and enter either of the two below commands.
/item modify entity @n[type=minecraft:trident] contents {"function":"minecraft:set_damage","damage":0}
/data modify entity @n[type=minecraft:trident] item.components.minecraft:damage set value 250
This sets the trident entity to have 0 durability, which is expected to delete it, just as an item entity with 0 durability would be deleted. But it doesn't get deleted. Picking up the trident, you'll see it has 0 durability.
[media]Attachments
Comments 3
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Oh wait, I just realized I was mixing this up with count. Durability 0 never deletes items, so this is probably WAI.