Affects Version/s: 20w09a
Fix Version/s: None
Running the /clear command while setting the maximally cleared amount to 0 causes the crafting grid in the adventure mode/survival mode inventory to be cleared, regardless of the item type.
The /clear command should not remove any items that are not of the specified type and also should not remove more than the specified maximum. Therefore, clearing 0 of any type should not affect anything except for the command result.
- Set up an unconditional always active repeating command block with clear @a stone 0 set as the command
- Change your own gamemode to survival
- Attempt to place any item in the crafting grid slots
-> The item will be removed.