-2

I am not good with command blocks and editing commands together. I need a command that Spawns a armor stand inside of a mine cart with an iron helmet.

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"}]}

Thank's for your help if you are able to give any, sorry if this I explained this bad as well.

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.