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

Attributes won't work in main hand if they were in offhand

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • Minecraft 16w06a, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.10.2, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w36a, Minecraft 16w40a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.13.1, Minecraft 1.14.3, 1.15.2, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w28a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w46a, 20w48a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w11a, 1.17 Pre-release 2, 1.17
    • None
    • Confirmed
    • Items
    • Normal

    Description

      The bug

      An attribute on an item will not be effective if switched from offhand to main hand.

      How to reproduce

      1. Use the following command:
        /give @s stone{AttributeModifiers:[{AttributeName:generic.movement_speed,Amount:1,UUID:[I;1,2,3,4]}]}
        
      2. Take the item in hand
      3. Press the F key once to switch the item to secondary hand
      4. Press the F key again to switch the item back to main hand
        The attribute change is no longer applied

      Examples

      Additional note

      This allows a player to chose if he or if he doesn't want he attribute being applied.
      i.e. It's not possible to create strong weapons with an attribute counterpart (-health or -speed for example) which is pretty bad for mapmakers.

      Attachments

        1. 1.png
          1.png
          124 kB
        2. 2.png
          2.png
          136 kB
        3. 3.png
          3.png
          142 kB
        4. Attributes won't work in main hand if they were in offhand.mp4
          6.44 MB
        5. MC-97087.mp4
          5.48 MB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Viandox Victor Deshayes
              Votes:
              12 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: