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

Attributes don't apply after switching from offhand/armor slots

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.20.6
    • None
    • Java 21
    • Unconfirmed
    • (Unassigned)

      Let H be an item that gives an attribute A, when held in "any" slot (the main/offhand and armor slots).

      Switching H from offhand to mainhand, or armor slots to main/offhand disables A (unexpected behaviour), and switching H from mainhand to offhand, or main/offhand to armor slots does not disable A (expected behaviour).

      Item to reproduce:
      {{/give @s minecraft:leather_helmet[minecraft:attribute_modifiers={modifiers:[

      {name:"armor",amount:1.0d,type:"minecraft:generic.armor",uuid:[I; 0, 0, 0, 0],slot:"any",operation:"add_value"}

      ]}]}}

            Unassigned Unassigned
            wd4q5dy wd4q5dy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: