1

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.

4
  • 2
    Possible duplicate of How can I add more than one list-style property to an item?
    – pppery
    Mar 4, 2022 at 17:57
  • 1
    @pppery I presume the same technique is used to solve the problem both here and in the suggested duplicate, but both seem like distinct enough questions for them to remain open.
    – Joachim
    Mar 4, 2022 at 20:41
  • 1
    @Joachim I agree. MSE says that if understanding how these questions are related requires anything more than basic changes, they are not duplicates, merely related.
    – One 2 Many
    Mar 6, 2022 at 0:29
  • I consider that question in its entirety to be "Basic Changes", so can't really engage with ExpertCoder14's arguments other than to say all of my minecraft-commands duplicate close votes assume a certain level of familiarity with command syntax.
    – pppery
    Mar 6, 2022 at 4:37

1 Answer 1

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}
1
  • 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, 2016 at 8:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .