I am trying to spawn in a boss, It works without the health data tag so how do i add it in correctly?
/summon PigZombie ~ ~ ~ {Rotation:[123f,10f],Equipment:[{id:wooden_sword},{},{},{},{}],CustomName:Drug_Apprentice_Sanchez_Jr,CustomNameVisible:1,{Attributes:[{Name:generic.maxHealth, Base:50.0}]}
/summon PigZombie ~ ~ ~ {Rotation:[123f,10f],Equipment:[{id:wooden_sword},{},{},{},{}],CustomName:Drug_Apprentice_Sanchez_Jr,CustomNameVisible:1,{Attributes:[{Name:generic.maxHealth, Base:50.0}]}
3
Okay that worked thanks
random suggestion since someone's already answered your problem:
http://www.minecraftupdates.com/summon-command
it's a summon command generator I use a ton
this doesn't have every option possible but it has a bunch of them and helps a ton when you're needing to make a custom vanilla mob
http://www.minecraftupdates.com/summon-command
it's a summon command generator I use a ton
this doesn't have every option possible but it has a bunch of them and helps a ton when you're needing to make a custom vanilla mob
You currently have an extra curly bracket before the attributes, causing the unbalanced brackets error. The attributes tag is not it's own compound, so there should be no bracket. The correct command would be
/summon PigZombie ~ ~ ~ {Rotation:[123f,10f],Equipment:[{id:wooden_sword},{},{},{},{}],CustomName:Drug_Apprentice_Sanchez_Jr,CustomNameVisible:1,Attributes:[{Name:generic.maxHealth, Base:50.0}]}
