I'm working on a map where it clears normal droppers from your inventory and gives you ones with a tag. But it's detecting the droppers with tags as well.


With testfor like...

/execute @a ~ ~ ~ /testforblock ~ ~-1 ~ minecraft:dropper 1 {Items:[{id:"minecraft:blaze_rod",Slot:1b,Count:1b,Damage:0s}]}

  • The question is asking about items in the player's inventory and manipulation via clear, not physical blocks in the world (in which /clear cannot target). – Skylinerw Jul 25 '16 at 17:20
  • then use /testfor – jepjep40 Jul 25 '16 at 19:14
  • It's not that simple, nor is /testfor generally multiplayer-friendly. /clear itself, which is the main issue, cannot specifically remove items without NBT data. – Skylinerw Jul 25 '16 at 19:23
  • but with slots, because all your items are inside a slot, and every item has id's and if the item is special then it has NBT tags, and if you want to remove 10 redstone then you make a command where you say, I want to remove 10 redstone:ID things.... – jepjep40 Jul 26 '16 at 10:46
  • And that will remove items with NBT data, which is not desired. You can't just tell /clear to remove items without NBT data, which is what the question is asking. – Skylinerw Jul 26 '16 at 10:57

Not the answer you're looking for? Browse other questions tagged or ask your own question.