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

Clear command removes extra items in the off-hand

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.16.220, 1.16.220.52 Beta
    • 1.16.220.51 Beta, 1.16.220.50 Beta, 1.16.210.61 Beta, 1.16.210.60 Beta, 1.16.210.59 Beta, 1.16.210.58 Beta, 1.16.201 Hotfix, 1.16.210
    • Confirmed
    • Multiple
    • 466844

      When using the clear command to remove a certain amount of items from a player, if the player has the item in their off hand and in their inventory, the selected amount will be removed from the inventory but an extra will be removed from the off hand.

      Steps To Reproduce:

      1. Get 2 stacks of Nautilus Shells and place one stack in the off hand
      2. Run the following command: /clear @s nautilus_shell 0 50
      3. The stack in your inventory will be at 14 (64 - 50) but the stack in your offhand will now be at 63

      Expected Behavior:

      • The clear command doesn't remove an extra item from the off hand when clearing specific items (perhaps it prefers the main hand then the off hand then the inventory?)

      Actual Behavior:

      • The clear command removes an extra item from the off hand when removing specific items

        1. 2021-02-05 12-30-10.mp4
          9.99 MB
          [Helper] lillybeacon

            Gruntastic Gruntastic
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: