0

I need a command that spawns a armor stand with an iron helmet inside of a minecart.

This is how to summon an armor stand inside of a minecart but I don't know how to add the iron helmet.

/summon minecart ~ ~ ~ {Passengers:[{id:"minecraft:armor_stand"}]}

1 Answer 1

3

This can be done by setting the ArmorItems property of the passenger object:

ArmorItems:[{},{},{},{id:iron_helmet,Count:1b}]

As a full command:

/summon minecart ~ ~ ~ {Passengers:[{id:"minecraft:armor_stand", ArmorItems:[{},{},{},{id:iron_helmet,Count:1b}]}]}

I recommend looking at the wiki page Command NBT tags for more information on the Passengers object and other helpful tags.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .