Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-102244

Cannot shift click armor into armor slot with lock_in_inventory NBT components

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.16.100.60 Beta, 1.16.100.58 Beta, 1.16.100.59 Beta
    • 1.16.200.51 Beta
    • None
    • Confirmed
    • Windows
    • 420972

    Description

      Expected Behavior:  when giving yourself an item with the following command:

      `/give @s diamond_helmet 1 0 {"minecraft:item_lock":{ "mode": "lock_in_inventory" }}`,
      `/give @s iron_leggings 1 0 {"minecraft:item_lock":{ "mode": "lock_in_inventory" }}`

      `/give @s elytra 1 0 {"minecraft:item_lock":{ "mode": "lock_in_inventory" }}`

      etc,etc

      you should be able to put the helmet on your head from within your inventory. However this does not work unless you armor swap from the hotbar or put the helmet on your head using /replaceitem with nbt component. 

      Actual Behavior:  You cannot shift click items that go into the armor slots (all armor types, carved pumpkin, mob skull, elytra, turtle helmet, etc) into their respective armor slots if the item has the lock_in_inventory NBT component. You can, however, armor swap for armor pieces (+ turtle helmet and elytra) from the hotbar just fine. /replaceitem also works.

      The attached video showcases the bug: https://youtu.be/Bg2qmq22GOs

      Attachments

        Activity

          People

            ambient ambient
            Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              CHK: