You will see the message " Cleared the inventory of, removing xxx items" appear in the lower left corner of the game window to indicate that the inventory was cleared. Once the cheat has been entered, your inventory will be cleared: As you are typing, you will see the command appear in the lower left corner of the game window. In this example, we will remove all items from your inventory with the following command: /clear For Education Edition, press the T key to open the chat window.For Windows 10 Edition, press the T key to open the chat window.For Nintendo Switch, press the right arrow button on the controller.For PS4, press the D-Pad (right) on the controller.For Xbox One, press the D-Pad (right) on the controller.For Pocket Edition (PE), tap on the chat button at the top of the screen.For Java Edition (PC/Mac), press the T key to open the chat window.The game control to open the chat window depends on the version of Minecraft: The easiest way to run a command in Minecraft is within the chat window.
To clear birch wood planks from the nearest player's inventory: /clear planks 2 How to Enter the Command 1. To clear 7 apples from all players' inventory: /clear apple 0 7 To clear apples from all players' inventory: /clear apple To clear DigMinecraft's inventory: /clear DigMinecraft To remove all items from your inventory in Education Edition: /clear It is the data tag that you want to set for the item being cleared. If you omit this parameter or use -1, all matching items will be cleared. It is the maximum number of items that will be cleared. If you omit this parameter or use -1 for the data value, the match will be performed on the item only and ignore the data value. Use a value of 0 if no data value exists for the item. It identifies the variation of the block if more than one type exists for that Item ID ( See list of data values).
It is the data value of the item to clear. If no item is specified, then all items in the player's inventory will be cleared. It is the item to clear ( See list of Minecraft items). If no player is specified, it will default to the player running the command. Chests sorting - In a chest window, there are three additional buttons in the upper right.
The shortcut can be changed in the Controls menu in your options. Inventory sorting - Sorts your inventory by using the middle click or by pressing R (by default) at any time.
It is the name of the player (or a target selector) whose inventory you wish to clear. Inventory Tweaks is a small mod that gives the player different ways to organize their inventory and their chest inventories.