Mojira Archive
MCM-699

/clear <tool> <durability> clears items with any durability

*Partner Rank:*

2

*Partner Team Reporting:*

Everbloom Studios

*Verification builds:*

1.12.0.11

*Summary:*

The /clear command, when trying to clear a tool with a specific durability will clear tools of the same type, regardless of the data value specified in the command.

This does not occur when the item type to clear doesn't have durability (dye, wool, etc.), only tools (iron_sword, fishing_rod, flint_and_steel, etc.)

*Impact:*

This breaks content that relies on detecting a tool's durability. Particularly in live content, this breaks Fairy School.

*Repro Steps:*

  1. Join a world with cheats enabled
  2. Execute the commands: /give @s iron_sword 1 0 and /give @s iron_sword 1 1 (Go in survival to be able to distinguish the items)
  3. Execute the command: /clear @s iron_sword 1

*Observed Results:*

Both swords are cleared

*Expected Results:*

Only the sword with 1 durability taken from it should be cleared.

*Screenshots/Videos attached: Yes/No*

No

*Regression Builds:*

1.11

Fixed

Energyxxer

2019-06-20, 09:24 PM

2019-07-18, 07:43 PM

2019-07-18, 07:43 PM

1

1

Future Release

-