I'm making a map where armor stands can move towards you, and I need help with a command. Is it possible to remove a certain armor stand with a command? If it is, I need the command.
3 Answers
To remove an armorstand at a specific location:
/kill @e[type=ArmorStand,x=XCOORD,y=YCOORD,z=ZCOORD,r=0,c=1]
Replace XCOORD, YCOORD and ZCOORD with its location.
-
Don't forget to mark @colorfusion's answer as the correct answer (faded tick under the down arrow) Commented Dec 31, 2014 at 5:30
Assuming that this is not a fixed location I would suggest executing on the player:
/execute @a ~ ~ ~ kill @e[type=ArmorStand,r=5]
This will kill every armorstand within 5 blocks of the player
-
I prefer this over @SirBenet 's answer as entering coordiniates can be tedious.– 3roncoCommented Aug 6, 2017 at 6:52
You could name the armorStand and then /kill @e[type=ArmorStand,name=NAME]
(That's with a lowercase 'n')
-
That assumes that he gave each armor stand a distinct name. Commented Dec 27, 2014 at 16:02
-