Can you clear a specific item in Minecraft?

Photo of author
Written By Jonny

Clearing dropped items becomes essential in Minecraft from time to time, especially when the gameplay becomes annoyingly slow.

The Minecraft community has thought of multiple solutions for clearing dropped items from the ground using different commands, tools, or plugins.

Some allow you to clear all the dropped items at once, and some will let you remove them one at a time.

Read on to find out about every possible way for clearing dropped items and learn more about other useful things you can do with them.

One of the most popular and fastest ways to clear items is the kill command. First, type /kill @e[type=item] in the chat and press enter to remove all dropped items in your Minecraft world instantly.

Using Commands in Minecraft: /clear and Custom Item Names! | 1.11.2

Clear Command in Minecraft Education Edition

In Minecraft Education Edition, the syntax to clear items from a players inventory is:

  • player is optional. It is the name of the player (or a target selector) whose inventory you wish to clear. If no player is specified, it will default to the player running the command.
  • itemName is optional. It is the item to clear (See list of Minecraft items). If no item name is specified, then all items in the players inventory will be cleared.
  • data is optional. It is the data value of the item to clear. It identifies the variation of the block if more than one type exists for that Item ID (See list of data values). Use a value of 0 if no data value exists for the item. 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.
  • maxCount is optional. It is the maximum number of items that will be cleared. If you omit this parameter or use -1, all matching items will be cleared.
  • Java
  • PE
  • Xbox
  • PS
  • Nintendo
  • Win10
  • Edu
  • Example in Java Edition (PC/Mac) 13, 14, 15, 16, 17 and 18

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

    To clear DigMinecrafts inventory:

    To clear diamond swords from all players inventory:

    To clear 2 diamond swords from all players inventory:

    To remove all diamond swords that are enchanted with Sharpness (any level of this enchantment) from DigMinecrafts inventory:

    To remove all diamond swords that are enchanted with Sharpness V (only level 5 of this enchantment) from DigMinecrafts inventory:

    Finally, you can use the /clear command to check if an item is in a players inventory. This is done by setting maxCount to 0 in the /clear command.

    To check the number of TNT that DigMinecraft has in inventory:

    To check the number of enchanted diamond swords (Sharpness V) each player has in their inventory:

    Examples[]

  • To clear your entire inventory: clear
  • To clear all items from Alices inventory: clear Alice
  • To clear all wool items from Alices inventory: clear Alice minecraft:wool
  • To clear all orange wool items from the inventory of all players: clear @a minecraft:wool 1‌[Bedrock Edition only] or clear @a minecraft:orange_wool‌[Java Edition only]
  • To clear all golden swords with the “Sharpness I” enchantment from the nearest player
    • clear @p minecraft:golden_sword{Enchantments:[{id:"minecraft:sharpness",lvl:1s}]}‌[Java Edition only]
  • To test if a random player has stone in their inventory: clear @r minecraft:stone -1 0‌[Bedrock Edition only] or clear @r minecraft:stone 0‌[Java Edition only]
  • FAQ

    How do you clear a specific block in Minecraft?

    This command is very similar to /kill or /setblock(air), the usage is “/remove (entity/block) <selector/x y z>“.

    How do you delete specific items in Minecraft bedrock?

    Ways to easily clear inventory in Minecraft

    If players don’t need any items and simply want to remove them from their inventory quickly, they can simply press the drop button (‘Q’ is the default button on PC) while having the mouse cursor on the item to drop on the ground.

    How do you quickly remove items from your inventory in Minecraft?

    You can use the command /clear [targets] [item] [maxCount] , where: targets is optional. It is the name of the player (or a target selector) whose inventory you wish to clear. If no player is specified, it will default to the player running the command.

    What is the command to clear inventory?

    You can use the command /clear [targets] [item] [maxCount] , where: targets is optional. It is the name of the player (or a target selector) whose inventory you wish to clear. If no player is specified, it will default to the player running the command.

     

    Leave a Comment