How can I just clear an item with a name, not all items of the same type?

How can I just clear an item with a name, not all items of the same type? - Top view of metal pendulum device placed on white table in psychiatrical clinic

To start off, I just want to say this is probably easy but I am tired and just getting the hang of this. But anyway, I am trying to make a command block that when activated will clear your inventory of any iron boots with the custom name JumpBoost. This works, but it also clears your inventory of any other iron boots that aren't named. The command I am using is:

clear @a iron_boots 0 1 {display:{Name:"JumpBoost"}}

I don't really use the /clear command, so I am lost. (I am in 1.7.10 and cannot get 1.8 right now)



Best Answer

Short answer: You can't

Long answer: 1.7 does not support NBT filtering for the clear command.




Pictures about "How can I just clear an item with a name, not all items of the same type?"

How can I just clear an item with a name, not all items of the same type? - Interior of modern kitchen in office
How can I just clear an item with a name, not all items of the same type? - A Person Buying From a Grocery
How can I just clear an item with a name, not all items of the same type? - Blackboard surrounded with cones and pebbles



How do you get rid of named items in Minecraft?

You can clear items from a player's inventory using the /clear command in Minecraft....Definitions
  • targets is optional. ...
  • item is optional. ...
  • data is optional. ...
  • maxCount is optional. ...
  • dataTag is optional.


  • How do you delete specific entities in Minecraft?

    Examples
  • To kill the player executing the command: kill @s.
  • To kill the player Steve: kill Steve.
  • To kill item entities: kill @e[type=item]
  • To kill all entities within 10 blocks: ...
  • To kill all entities except players: kill @e[type=!player]
  • To kill all creepers within 10 blocks:


  • What is the command to clear items on the ground?

    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.

    What is the command to clear 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.



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




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Skylar Kang, Max Vakhtbovych, Julia Avamotive, Brett Sayles