Clearing a named sword

Clearing a named sword - Gray Scale Photography of Knight

I am attempting to use a command block to removed a named diamond sword from players inventory. The sword is PVP_Sword.

clear @p diamond_sword 1 276 {display:{Name:"PVP_Sword"}}

This is the command I thought would work, but it's returning the error that I do not have a diamond sword.

How can I make it remove the named sword instead of the basic one? Keep in mind I don't want to clear the whole inventory.



Best Answer

I don't know that much about that but you could get a name tag and name it diamond sword. I actually prefer naming everything in minecraft so i don't really know how i could help you.




Pictures about "Clearing a named sword"

Clearing a named sword - Man Holding Sword
Clearing a named sword - Black Steel Helmet Near Black and Gray Handle Sword
Clearing a named sword - Medieval Armor



How to clear named items?

Steps to Name a Sword
  • Place the Anvil. Once you have the required materials, add the anvil to your hotbar so that it is an item that you can use. ...
  • Use the Anvil. To use the anvil, you need to stand in front of it. ...
  • Name the Sword. ...
  • Move the Named Sword to Inventory.




  • Removing The Handle / Tsuka of a Japanese Sword - NihontoAntiques.com #1




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

    Images: Mike B, Daisa TJ, Pixabay, Ott Maidre