This Minecraft tutorial defines just how to use a game command to clear your inventory via screenshots and also step-by-step instructions.

You are watching: How to clear the chat in minecraft

You have the right to clear items from a player"s inventory making use of the /clear command in Minecraft. Let"s explore exactly how to usage this cwarmth (game command).

Supported Platforms

The /clear command is available in the adhering to versions of Minecraft:

PlatformSupported (Version*)
*
Java Edition (PC/Mac)
Yes (1.4.2)
*
Pocket Edition (PE)
Yes (1.0.5)
*
Xbox 360
No
*
Xbox One
Yes (1.2)
*
PS3
No
*
PS4
Yes (1.14.0)
*
Wii U
No
*
Nintencarry out Switch
Yes (1.5.0)
*
Windows 10 Edition
Yes (1.0.5)
*
Education Edition
Yes (1.0.18)

* The version that it was added or removed, if applicable.NOTE: Pocket Edition (PE), Xbox One, PS4, Nintenperform Switch, and also Windows 10 Edition are currently referred to as Bedrock Edition. We will continue to present them individually for variation background.

Requirements

To run game regulates in Minecraft, you have to revolve cheats on in your people.

Clear Command


JavaPEXboxPSNintendoWin10Edu

Clear Command in Minecraft Java Edition (PC/Mac)

In Minecraft Java Edition (PC/Mac) 1.13, 1.14, 1.15 and 1.16, the syntax to clear items from a player"s inventory is:

/clear In Minecraft Java Edition (PC/Mac) 1.8, 1.9, 1.10, 1.11 and also 1.12, the syntaxes to clear items from a player"s inventory is:

/clear
DefinitionsmaxCount is optional. It is the maximum number of items that will be cleared. If you omit this parameter or use -1, all corresponding items will certainly be cleared.

Clear Command also in Minecraft Pocket Edition (PE)

In Minecraft Pocket Edition, the syntax to clear items from a player"s inventory is:

/clear
DefinitionsmaxCount is optional. It is the maximum variety of items that will certainly be cleared. If you omit this parameter or usage -1, all corresponding items will certainly be cleared.

Clear Command in Minecraft Xbox One Edition

In Minecraft Xbox One Edition, the syntaxation to clear items from a player"s inventory is:

/clear
DefinitionsmaxCount is optional. It is the maximum variety of items that will certainly be cleared. If you omit this parameter or usage -1, all corresponding items will certainly be cleared.

Clear Command in Minecraft PS4 Edition

In Minecraft PS4 Edition, the syntaxes to clear items from a player"s inventory is:

/clear
DefinitionsmaxCount is optional. It is the maximum number of items that will be cleared. If you omit this parameter or use -1, all equivalent items will be cleared.

Clear Command in Minecraft Nintencarry out Switch Edition

In Minecraft Nintendo Switch Edition, the syntaxation to clear items from a player"s inventory is:

/clear
DefinitionsmaxCount is optional. It is the maximum number of items that will be cleared. If you omit this parameter or usage -1, all corresponding items will certainly be cleared.

Clear Command in Minecraft Windows 10 Edition

In Minecraft Windows 10 Edition, the syntaxation to clear items from a player"s inventory is:

/clear
DefinitionsmaxCount is optional. It is the maximum variety of items that will be cleared. If you omit this parameter or use -1, all equivalent items will be cleared.

Clear Command in Minecraft Education Edition

In Minecraft Education Edition, the syntaxes to clear items from a player"s inventory is:

/clear
DefinitionsmaxCount is optional. It is the maximum number of items that will be cleared. If you omit this parameter or use -1, all corresponding items will certainly be cleared.

Examples


JavaPEXboxPSNintendoWin10Edu

Example in Java Edition (PC/Mac) 1.13, 1.14, 1.15 and 1.16

To remove all items from your inventory in Minecraft 1.13, 1.14, 1.15 and 1.16:

/clearTo clear slrfc.org"s inventory:

/clear slrfc.orgTo clear diamond swords from all players" inventory:

/clear
a diamond_swordTo clear 2 diamond swords from all players" inventory:

/clear
a diamond_sword 2To rerelocate all diamond swords that are enchanted with Sharpness (any type of level of this enchantment) from slrfc.org"s inventory:

/clear slrfc.org diamond_swordench:To remove all diamond swords that are enchanted via Sharpness V (just level 5 of this enchantment) from slrfc.org"s inventory:

/clear slrfc.org diamond_swordench:Instances that Check for Items in a Player"s InventoryFinally, you deserve to usage the /clear command also to check if an item is in a player"s inventory. This is done by establishing maxCount to 0 in the /clear command.

To check the variety of TNT that slrfc.org has actually in inventory:

/clear slrfc.org tnt 0To inspect the number of enchanted diamond swords (Sharpness V) each player has actually in their inventory:

/clear
a diamond_swordench: 0

Example in Java Edition (PC/Mac) 1.11 and also 1.12

To rerelocate all items from your inventory in Minecraft 1.11 and also 1.12:

/clearTo clear TNT from all players" inventory:

/clear
a tntTo clear 10 TNT from all players" inventory:

/clear
a tnt 0 10To clear red carpet from all players" inventory:

/clear
a carpet 14To remove all fishing rods that are enchanted via Luck of the Sea (any type of level of this enchantment) from slrfc.org"s inventory:

/clear slrfc.org fishing_rod 0 -1 ench:To rerelocate all fishing rods that are enchanted with Luck of the Sea III (just level 3 of this enchantment) from slrfc.org"s inventory:

