/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:
- Open any world
- /give @s wooden_sword
- /give @s wooden_sword 1 20
- /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