Minecraft Wiki
Advertisement
Villager trading preview

The first image of the trading system released by Jeb. The currency item (later updated to the Emerald) can be seen in the inventory.

The Trading system is a gameplay mechanic that allows Players to trade Emeralds for Items (and vice-versa) with NPC Villagers.

Information

As of 12w21a, right-clicking a villager will allow a player to trade with them. Villagers will make offers based on their profession, and will only make trades based on whatever offers they are making. Different offers may be viewed by pressing the left and right buttons next to the currently displayed offer. Most offers involve Emerald as a currency, and some item pertinent to the villager's profession.

A villager will never offer to buy/sell the same item at different prices or quantities (for example, no villager will offer to buy either 16 raw pork or 17 raw pork: there can only be one offer to buy raw pork). However, the quantities and prices may vary from villager to villager, and a villager's own quantities/prices may change when they generate new offers.

All villagers initially have only one offer to make. They can generate new offers when the last offer available (rightmost on their list of offers) has been traded at least once. Note that the trading GUI must be closed before a villager will generate a new offer. When they do, they become surrounded with purple particles for a moment. New offers may involve items a villager was already buying/selling: in this case, the newly generated offer will overwrite the previous one, allowing a villager's prices to change. Although there is likely no maximum limit on the number of offers an individual villager can make, they can only have one offer per each item they can trade. In addition, when a villager already has many offers, there is a high probability that a newly generated offer will be of an item they already offer: thus the old offer will be overwritten, and there will not be any new offer slot added to the villager.

Right clicking on a villager pauses that villager's pathfinding and opens up the trading window.

Charcoal can be sold as coal to blacksmiths and butchers.

All the professions except for the farmer are willing to buy gold, suggesting gold has some value to the richer classes of villager.

Possible Offers

File:Villager Trading Chart.png

A chart with 55 observed offers from each villager type. This is not a comprehensive chart, but it may give an idea of how common or rare some offers are.

The following table lists the minimum and maximum offers that a Villager will make when buying and selling items.

Note: Prices are the result of in-game testing and may be inaccurate. Verification needed.

Farmer

Sells Quantity Price in Emeralds
Apple 5-8 1
Bread 3-4 1
Cooked Chicken 7-8 1
Cookie 8-10 1
Flint and Steel 1 3
Melon Slice 5-8 1
Shears 1 3
Buys Quantity Price in Emeralds
Raw Chicken 14-19 1
Wheat 18-21 1
Wool 14-21 1

Librarian

Sells Quantity Price in Emeralds
Bookshelf 1 3
Compass 1 10-11
Glass 4-5 1
Buys Quantity Price in Emeralds
Book 12-14 1
Paper 22-29 1
Gold Ingot 8-9 1

Priest

Sells Quantity Price in Emeralds
Bottle o' Enchanting 2-4 1
Glowstone 2-3 1
Redstone 2-4 1
Buys Quantity Price in Emeralds
Eye of Ender 2 1
Rotten Flesh 36-63 1
Gold Ingot 8-9 1

Blacksmith

"Price per Unit Ingredient" is the equivalent price per diamond gem or iron ingot that you would be paying if you were buying the diamonds or iron and then crafting the resulting tool or armor yourself. In the case of chainmail armor, these numbers are given for a theoretical comparison only, since chainmail cannot be player-crafted. In the case of tools, sticks used in the crafting of tools are ignored in the calculation.

Sells Quantity Price in Emeralds Price per Unit Ingredient
Diamond Helmet 1 7 1.4
Diamond Chestplate 1 16-18 2 - 2.25
Diamond Leggings 1 11-13 1.57 - 1.86
Diamond Boots 1 7 1.75
Iron Helmet 1 4-5 0.8 - 1
Iron Chestplate 1 10-13 1.25 - 1.625
Iron Leggings 1 8-9 1.14 - 1.29
Iron Boots 1 4-5 1 - 1.25
Chainmail Helmet 1 5 1
Chainmail Chestplate 1 11 1.375
Chainmail Leggings 1 9 1.29
Chainmail Boots 1 3-6 0.75 - 1.5
Diamond Pickaxe 1 9-11 3 - 3.67
Diamond Hoe 1 7 3.5
Diamond Sword 1 12-13 6 - 6.5
Diamond Shovel 1 7 7
Diamond Axe 1 9-11 3 - 3.67
Iron Pickaxe 1 7-8 2.33 - 2.67
Iron Hoe 1 4-5 2 - 2.5
Iron Sword 1 7-10 3.5 - 5
Iron Shovel 1 4-5 4-5
Iron Axe 1 6-7 2 - 2.33
Buys Quantity Price in Emeralds Price per Unit in Emeralds
Diamond 3-5 1 0.2 - 0.33
Iron Ingot 8-9 1 0.111 - 0.125
Coal 16-23 1 0.043 - 0.0625
Gold Ingot 8-9 1 0.111 - 0.125

Butcher

Sells Quantity Price in Emeralds
Leather Cap 1 2-3
Leather Tunic 1 4
Leather Pants 1 2-3
Leather Boots 1 2-3
Steak 6-7 1
Cooked Porkchop 6-7 1
Saddle 1 6-7
Buys Quantity Price in Emeralds
Raw Beef 14-17 1
Raw Porkchop 14-17 1
Coal 16-23 1
Gold Ingot 8-9 1

History

Before the Adventure Update, Notch once answered some questions about an idea he had, NPC Villages, where he revealed some thoughts about them:[1]

  • If you treat the Villagers well (giving them items), they'll give you items back.
  • If you treat the Villagers badly (attacking/killing them), they'll try to do the same to you (feature added with Iron Golems).
  • Raiding chests will anger the owners of the town/chest and they will attack.

On May 21, 2012, Jeb released a screenshot of himself testing the Trading System.[2] The image shows a GUI with buying and selling areas. The bottom area allows the player to sell various items for currency, whereas the top area uses this currency to purchase items. A possible way to buy them would be to put these currencies in the left slot, where the chicken is, and you can scroll through items for the right slot to take the item you choose once you click on it. The player may use the arrow buttons to scroll through a Villager's inventory and select the desired item. Jeb also mentioned that this may be an end to non-renewable resources, supposedly as most can be bought for some price from NPCs. In the image, a red currency item can be seen that was later revealed in snapshot 12w21a as the Emerald.

An ore block can be seen in the background which was later revealed in snapshot 12w21a to be a new Emerald Ore.

With the implementation of the trading system, most or all resources become "renewable" since nonrenewable resources can be traded from Villagers.[3]

Gallery

Bugs

  • Trading with villagers has a bug where submitting emeralds into the villagers inventory by right clicking will not give the option to trade: [1]
  • Loading a world that has a village may make all villagers look like farmers, but will still trade according to their real profession.

Trivia

  • Right-clicking on a villager right after a killing blow is dealt will result in the player trading with a dead villager. The trade goes through without any problems.

References

See also

Advertisement