-
Bug
-
Resolution: Duplicate
-
None
-
20w07a
-
None
-
Confirmed
-
(Unassigned)
The /clear command has a parameter that you can use to filter what items the command should clear and how many of the given item there should be cleared
The item filter is ignored when /clear clears items in players' inventory crafting grids.
How to recreate:
Place a command block and put the command /clear @p stone 1 into the command block.
Place a button which activates the command block after some time (eg by using repeaters)
Press the button
Open your inventory and put a stack of stone and a stack of dirt into your crafting grid
Wait for the clear command to run.
See both the dirt blocks all the stone was cleared even though only 1 stone block should have been cleared
- duplicates
-
MC-172272 /clear removes all items from crafting grid regardless of item type
- Resolved