1
/summon Command help ASAP
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??
/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??
2
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.
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.
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):
Keep in mind that for some reason, despite maxHealth, the most health it will have is 1024.
Hope this solves your problem
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