/clear slrfc.org fishing_rod 0 -1 ench:Examples that Check for Items in a Player"s InventoryFinally, you deserve to use the /clear command also to check if a things is in a player"s inventory. This is done by establishing maxCount to 0 in the /clear command.

To inspect the variety of TNT that slrfc.org has in inventory:

/clear slrfc.org tnt 0 0To check the number of enchanted fishing rods (Luck of the Sea III) each player has actually in their inventory:

/clear
a fishing_rod 0 0 ench:

Example in Pocket Edition (PE)

To rerelocate all items from your inventory in Minecraft PE:

/clearTo clear slrfc.org"s inventory:

/clear slrfc.orgTo clear iron trapdoors from all players" inventory:

/clear
a iron_trapdoorTo clear 4 iron trapdoors from all players" inventory:

/clear
a iron_trapdoor 0 4To clear cyan wool from the nearemainder player"s inventory:

/clear
p wool 9Instances that Check for Items in a Player"s InventoryFinally, you have the right to use the /clear command to examine if an item is in a player"s inventory. This is done by establishing maxCount to 0 in the /clear command.

To inspect the number of diamond swords that slrfc.org has actually in inventory:

/clear slrfc.org diamond_sword 0 0

Example in Xbox One Edition

To rerelocate all items from your inventory in Minecraft Xbox One Edition:

/clearTo clear TheExcavator"s inventory:

/clear TheExcavatorTo clear tridents from all players" inventory:

/clear
a tridentTo clear 1 trident from all players" inventory:

/clear
a trident 0 1To clear yellow dye from the nearemainder player"s inventory:

/clear
p dye 11Instances that Check for Items in a Player"s InventoryFinally, you can use the /clear command also to examine if an item is in a player"s inventory. This is done by setting maxCount to 0 in the /clear command also.

To check the variety of iron swords that slrfc.org has actually in inventory:

/clear slrfc.org iron_sword 0 0

Example in PS4 Edition

To remove all items from your inventory in Minecraft PS4 Edition:

/clearTo clear slrfc.org"s inventory:

/clear slrfc.orgTo clear shields from all players" inventory:

/clear
a shieldTo clear 1 shield from all players" inventory:

/clear
a shield 0 1To clear red dye from the nearemainder player"s inventory:

/clear
p dye 1Examples that Check for Items in a Player"s InventoryFinally, you can use the /clear command also to examine if a things is in a player"s inventory. This is done by setting maxCount to 0 in the /clear command also.

To inspect the variety of gold apples that slrfc.org has actually in inventory:

/clear slrfc.org golden_apple 0 0

Example in Nintenperform Switch Edition

To rerelocate all items from your inventory in Minecraft Nintenexecute Switch Edition:

/clearTo clear TheEarthMover"s inventory:

/clear TheEarthMoverTo clear golden swords from all players" inventory:

/clear
a golden_swordTo clear 1 golden_sword from all players" inventory:

/clear
a golden_sword 0 1To clear birch planks from the nearest player"s inventory:

/clear
p planks 1 2Examples that Check for Items in a Player"s InventoryFinally, you deserve to usage the /clear command also to check if an item is in a player"s inventory. This is done by establishing maxCount to 0 in the /clear command also.

To inspect the variety of tridents that slrfc.org has actually in inventory:

/clear slrfc.org trident 0 0

Example in Windows 10 Edition

To remove all items from your inventory in Windows 10 Edition:

/clearTo clear Axe2Grind"s inventory:

/clear Axe2GrindTo clear levers from all players" inventory:

/clear
a leverTo clear 3 levers from all players" inventory:

/clear
a lever before 0 3To clear magenta carpet from the nearest player"s inventory:

/clear
p carpet 2Instances that Check for Items in a Player"s InventoryFinally, you have the right to usage the /clear command also to inspect if an item is in a player"s inventory. This is done by establishing maxCount to 0 in the /clear command also.

To check the number of enchanted gold apples that slrfc.org has in inventory:

/clear slrfc.org appleenchanted 0 0

Example in Education Edition

To remove all items from your inventory in Education Edition:

/clearTo clear slrfc.org"s inventory:

/clear slrfc.orgTo clear apples from all players" inventory:

/clear
a appleTo clear 7 apples from all players" inventory:

/clear
a apple 0 7To clear birch wood planks from the nearemainder player"s inventory:

/clear
p planks 2

How to Get in the Command

1. Open the Chat Window

The simplest way to run a command in Minecraft is within the chat home window. The game control to open the chat window relies on the variation of Minecraft:

For Java Edition (PC/Mac), press the T vital to open up the chat home window.For Pocket Edition (PE), tap on the chat button
*
at the peak of the display screen.For Xbox One, push the D-Pad (right) on the controller.For PS4, push the D-Pad (right) on the controller.For Nintenperform Switch, press the best arrow button
*
on the controller.For Windows 10 Edition, push the T crucial to open up the chat home window.For Education Edition, push the T crucial to open the chat window.

2. Type the Command

In this example, we will certainly rerelocate all items from your inventory through the following command:

/clearType the command also in the chat home window. As you are keying, you will check out the command also appear in the lower left corner of the game window. Press the Enter essential to run the command also.

See more: Why Did The United States Encourage Panama’S Declaration Of Independence From Colombia?

Once the cwarm has actually been entered, your inventory will certainly be cleared:

You will certainly see the message "Cleared the inventory of , rerelocating xxx items" show up in the lower left corner of the game window to indicate that the inventory was cleared.