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

/clear with a specific item and quantity removes the items when the player has less than the specified quantity

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.19.41
    • None
    • Unconfirmed
    • Android

      Steps to reproduce

      1. Give yourself a single block of dirt.
      2. /clear @s dirt 0 10

      Expected result

      The /clear command fails and does not remove any dirt because you do not have 10 dirt available to remove.

      Observed result

      The /clear command succeeds and removes your only dirt.


      Doing "/clear @p [any item to clear] 0 10" will Clear the item to 10, it will remove it, now the problem is that when the item isn't the same as the command, its supposed to not work and not removing it, but no instead its removing the item when its on 9 only or 5 or 6 or 8, here's a clip of it (yes its on a command block)

            MrOwl MrOwl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: