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

/clear command returns twice the number of items cleared

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.31 Hotfix
    • None
    • Confirmed
    • Windows
    • 1118740

      Whenever I try using the command "/clear (player gamertag) (item) (data value) 0" to find out how much of an item a player has, it always returns double the amount of items the player has. For example, if I have 6 torches in my inventory and run, "/clear @s torch 0 0" it will return the number 12 when it should be returning 6. This also works with other data values such as if I have a fully lit light block and run, "/clear @s light_block 15 0" it will return the number 2 when I only have 1.

            NKozak2006 NKozak2006
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: