1

/summon Command help ASAP

_HarveyWeinstein •1/20/18 3:18 pm
•
296
•
1/20/2018 6:10 pm
Hi there , i need help with the /summon command
/summon Villager ~ ~1 ~ {Name:generic.maxHealth,Base:10000},{Name:"generic.movementSpeed",Base:0.0f},Health:10000.0f

That is what im using in a commandblock and it says too many top tags, only expected one..
Any idea how to fix??
Posted by
_HarveyWeinstein
Level 1 : New Miner
0

  Have something to say?

Join • Sign in

2

ShelLuser
• 01/20/2018 6:10 pm
He/Him • Level 61 : High Grandmaster Senpai
You have your JSON format all wrong. Every NBT tag needs to be within curly brackets, so: {}, and all in one block. You can't use comma's to group blocks together as you did.

Another problem is the way you tried to apply those modifiers, that's also incorrect. Just specifying Name would be picked up by Minecraft as if you're trying to define a blocks name.

This wiki page should help explain this. As you can see: Attributes is an individual list which contains a Compound to make up for an individual attribute. As such:

/summon minecraft:Villager ~ ~1 ~ {Attributes:[{Name:generic.maxHealth,Base:10000}]}

That would be the right syntax. Note: I don't know from mind if the values are also correct, you can look those up on this page.

Good luck.
1
Thunder_Clap_0
• 01/20/2018 6:07 pm
• Level 1 : New Crafter
Hello,
When it said "too many tags," it's complaining about the missing brackets at the front and back. It needs an opening bracket at the front and a closing bracket at the end. Also, the correct syntax for an attribute tag is:
Attributes:[{Name:generic.maxHealth,Base:10000},{Name:"generic.movementSpeed",Base:0.0f}]

Working command (for 1.12.2):
/summon villager ~ ~1 ~ {Attributes:[{Name:generic.maxHealth,Base:10000},{Name:"generic.movementSpeed",Base:0}],Health:10000.0f}

Keep in mind that for some reason, despite maxHealth, the most health it will have is 1024.

Hope this solves your problem
1

Welcome