Minecraft / Blogs

Custom Villagers in 1.8

Top Tutorial

  • 51
  • 20
  • comment59
  • playlist_add
  • share
  • more_horiz
avatar rolex1
Level 32 : Artisan Magical Boy
45
Hi FlippFlopp here bringing you which will hopefully be a useful tutorial!

Let's begin!

Firstly let's summon the villager,

/summon Villagerv ~ ~ ~ {Profession:#}

Now you're probably wondering what does Profession mean?
Well Profession means what type of villager you are spawning.

Farmer - Profession:0
Librarian - Profession:1
Priest - Profession:2
Blacksmith - Profession:3
Butcher - Profession:4
Generic - Profession:5

An example /summon Villager ~ ~ ~ {Farmer:0}

Like that!


Now let's name the Villager!

/summon Villager ~ ~ ~ {CustomName:name,CustomNameVisible:1}

Fill in the name you want for your Villager!

So Far so good right?

Now this is the important bit; sorting out Villager trades! You can suit the trades to you're liking I am just using an example.

/summon Villager ~ ~ ~ {Offers:{Recipes:[{maxUses:#,buy:{id:#,Count:#,Damage:#},buyB:{id:#,Count:#,Damage:#},sell:{id:#,Count:#,Damage:#}}]}}

Now you're Villager should be customized.


Here is an extra tip for you! If you would not like any further trades, then use this command.

/summon Villager ~ ~ ~ {Offers:{Recipes:[{maxUses:#,buy:{id:#},sell:{id:#}},{maxUses:1,buy:{id:118,tag:{display:{Name:No More Trades}}},sell:{id:118,tag:{display:{Name:No More Trades}}}}]}}

This will tell the user that there will be no more trades

Now the final part bringing it all together!

All you have to do is:

/summon Villager ~ ~ ~ {CustomName:name,Profession:#,Offers:{Recipes:[{maxUses:#,buy:{id:#,Count:#,Damage:#},sell:{id:#,Count:#,Damage:#}},{maxUses:1,buy:{id:118,tag:{display:{Name:No More Trades}}},sell:{id:118,tag:{display:{Name:No More Trades}}}}]}}


Finally we are all done!

Hope this helped. Diamond? Maybe? Huh? Maybe even a favourite? Huh?

edit: invulnerable villagers

{ActiveEffects:[{Id: x ,Amplifier: x ,Durat­ion: x }]}

(/summon Villager ~ ~1 ~ {Attributes:[{Name:generic.movementSpeed,Base:0.001}]})
It makes it so that they will not movw
Tags

8 Update Logs

Update #8 : 04/27/2015 12:08:46 pmApr 27th, 2015

Thanks for 7k amigos
LOAD MORE LOGS

Comments : 59

star Login or register to post a comment.

Show Comments

1 - 50 of 59

This is the most helpful custom villager guide ever. Period. Thanks a bunch!
  • inactiveguy
  • Level 9
  • Apprentice Network
  • December 21, 2015, 1:01 pm
This is a great guide, but I am having trouble getting attributed items, for example, if I want the villager to sell me boots with the attribute "generic.movementSpeed", I cannot get it to sell it with the attribute on it, only with the normal boots. Could you help me with this? I would appreciate that.

 Here is the command: /summon Villager ~ ~1 ~ {Offers:{Recipes:[{buy:{id:apple,Count:10},sell:{id:emerald,Count:1}},{buy:{id:emerald,Count:1},sell:{id:wool,Damage:11,Count:2}},{buy:{id:emerald,Count:1},buyB:{id:dirt,Count:2},sell:{id:mycelium,Count:2}},{buy:{id:emerald,Count:15},sell:{id:leather_boots,Count:1,tag:AttributeModifiers:{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:1,Operation:1,UUIDLeast:894654,UUIDMost:2872}]}}]}}
Thanks for the guide! It helped me ALOT with my worlds. I'm just wondering... can anyone help me with this command?
/summon Villager ~1 ~ ~ {Invulnerable:1,CustomName:Michael with the Money,Profession:3,Career:2,CareerLevel:6,Offers:{Recipes:[{buy:{id:diamond,Count:5},sell:{id:emerald,Count:10,display:{Name:"Money"}}}]}}
Can anyone tell me why this doesn't work? It says, "Unbalanced curly brakets". Please help!

Ok, I changed that into this:
/summon Villager ~1 ~ ~ {Invulnerable:1,CustomName:Michael with the Money,Profession:3,Career:2,CareerLevel:6,Offers:{Recipes:[{buy:{id:diamond,Count:5},sell:{id:emerald,tag:{display:{Name:"Money"},Count:10}}}]}}
But now, instead of giving me 10 "Money"/emeralds, it gives me a red 0. Please can someone help me? I won't keep doing this!
  • Fuzzybat23
  • Level 1
  • New Miner
  • October 24, 2015, 12:13 pm
How about custom Librarians?  How do you summon a custom Librarian that sells custom enchanted spell books?  Like.. ID:21,LVL:10 which is a Level 10 Looting book.
  • Xelanayr
  • Level 1
  • New Miner
  • August 10, 2015, 1:09 pm
Hey Flipp Flopp.. I've seen several refences to using the code you added to prevent villagers from moving.. (/summon Villager ~ ~1 ~ {Attributes:[{Name:generic.movementSpeed,Base:0.001}]})

Unfortunately, being new to this code stuff could you please give a larger example of where in the normal code you would add it.. For example, my code for spawning a Bank Clerk is..



/summon Villager ~1 ~ ~ {Invulnerable:1,CustomName:Bank Clerk,Profession:3,Career:1, Offers:{Recipes:[{buy:{id:gold_nugget,Count:10},sell:{id:emerald,Count:1}},{buy:{id:emerald,Count:10},sell:{id:diamond,Count:1}},{ buy:{id:diamond,Count:1},sell:{id:emerald,Count:9}},{ buy:{id:emerald,Count:1},sell:{id:gold_nugget,Count:9}}]}}

Could you please show me WHERE in this I should put the code to stop him moving?
  • inactiveguy
  • Level 9
  • Apprentice Network
  • December 21, 2015, 1:03 pm
the attribute datatags don't work that way, the 'generic.movementSpeed' is for items only, so you would need to do a different datatag for entities. Sadly I am not sure what that command is
I Believe That The Command that Wont Let The Villager Move is /summon Villager ~ ~ ~ {NoAI:1}
But Idk how to change proffession
-DemonHunter23
  • Kickrad
  • Level 7
  • Apprentice Taco
  • March 1, 2015, 5:32 pm
Cooool!
This would be useful in my parkour map c:
nope
Hey! I liked your post, and I modified your command code slightly. I was wondering, could you help me make it so the villager cannot move (remove its AI) and so that it could give a custom potion? Here is my code: /summon Villager ~ ~1 ~ {Profession:1,CustomName:"Leonardo",Offers:{Recipes:[{buy:{id:2,Count:1b,Damage:0s},sell:{maxUses:1,id:1,Count:1b,Damage:0s,tag:{display:{Name:"Lard"}}}}]}}
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • February 28, 2015, 10:30 pm
(/summon Villager ~ ~1 ~ {Attributes:[{Name:generic.movementSpeed,Base:0.001}]})
It makes it so that they will not movw
Can u make a mod anyone so you can spawn them in next to a chest with all the trades in there and when u summon the custom villager it will have all your trades? PLZZZ I NEED IT SOOO BADLY!!!!!!!
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • February 21, 2015, 11:07 pm
Sorry modding isn't my thing. But that is a great idea.
  • Xandawesome
  • Level 6
  • Apprentice Explorer
  • February 10, 2015, 3:37 pm
Can you make a villager so that if you give it a diamond it gives you 5 XP in return?
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • February 21, 2015, 11:08 pm
You can just give them an EXP bottle
  • Xandawesome
  • Level 6
  • Apprentice Explorer
  • February 22, 2015, 5:33 am
I was making a joke, as when someone gives you a diamond on PMC, you recieve 5 XP
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • February 28, 2015, 10:26 pm
Oh gosh. Sorry :D
  • Xandawesome
  • Level 6
  • Apprentice Explorer
  • March 2, 2015, 7:11 am
It's ok, but seriously, now I'm curious. Can you make it so that when you give a villager something you get a SET amount of XP in return? Because XP Bottles give you random amounts of XP
  • EnderEyeINC
  • Level 1
  • New Network
  • February 6, 2015, 3:29 am
thanks alot
  • EnderEyeINC
  • Level 1
  • New Network
  • February 6, 2015, 3:29 am
good
That is the coolest! Gonna go try this now actually XD
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • January 31, 2015, 11:27 pm
:)
  • Xandawesome
  • Level 6
  • Apprentice Explorer
  • January 31, 2015, 3:52 pm
Here's 1 dirt villager, now wheres my 64 diamond blocks?
XD exactly
  • Xandawesome
  • Level 6
  • Apprentice Explorer
  • February 10, 2015, 3:36 pm
 Day 3...

He still didn't give me his diamond blocks, and I'm starting to wonder if he's cheating me out of my dirt. He hasn't done anything suspicious, just continued "Hmm"ing and standing there. What's gonna happen?
  • Marthellio
  • Level 31
  • Artisan Architect
  • January 20, 2015, 7:44 pm
Please add invulnaerable villagers into that, so I can use for my server ^_^
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • January 21, 2015, 5:59 am
{ActiveEffects:[{Id: x ,Amplifier: x ,Durat­ion: x }]}
  • xin8
  • Level 24
  • Expert Architect
  • December 8, 2014, 1:20 pm
Hey, I don't know why, but this command doesn't work... It said that I had 'unbalanced square brakets'...
Can you tell me what I did wrong? Thanks!

/summon Villager ~1 ~ ~ {silent:1,Invulnerable:1,CustomName:Undead Merchant,Profession:2,Career:1,CareerLevel:4,Offers:{Recipes:[ {buy:{id:emerald,tag:{display:{Name:"Soul Token"}},Count:5},sell:{id:glowstone_dust,tag:{display:{Name:"Repair Powder"}},Count:1}}, {buy:{id:emerald,tag:{display:{Name:"Soul Token"}},Count:1},sell:{id:fire_charge,tag:{display:{Name:"Firebomb"}},Count:2}}, {buy:{id:emerald,tag:{display:{Name:"Soul Token"}},Count:10},sell:{id:tripwire_hook,tag:{display:{Lore:"Opens residences in Undead Burg."],Name:"Residence Key"}},Count:1}}, {buy:{id:emerald,tag:{display:{Name:"Soul Token"}},Count:10},sell:{id:chest,tag:{display:{Name:"Bottomless Box",CanPlaceOn:[minecraft:obsidian],Lore:["Box allowing inventory management at bonfire."]}},Count:2}}, {buy:{id:emerald,tag:{display:{Name:"Soul Token"}},Count:30}, sell:{id:anvil,tag:{display:{Name:"Repairbox",Lore:["Tool for repairing weapons/armor at bonfire"]}}]}}
  • Jumpshift
  • Level 1
  • New Miner
  • January 8, 2015, 6:01 pm
You missed the opening brackets for one of the lore slots:



...l:{id:tripwire_hook,tag:{display:{Lore:  [  "Opens residences in Undead Burg."],Name:...

when it mentions unbalanced, it just means you missed either an opening or closing bracket of some kind.

Best way I've found is to copy out the command and sort through it using a word processor where you can use the enter key to space things out better, then re-condense it back to original code and copying it back in.
  • xin8
  • Level 24
  • Expert Architect
  • January 11, 2015, 6:13 am
Thanks!
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • December 8, 2014, 10:18 pm
What proportion of that is in a command block?
  • xin8
  • Level 24
  • Expert Architect
  • December 9, 2014, 10:27 am
If by "proportion" you meant "portion", then that whole block of text that I entered in there is in the command block. 

:)
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • December 2, 2014, 9:43 pm
If you are doing creeper you need to add the blast radius
  • KrissieFox1
  • Level 9
  • Apprentice Miner
  • November 28, 2014, 7:04 pm
What number range do I use for the damage values? I am trying to make a villager trade a "key" (lever) for gold horse armor on an adventure map I am making.
  • Gartonia
  • Level 15
  • Journeyman Scribe
  • September 17, 2014, 12:11 pm
Nice work! Just one question, is there a way to give the Villager multiple trades and then make it so that there are no more custom trades? Also, does the maxUses function prevent any more trades after a certain number?
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • September 17, 2014, 11:12 pm
Thanks and you can make it so that it does not have any more trades?
  • Gartonia
  • Level 15
  • Journeyman Scribe
  • September 18, 2014, 6:05 am
Right, but can I make it so that I have more than one custom trade?
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • September 18, 2014, 6:33 am
Yes just duplicate the trade summon command
  • Gartonia
  • Level 15
  • Journeyman Scribe
  • September 18, 2014, 12:45 pm
Awesome! Thanks, I'm such a newb.
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • September 18, 2014, 10:29 pm
Haha np :)
  • CommanderEP
  • Level 1
  • New Explorer
  • September 14, 2014, 3:20 pm
cool
Nice tutorial. Here's a diamond for youe accomplishment my friend. :)
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • September 14, 2014, 11:00 pm
Thanks :)
  • aipoduhfoaifh
  • Level 12
  • Journeyman Button Pusher
  • September 13, 2014, 11:22 am
1 dirt for 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 diamond blocks. 

gg
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • September 13, 2014, 4:49 am
Hey guys thanks for all the support, I have released a new tutorial please check it out!
  • theVoid1313
  • Level 72
  • Legendary Wizard
  • September 13, 2014, 3:35 am
I find that the "Generic" villager (profession:5)  seems to no longer be obtainable, idk if bug or Mojang stupidity.
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • September 13, 2014, 4:26 am
Hmm... It seemed fine for me maybe it was a bug possibly. thanks for the feedback I will investigate this
It has been officially removed from the game, they were all replaced with the farmers.
  • 104maciej
  • Level 10
  • Journeyman Warrior
  • September 12, 2014, 7:52 pm
gives wooden pickaxe, gets prot IV diamond chestplate
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • September 13, 2014, 2:51 am
XD
  • Myraaa
  • Level 61
  • High Grandmaster Sweetheart
  • September 12, 2014, 5:33 pm
Very helpful!! Now I can program villagers that offer me diamond armor in exchange for a couple pieces of dirt :D
Yes. Or make them trade 10 Ender Eragon Eggs for a dirt
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • September 13, 2014, 2:52 am
Heheh :)
  • Agent40
  • Level 22
  • Expert Cake
  • September 12, 2014, 3:45 pm
this is a very nice blog here have a diamond!!!
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • September 13, 2014, 4:57 am
Thanks
  • LittleSwift8
  • Level 22
  • Expert Cake
  • September 12, 2014, 12:36 pm
Nice
  • rolex1
  • Level 32
  • Artisan Magical Boy
  • September 12, 2014, 12:49 pm
Thanks hope it helped
  • LittleSwift8
  • Level 22
  • Expert Cake
  • September 12, 2014, 12:52 pm
Yep!

1 - 50 of 59

Show Comments

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome