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

Default attribute modifier component is not specified for armor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.20.6, 1.21 Pre-Release 2
    • None
    • Unconfirmed
    • (Unassigned)

      The bug:
      Armor pieces do not have default attribute modifiers component, although they have default attribute modifiers. Weapons and tools have default attribute modifiers as well, but they also have a component with said attributes. Due to this you can't remove attributes with an empty component, and checking for lack of it passes.

      Steps to reproduce:
      1. Get armor piece and a weapon items with component minecraft:attribute_modifiers=[]
      2. (x)See that in description of given items, weapon doesn't display any attribute modifiers, while armor piece does;

      Another way:
      1. Get armor piece and a weapon
      2. Run /execute if items entity @s weapon.mainhand *[minecraft:attribute_modifiers=[]] on both of them
      3. (x)See that armor piece passes the test, while weapon doesn't

            Unassigned Unassigned
            White_145 White_145
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: