Mojira Archive
MCM-942

/clear @p item only clears data value 0

Partner Rank: 2

Verification builds: 1.15.0.51
Regression builds: 1.14.30.51

Summary: The /clear command defaults to data value 0 when not specified instead of clearing all data values as it used to. In addition, it treats data value -1 as if it was 0 rather than anything as in other commands. Finally, if you have two different data values of the same item (with one as dv 0) and run a clear, sometimes the dv 1 item will be cleared.
Impact: Breaks a number of maps, many become impossible to complete, some greatly impact the player experience.
Enderman Heists broken irreversably
Frozen, Monsters from the Ice, Monsters of the Deep,
The hit map Infinity Plumber

Repro Steps:

  1. Open any world
  2. /give @s wooden_sword
  3. /give @s wooden_sword 1 20
  4. /clear @s wooden_sword

Observed Results: The clear only clears one of the swords.

Expected Results: The clear should remove both swords.

Screenshots/Videos attached: Repro world attached.

Notes: This was previously reported and fixed in: https://bugs.mojang.com/browse/MCM-757

Fixed

jigar frobozz

2020-02-18, 03:04 AM

2020-05-19, 10:47 PM

2020-04-07, 10:29 PM

1

0

Future Release

-