Minecraft – How to know how many items were cleared with the clear command

minecraft-commandsminecraft-java-edition

When I have a command block and use the clear command, there is a way to know the amount of items were cleared?

For example, the command:

clear theplayer minecraft:stone

How do I know how much stone was cleared?

Best Answer

It should say Cleared the inventory of player, removing x items. You can also do /clear player item 0 for a specific amount.