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

Attributes on an item not being applied after having swapped the item from offhand to mainhand

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.21
    • None
    • Windows 10, java Version 8 Update 411 (build 1.8.0_411-b09)
    • Unconfirmed

      What I expected to happen was...:
      When swapping an item with an attribute (for example generic_scale) from your offhand to your mainhand using the "Swap Item With Offhand" function, this should keep the attribute on the item being applied to the player. (similar to how attributes remain being applied in reverse from your mainhand to your offhand)

      What actually happened was...:
      When swapping the item using the "Swap Item With Offhand" function from your offhand to your mainhand the attributes on the item stop being applied to the player until the item is in any way reselected.

      Steps to Reproduce:
      1. /give yourself any item with an attribute being applied to it, as these do not appear naturally in the game, for example:

      /give @p stick[attribute_modifiers=[{type:"generic.jump_strength",name:"generic.jump_strength",amount:1,operation:"add_value",uuid:[I;267209431,-1302839254,-1300287019,-265012101]}]] 1

      2. Select the item in your offhand (this should apply the given attribute modifier to the player when held) 

      3. Swap the item from your offhand to your mainhand using the "Swap Item With Offhand" function (default key F)

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

              Created:
              Updated:
              Resolved: