Mojira Archive
MCPE-164520

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

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)

Works As Intended

MrOwl

2022-11-23, 07:36 PM

2022-11-24, 11:32 AM

2022-11-24, 11:32 AM

0

2

Unconfirmed

1.19.41

-