1

I'm trying to destroy dropped Oak Planks, and my command is:

/kill @e[type=item,tag={id:"minecraft:oak_planks"}]

But it doesn't work.

1
  • 2
    If you seriously gave something the tag {id:"minecraft:oak_planks"}, then you need to escape the quotation marks and put the entire name into quotation marks. But you probably want to match NBT instead, in which case you need the nbt argument. Sep 22 '19 at 9:43
7

The [tag=] you use in the selector isn't the same with the NBT tag {tag:{}}, you need to use [nbt={}] instead of [tag=] for it to work.

Here's the fixed version:

/kill @e[type=item,nbt={id:"minecraft:oak_planks"}]

1
  • 1
    Ty so much for taking the time to answer me everybody!
    – tanner
    Sep 22 '19 at 23:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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