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

Empty Attribute Modifiers lost during upgrade

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.21 Pre-Release 3
    • 1.20.6, 24w20a, 1.21 Pre-Release 1
    • None
    • Confirmed
    • (Unassigned)

      Upgrading a world from 1.20.4, empty Attribute Modifiers was removed, I think it should be preserved, because empty Attribute Modifiers can cancel default attribute modifiers.
      (Except armor due to MC-271826)

      To reproduce:
      1. In 1.20.4 get a empty attribute modifiers item with use

      /give @s diamond_sword{AttributeModifiers:[]}
      

      2. Upgrade the world
      3. Check the item attribute modifiers

            gegy1000 [Mojang] Gegy
            bluegreensea bluegreensea
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: