How do I spawn a skeleton with enchanted leather armor riding a creeper? [duplicate]

I wanna spawn a skeleton with full leather with all MAX blast protection riding a creeper. And so the command I came out with is this:

/summon Skeleton 16 53 -21 {Equipment:[{},{id:leather_boots,tag:{ench:[{id:3,lvl:4}]}},{id:leather_leggings,tag:{ench:[{id:3,lvl:4}]}},{id:leather_chestplate,tag:{ench:[{id:3,lvl:4}]}},{id:leather_helmet,tag:{ench:[{id:3,lvl:4}]}}]},Riding:{id:Creeper}} 

But it doesn't work. It does say:

[11:56:34] Data tag parsing failed: Unbalanced square brackets []: {Equipment:[{},{id:leather_boots,tag:{ench:[{id:3,lvl:4}]}},{id:leather_leggings,tag:{ench:[{id:3,lvl:4}]}},{id:leather_chestplate,tag:{ench:[{id:3,lvl:4}]}},{id:leather_helmet,tag:{ench:[{id:3,lvl:4}]}]},Riding:{id:Creeper} 
0

1 Answer

You messed up with balancing []s.

/summon Skeleton 16 53 -21 {Equipment:[{},{id:leather_boots,tag:{ench:[{id:3,lvl:32767}]}},{id:leather_leggings,tag:{ench:[{id:3,lvl:32767}]}},{id:leather_chestplate,tag:{ench:[{id:3,lvl:32767}]}},{id:leather_helmet,tag:{ench:[{id:3,lvl:32767}]}}]} 

Why did i use 32767 instead of 4? Because the max level enchant is 32767. The lvl tag is a short which in java is 2^(16-1) - 1 or 32767. The max level avalibe in survival minecraft is 4, but in game is 32767.

3

You Might Also Like