Minecraft / Blogs

Custom Villager Shop

  • 6
  • 4
  • comment6
  • playlist_add
  • share
  • more_horiz
avatar Wombatlord
Level 9 : Apprentice Engineer
4
To start off we need to enter
/summon Villager ~ 1 ~ ~ {
This is the first line of the command. It just says to summon one villager.

Then we need to choose the profession.
Farmer

Librarian

Priest

Butcher

Blacksmith

Now choose one. The one you choose will have a different number: (SEE BELOW)

Farmer
/summon Villager ~ 1 ~ ~ {
Profession: 0,

´╗┐Librarian
/summon Villager ~ 1 ~ ~ {
Profession: 1,

Priest
/summon Villager ~ 1 ~ ~ {
Profession: 2,

´╗┐Blacksmith
/summon Villager ~ 1 ~ ~ {
Profession: 3,

Butcher
/summon Villager ~ 1 ~ ~ {
Profession: 4,

Now we need to name it something!

/summon Villager ~ 1 ~ ~ {
Profession: 0,
CustomName: "Villager_Name"
CustomNameVisible:1,
Career: 1,
CareerLevel: 42,
CanPickUpLoot: 0,
PersistanceRequired: 1,

Now to do the hard part,
/summon Villager ~1 ~ ~ {
Profession: 0,
CustomName: "Villager Name",
CustomNameVisible: 1,
Career: 1,
CareerLevel: 42,
CanPickUpLoot: 0,
PersistenceRequired: 1,
Silent: 1,
Invulnerable: 1,
Attributes: [
{
Name: "generic.knockbackResistance",
Base: "1f"
},
{
Name: "generic.movementSpeed",
Base: "0f"
}
],
Offers: {
Recipes: [
{
buy: {
id: "planks",
Count: 1,
Damage: 3
},
maxUses: 9999999,
sell: {
id: "stone",
Count: 1
},
rewardExp: false
}
]
}
}

This part is the deal you want to make with the villager
Offers: {
Recipes: [
{
buy: {
id: "planks",
Count: 1,
Damage: 3
},
maxUses: 9999999,
sell: {
id: "stone",
Count: 1
},
rewardExp: false
}
]
}
}
This on the left is saying you can trade 1 wood
for 1 stone

and it can be used 9999999




Now we're done! :D

This is MY finished product
/summon Villager ~1 ~ ~ {
Profession: 0,
CustomName: "Villager Name",
CustomNameVisible: 1,
Career: 1,
CareerLevel: 42,
CanPickUpLoot: 0,
PersistenceRequired: 1,
Silent: 1,
Invulnerable: 1,
Attributes: [
{
Name: "generic.knockbackResistance",
Base: "1f"
},
{
Name: "generic.movementSpeed",
Base: "0f"
}
],
Offers: {
Recipes: [
{
buy: {
id: "planks",
Count: 1,
Damage: 3
},
maxUses: 9999999,
sell: {
id: "stone",
Count: 1
},
rewardExp: false
}
]
}
}
If you want custom items
Guided
CreditAll the images, https://minecraftcommand.science/
Tags

1 Update Logs

Update #1 Custom Items : 10/07/2016 4:25:37 pmOct 7th, 2016

Added tutorial on trading custom items!

Comments : 6

star Login or register to post a comment.

Show Comments

1 - 6 of 6

A very helpful tutorial for those making custom maps or such. This was a helpful tutorial and I think it deserves more attention :)
  • Wombatlord
  • Level 9
  • Apprentice Engineer
  • October 6, 2016, 10:50 pm
Thankyou :D
  • flashteens
  • Level 53
  • Grandmaster Technomancer
  • October 2, 2016, 6:54 pm
Nice tutorial :)

By the way, I have posted a similar tutorial before about making a custom villager shopkeeper:
http://www.planetminecraft.com/blog/tutorial-spawning-a-custom-shopkeeper-in-vanilla-minecraft/

But, there are some small differences in my command:
  1. To prevent the villager from being killed, I used Invulnerable:1 instead of Attributes:[{Name:"generic.knockbackResistance",Base: "1f"}] inside the command. By doing so, there's no way to kill the villager in Survival/Adventure modes, but you may still do so in Creative mode.
  2. The villager wears a custom player's head, which is determined by the tag value of ArmorItems.
  3. Try the tag buyB, so that the player may have to give the villager 2 different items before getting what the villager sells.
P. S. Have you checked out 1.11 yet? There's a new type of villager with green clothes, where you may specify with Profession:5 in your command! ;)
  • Wombatlord
  • Level 9
  • Apprentice Engineer
  • October 2, 2016, 7:11 pm
Thanks for the tips! ;) xD
  • flashteens
  • Level 53
  • Grandmaster Technomancer
  • October 2, 2016, 7:13 pm
You're welcome :)
Nice :D

1 - 6 of 6

Show Comments

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome