I've looked at a few other questions on here about this, but I still can't get this to work. I've already looked at this: Clear item with custom name?
I'm trying to clear a custom item (just one) from a player's inventory through a command block.
Here's my command:
/clear @p gold_ingot 0 1 {display:{Name:"Stamped Gold Bar",Lore:["One Gold Bar","Stamped on site at Acacia Mint"],,ench:[{id: 34, lvl:1}]}}
Here's my error message:
[00:37:53] Removed 0 of gold_ingot from Jowaaay.
Even if I just do /clear @p gold_ingot
, it will not remove my custom gold ingot, and will still give the same error message. I tried putting regular gold ingots into my inventory just to test that I had the correct syntax, and regular items do seem to cooperate with the /clear command.
I followed the advice given by the user who solved the above question, but I still can't get this to work. Wondering if it has to do with the enchantment on the gold ingot?
I'm running a Bukkit server with a 1.8 Minecraft. I do have Essentials installed, but I don't see how that would affect this.
...Mint"]},ench:[{id: 34, lvl:1}]}
. Although I don't think this is the issue. The error message you are getting is not normal for the clear command. I suspect you are accidentally running Essentials/clean
//clearinventory
command, rather than the vanilla/clear
. That would explain the ill-formatted message, and the removal of 0 items. – MrLemon Sep 17 '15 at 8:10minecraft:clear @p gold_ingot -1 1 {display:{Name:"Stamped Gold Bar",Lore:["One Gold Bar","Stamped on site at Acacia Mint"]},ench:[{id: 34, lvl:1}]}
And now I'm getting this error message:[22:47:20] Could not clear the inventory of Jowaaay, no items to remove
I fixed the formatting, I made the command a vanilla command, and I changed the damage value to -1. So strange! – Joey Puopolo Sep 19 '15 at 3:50