How to use the /clear command correctly?
So the syntax of the command is:
clear [player] [item] [data] [max-count] [dataTag]
So if you wanted to clear your own inventory you would say:
/clear
If you wanted to clear rappatic
's inventory:
/clear rappatic
If you wanted to clear rappatic
's inventory of stone blocks:
/clear rappatic minecraft:stone
If you wanted to clear rappatic
's inventory of blue wool (here for data values)
/clear rappatic minecraft:wool 11
or for all types of wool:
/clear rappatic minecraft:wool -1
To clear rappatic
's inventory of 12 stone blocks:
/clear rappatic minecraft:stone 1 12