-
Bug
-
Resolution: Fixed
-
20w07a, 20w08a, 20w09a, 20w10a, 20w12a, 20w13b, 20w14a, 20w15a, 20w16a, 20w17a, 20w18a, 20w19a, 20w20a, 20w20b, 20w21a
-
None
-
Confirmed
-
Commands
-
Important
This was caused by the fix for MC-75328.
How to reproduce
- Insert the following command in a repeating command block and power it
clear @p diamond
- Go into survival
- Get any other item in your inventory and move it into the crafting slots
The item gets cleared even though it is not a diamond
Code analysis
The reason for this is that the method net.minecraft.server.commands.ClearInventoryCommand#clearInventory(CommandSourceStack, Collection, Predicate, int) simply calls InventoryMenu#clearCraftingContent() without making use of the ItemPredicateArgument or the maxCount properties.
- is duplicated by
-
MC-172081 /clear ignores filter parameters when clearing inventory crafting grid
- Resolved
-
MC-172149 Player Crafting Grid Deletes Items
- Resolved
-
MC-172202 Putting Items in your 2x2 crafting square makes them disappear
- Resolved
-
MC-172754 the inventory crafting table aren't working
- Resolved
-
MC-172900 Inventory Crafting Not Working
- Resolved
-
MC-172953 Putting Items in your 2x2 crafting square makes them disappear STILL
- Resolved
-
MC-173488 clearing 0 of any item empties the inventory crafting grid
- Resolved
-
MC-173861 items disappearing
- Resolved
-
MC-173927 Inventory 2x2 crafting deletes items with datapack
- Resolved
-
MC-176642 running /clear for a specific item clears ALL items in a player's 2x2 crafting grid
- Resolved
-
MC-179105 Clear command deletes all items from 2x2 crafting grid
- Resolved
-
MC-179364 Minecraft removes items from crafting slots in the survival inventory
- Resolved
-
MC-179964 clearing items with nbt deletes every item in the crafting grid
- Resolved
-
MC-180423 Items dissapear in inventory crafting
- Resolved
-
MC-181936 /clear item removes all items in player crafting
- Resolved
-
MC-182395 /Clear in loop cause delet item from inventory craft
- Resolved
-
MC-182405 When you put colored shulker boxes with items in them in the bottom right corner of the 2x2 crafting grid they disappear
- Resolved
-
MC-183606 /clear command deletes every item in 2x2 crafting-grid
- Resolved
-
MC-183644 /clear deleting unwanted items
- Resolved
-
MC-183898 /clear clears any and all items placed in player crafting grid even when specifying which item to delete
- Resolved
-
MC-185592 Items are deleted when trying to craft
- Resolved
- relates to
-
MC-75328 /clear doesn't clear items in the inventory crafting grid
- Resolved
-
MC-172079 The /clear command output doesn't count items in the inventory crafting grid
- Resolved