I've seen examples of how to clear items with specific name or enchants but not both.
This is what I have so far:
/clear @p minecraft:paper 0 1 {tag:{ench:[{id:16s,lvl:1s}]}},{display:{name:"custom name"}} output: data tag parsing failed: trailing data found at: {tag:{ench:[{id:16s,lvl:1s}]}},<--[here]
11 Answer
I’m expanding your command and pointing out all the errors in it:
/clear @p minecraft:paper 0 1 { tag:{ # “tag” should not be used in /clear command ench:[ { id:16s, lvl:1s } ] } }, # this extra “}” closes the final tag before you get to the display section. { display:{ name:"custom name" # “Name” misspelled as “name” } } So in summary:
- Don’t use
tagin the/clearcommand. - Make sure you are balancing your brackets. You used one too many
}s. - The
nametag is misspelled. Correct tag isName.
Fixed command:
/clear @p minecraft:paper 0 1 { ench:[ { id:16s, lvl:1s } ], display:{ Name:"custom name" } }