2

Like the title says, I want to summon a villager with several tags from the start. This is because I have several villagers with the tag extra, so I can't add tag CorpFred to a villager with the tag extra because then all villagers with that tag will also have CorpFred. So, how would you summon a villager with several tags? (Note this is for version 1.9.4)

/summon Villager ~ ~ ~ {Offers:{},Tags:["extra"],CustomName:"Corporal Frederickson",NoAI:1b}

If you could add the tag CorpFred to this /summon command, I would be highly grateful.

2

Tags is just a list, [], of strings, "". To add multiple elements to a list, separate them with commas:

/summon Villager ~ ~ ~ {Offers:{},Tags:["extra","CorpFred"],CustomName:"Corporal Frederickson",NoAI:1b}
  • oh well rip me. I figured a way around it last night, I added the CorpFred tag to the NPC, then I would do /scoreboard players tag @e[type=Villager,tag=CorpFred] add extra but I will use yours as it is much quicker. Thank you! – KompriZe Dec 4 '16 at 8:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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