Summary:
When running the /clear command on a player to remove all of their items, they're still able to prevent some items from being cleared by putting them into the crafting grid in their inventory.
This bug also existed in Java Edition and was fixed in 20w07a: MC-75328.
Steps to Reproduce:
Place a command block
Type the following command into the command block:
/clear @pPlace a button that activates the command block after some time (e.g. by using repeaters)
Press the button
Open your inventory and put an item into the crafting grid
Wait for the /clear command to run
Observed Results:
The item in the crafting grid is not cleared.
Expected Results:
The item should be cleared.
Video:
Still an issue on 1.21.51
Really need this fixed, it's breaking a lot of stuff