mojira.dev
MC-274013

Modifying trident/item entity to have 0 durability doesn't delete it

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

Oh wait, I just realized I was mixing this up with count. Durability 0 never deletes items, so this is probably WAI.

Can confirm in 1.21, related to MC-139044 MC-120664.
This can occur for any item though, which can be demonstrated by using the following command but replacing the trident with any item:

/give @p trident[minecraft:max_damage=1,damage=1]

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 HistorySnapshot Version HistoryThe 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

GrantGryczan

(Unassigned)

Community Consensus

Items

1.21

Retrieved