Minecraft – How to put a Stained Glass Block on an Armor Stand’s Head

minecraft-commandsminecraft-java-edition

I've been working on a little armor stand Harry Potter vs Voldemort scene, just for fun, and I was trying to make the part where the two spells meet.

Harry Potter fighting Voldemort

I figured out a way to do it, but I can't seem to get a red or green stained glass on the armor stand's head.

I've tried a few things.

/entitydata @e[type=armor_stand,r=1] {Equipment:[{},{},{},{},{id:stained_glass,Damage:14}]}

/entitydata @e[type=armor_stand,r=1] {Equipment:[{},{},{},{},{id:stained_glass 1 14}]}

/summon armor_stand ~ ~ ~ {Invisible:1,Equipment:[{},{},{},{},{id:stained_glass,Damage:14}]}

All of them with the same outcome: it said it worked, but it didn't do anything. I checked and there was no invisible armor stand summoned, and there definitely wasn't any red stained glass. Can anyone figure out why this wasn't working?

Best Answer

The Equipment list was updated in 1.9 to ArmorItems.

Your list also contains 4 empty brackets and then the item bracket. This is too many. The head slot is the 4th bracket set. This is probably because you were working with a pre 1.9 command to start with.

You are also missing Count to specify quantity.

I also specified data types by following the number value by the proper letter.

These commands have been tested and work properly in 1.12.2:

/entitydata @e[type=armor_stand,r=1] {Invisible:1b,ArmorItems:[{},{},{},{id:"minecraft:stained_glass",Damage:14b,Count:1b}]}

/summon armor_stand ~ ~ ~ {Invisible:1b,ArmorItems:[{},{},{},{id:"minecraft:stained_glass",Damage:14b,Count:1b}]}