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

/clear [player] [identifier] does not behave correctly for blocks of data values above 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.12.1
    • 1.13.0.1 Beta, 1.12.0.11 Beta
    • None
    • Confirmed
    • Windows

      If you have block that has a data value above 0 (E.g Spruce Planks) and you don't specify a data value in the command (E.g /clear @p planks), then the spruce planks won't be cleared. However, if you have oak planks in your inventory in a slot further over than the spruce, and you run the same command, it will clear the spruce planks but only the spruce planks. You have to run it again for it to clear the oak planks. I've also reproduced the issue with wool and dirt/coarse dirt.

      Steps to reproduce:

      1. Run /clear
      2. Put spruce planks in your first inventory slot
      3. Run /clear @p planks
      4. The planks are not cleared from you inventory
      5. Place oak planks in your secondary inventory slot
      6. Run /clear @p planks
      7. The spruce planks are cleared from your inventory but the oak is not

            AdamBrady Adam Brady
            Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: