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.


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"}]