Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-274013

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.21
    • None
    • Community Consensus
    • Items

      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.

            Unassigned Unassigned
            GrantGryczan Grant Gryczan
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: