Skip to main content
edited tags
Link
MBraedley
  • 16.4k
  • 21
  • 102
  • 150
Source Link
fredley
  • 53.2k
  • 94
  • 296
  • 447

Why is this command deleting all entities?

I'm trying to remove a specific, named, item if it is dropped on the floor. I have the following on my command block:

kill @e[type=Item] {Item:{tag:{display:{Name:"RedFlag"}}}

But it's removing all items, not just the one I want. What am I doing wrong?

I also tried

kill @e[type=Item] {Item:{id:"red_flower",Damage:2}}

But that didn't work either, it's still removing all items, even things that aren't red flowers!