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

Removes attributes when item is moved without checking if item is in another valid slot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.15.2, 1.16.1
    • None
    • Community Consensus
    • (Unassigned)

      I am using /replaceitem to constantly put a ghast tear in the players offhand that halves their health. What I noticed was that if the player took the item from the players offhand into the players main hand, then removed it from the players main hand, it would remove the attribute (even thought the item was still in the players off hand). I know it's not the command because the item, separately in the players main hand or off hand works as intended. The only way I could find to reset the attribute with the command block using /replaceitem was to kill the player (I tried changing the item so it would replace it but that didn't work).

       

      Steps to reproduce are:

      1) Have a command block replace the off hand slot with an item that has an attribute every tick

      2) Move that item into the main hand

      3) Remove the item from the main hand

      It will remove the attribute, even though the command block replaced the off hand with the same item.

      The item I used had the same attribute applied to all attribute slots (main hand, off hand, being worn as armor)

      The picture attached shows the item, as well as the health bar after I performed the above steps. (I am using a texture pack but that should not matter) 

            Unassigned Unassigned
            awesome8679 Joshua Svitak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: