Basically I made a command block that constantly clears all players of barrier blocks
(/clear @a barrier), and whenever it runs, players who are using their crafting grid in their inventories lose any item that is placed in it.
So in conclusion, the /clear command always clears whatever is in the 2x2 crafting grid in inventories, even with a specific item that it's looking to clear.
Thank you for your report!
We're actually already tracking this issue in MC-172272, so I resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki