mojira.dev
MC-47742

Items aren't being deleting in they're item form with custom NBT data

I'm trying to make a special ability system that allows you to throw down a sword that's glowing and it gives you special effects like healing and heart particles, well, I'm trying to delete this item in it's thrown form and it wont delete!
Here is the command:
/kill @e[type=Item,id=267] {Item:{id:minecraft:iron_sword,tag:{ench:[{id:16s,lvl:1s}]}}}
Put that in a command on a hopper clock and enchant an iron sword with sharpness I and toss it on the ground, and you'll see that it doesn't get deleted. If that happens, remove the NBT data a do it again, and it deletes it...

Comments 6

Kill doesn't support NBT data.

For feature suggestions or changes please see: Minecraft Suggestions on Reddit.

The problem is, the only suggestions that get upvoted by the community are "More color for stones", "More shiny water!!1" and such on. (Also its flooded with posts like this) Only about 20 people will upvote mapmaker stuff...

Well, then how come in this video ----> http://www.youtube.com/watch?v=U_dGZBzKuqg&list=UUvcjcQigVh24gZa6r6MPXOA
the guy used NBT data in a kill command?
BTW EscoreFairplay, thx for the solution!

Ethan Brown

(Unassigned)

Unconfirmed

Minecraft 14w06b

Retrieved