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

damage_item enchantment entity effect doesn't break items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w20a
    • 24w18a
    • None
    • Community Consensus
    • Commands, Data Packs, Enchantments
    • Important
    • Platform

      The damage_item entity effect in enchantments doesn't break the item when the durability reaches 0.

      How to reproduce:
      I've attached a datapack that adds a test:damage_armor enchantment. This enchantment uses the minecraft:tick enchantment component to apply the damage_item entity effect every tick.

      1. Open a world with the attached datapack
      2. Enchant any piece of armor with the test:damage_armor enchantment

      /enchant @s test:damage_armor

      3. Equip the armor
      4. Wait for the durability to reach 0
      5. Note that the armor doesn't break, and the durability stays as 0.

        1. Confirmed..mp4
          3.45 MB
          BugTracker

            slicedlime [Mojang] slicedlime
            CC_fan jacobsjo
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: