mojira.dev
MC-135152

/kill command cant detect named entities

I summoned Armor stand named Coal (summon minecraft:armor_stand ~ ~ ~ {CustomName:"\"Coal\"", CustomNameVisible:1})

Then i tried to kill it {/kill @e[type=armor_stand, nbt={CustomName:"Coal"}] but i got "No entity was found" message.

I tried it also with pig and it doesnt work too.

 

Attachments

Comments 1

Names are components (MC-123807); you're using a component when creating the entity but not testing for it.

/kill @e[type=armor_stand, nbt={CustomName:"\"Coal\""}]

should work, or @e[name="Coal"] should also work.

Slava

(Unassigned)

Unconfirmed

Minecraft 1.13, Minecraft 18w30b

Retrieved