2

I asked a question earlier "How do I spawn a Zombie with Armor", After about a week of trying to summon a zombie with enchanted armor on my own, I turn to you guys to help me.

I have tried /summon Zombie ~ ~ ~ {Equipment:[{id:"minecraft:leather_chestplate",ench:[{id:34,lvl:1}]},CustomNameVisible:1,CustomName:"Lv.1 Zombie"}

The command block output Error says "Data tag parsing failed: Unbalanced curly brackets {}"

marked as duplicate by Robotnik, TZHX, MrLemon, pinckerman, Unionhawk Jul 24 '15 at 20:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

5

You're missing the closing square bracket (]) for your equipment tag. Try using this instead:

/summon Zombie ~ ~ ~ {Equipment:[{id:"minecraft:leather_chestplate",ench:[{id:34,lvl:1}]}],CustomNameVisible:1,CustomName:"Lv.1 Zombie"}

That just corrects the syntax error. To get the zombie to wear the armour, you need to fill the hand, feet, and leg slots first:

/summon Zombie ~ ~ ~ {Equipment:[{},{},{},{id:"minecraft:leather_chestplate",ench:[{id:34,lvl:1}]}],CustomNameVisible:1,CustomName:"Lv.1 Zombie"}

But that still doesn't solve everything, because the enchant isn't working. This is because the ench tag is part of the tag tag, which is a subtag of item. Use this instead:

/summon Zombie ~ ~ ~ {Equipment:[{},{},{},{id:"minecraft:leather_chestplate",tag:{ench:[{id:34,lvl:1}]}}],CustomNameVisible:1,CustomName:"Lv.1 Zombie"}
  • For some reason he is holding the Leather Tunic instead of wearing it. any input? – Eisler 485 Apr 3 '15 at 2:44
  • I think you need to specify the slot in the equipment tag. The first entry in the equipment tag is for the item being held, the second for the feet, third for legs, and fourth for the chest. Therefore, you need three empty tags within the Equipment tag. – MBraedley Apr 3 '15 at 2:55
  • But I was just correcting your syntax error, I don't know for sure how those tags work. – MBraedley Apr 3 '15 at 2:56
  • Not that this answer isn't helpful, but it needs to be updated with an actual answer to the question "How do I summon a Zombie with enchanted armor?" Otherwerwise, future Googlers will find this to be a dead end. – Rainbolt Apr 3 '15 at 3:03
  • @Rainbolt: Happy? – MBraedley Apr 3 '15 at 12:46
-1

I use this for any complex commands: http://mcstacker.bimbimma.com/ You can use it for all sorts of stuff, Villager trades, custom armour spawners. It even does book generation (not that that's part of the question)

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