/clear ignores filter parameters when clearing inventory crafting grid
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
2020-02-14, 05:02 PM
2020-02-15, 08:40 PM
2020-02-15, 08:40 PM
1
0
-