mojira.dev
MCPE-116857

Clear command removes extra items in the off-hand

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

Linked issues

Attachments

Comments 1

Can reproduce in 1.16.201.

Gruntastic

(Unassigned)

466844

Confirmed

Multiple

clear, command

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

1.16.220, 1.16.220.52 Beta

Retrieved