In 1.8, the trading system of villagers was almost entirely replaced. So from 12w21a (1.3 snapshot) to 1.7.10, many trades were available that are not possible in later versions. There are many possibilities of trades due to both randomized item counts and randomized trade ordering.
Pre-1.8 villagers were only assigned a profession as careers did not exist. By updating these villagers past 1.7.10 to any version before 1.14[test] they will have a random career assigned based on their profession.
As villagers worked quite differently in these versions, their trade mechanics can be somewhat unintuitive and confusing. This section serves as a brief overview for unfamiliar players.
Villagers will attempt to generate a new trade in two ways. The first is upon initial spawning, and the second is when the villager restocks. When the villager restocks, the following occurs:
All currently locked trades will have 2 to 12 maxUses added, restocking them.
Each possible trade has a weighted chance based on the amount of trades the villager has to be added to a list. This weighting causes rarer trades to be more likely with more trades generated and vice versa.
After each possible trade has been iterated through, the game will check if the list is empty. If it is, it will insert a gold buy trade for 8-9 gold ingots for 1 emerald.
A random trade is selected from the list.
The villager's current trade list will be searched for a trade that has the following properties:
The first buy slot items have the same ID.
If the second buy slot is empty, the count of the first buy slot of the new trade is less than the found trade.
If the second buy slot is not empty, the IDs of the second buy slot items match and the count of the second buy slot of the new trade is less than the found trade.
If a matching trade is found, the new trade replaces it. Otherwise, the new trade is added to the end of the trade list.
Whenever the player makes a trade with a villager, the following occurs:
The trade's uses value is increased by one.
If the trade is the last trade in the villager's list, the villager queues a restock.
When the player leaves the trading GUI, if a restock is queued it will occur in 40 ticks. Villagers also do not allow infinite trading anymore as trade locking has been introduced instead.
Possible Trades
These are all of the trades from the five professions. The 1.8 - 1.13 and 1.14 - 24w20a (present) status reveals if the specific trade was possible during that span of villager trades.
Legend
Availability
Meaning
Unavailable
The items of the trade are not obtainable
Quantities Unavailable
The items of the trade are available but only in different counts than the trades available pre-1.8
Certain Quantities
The items of the trade are available and some of the quantities are available but other quantities are not
Available
The trade, including its quantities, are fully obtainable
Other
Special cases, check reference for more information
Professions
Pre 1.8 farmers had significantly different trades compared to later farmers. Also, due to how villagers update, there is a chance of a Pre 1.8 farmer becoming one of four villager types when updating to 1.8; farmer, shepherd, fletcher, or fisherman. This causes almost all trades to be discontinued, since the same trades can belong to four different villager careers. There are also discontinued quantities of items. Also, the trades are not in a fixed order.
↑The only quantity available in 1.14 - Present is 20 wheat for 1 emerald
↑The quantities available 1.8-1.13 are 16-21 wool for 1 emerald. Also, only available on the shepherd career.
↑The only quantity available 1.14-Present is 18 wool for 1 emerald.
↑The quantities available 16w33a-1.13 are 1 emerald for 5-7 apples. Also, only available on the farmer career. (More info needed WIP)
↑Before 12w32a (1.4 snapshot), the count was 5. See Pre-1.4 Trades.
↑Gravel trade added in 12w22a (1.3 snapshot) with the introduction of the second buy slot
↑Before 12w32a (1.4 snapshot), the count was 2-3. See Pre-1.4 Trades.
Pre 1.8 Librarians had slightly different trades compared to later librarians. Also, due to how villagers update, there is a chance of a Pre 1.8 librarian becoming one of two villager types when updating; librarian or cartographer, however to be a cartographer, the villager must be updated to (≥16w39a)(1.11) - 1.13. This causes most trades to be discontinued, since the same trades can belong to two different villager careers. When updating to 1.14 - present, the career is not randomly assigned, instead it is predetermined. Therefore, this librarian will always be a librarian when updating to 1.14 - present. There are also discontinued quantities of items. Also, the trades are not in a fixed order.
Pre 1.8 priests had significantly different trades compared to later clerics. They had what was known as the enchant trade, which would buy a diamond/iron tool/armor for emeralds, and provide the same tool/armor with an enchant. They would also trade different quantities of items, as well as eye of enders. Also, the trades are not in a fixed order.
Pre 1.8 blacksmiths had fairly different trades compared to later blacksmiths. Also, due to how villagers update, there is a chance of a Pre 1.8 blacksmith becoming one of three villager types when updating to 1.8 - 1.13; armorer, weaponsmith, or toolsmith. This causes some trades to be discontinued, since the same trades can belong to two different villager careers. When updating to 1.14 - present trades, the career is not randomly assigned, instead it is predetermined. Therefore, this blacksmith will always be an armorer when updating to 1.14 - present. The villager also trades discontinued quantities of items. Also, the trades are not in a fixed order.
↑The only quantity available during 1.14 - Present is 5 emeralds for 1 iron helmet
↑The only quantity available during 1.14 - Present is 4 emeralds for 1 pair of iron boots
Pre 1.8 butchers had fairly different trades compared to later butchers. Also, due to how villagers update, there is a chance of a Pre 1.8 butcher becoming one of two villager types when updating to 1.8 - 1.13; butcher or leatherworker. This causes almost all trades to be discontinued, since the same trades can belong to two different villager careers. When updating to 1.14 - Present , the career is not randomly assigned, instead it is predetermined. Therefore, this butcher will always be a butcher when updating to 1.14 - present. The villager also trades discontinued quantities of items. Also, the trades are not in a fixed order.
↑ 1.01.11.21.31.4 This trade is only available for the butcher career
↑ The quantity available for 1.14 - Present is 7 raw porkchops for 1 emerald
↑ 3.03.13.2This trade is only available for the leatherworker career
↑The quantity available for 1.14 - Present is 6 emeralds for 1 saddle
↑ 5.05.15.25.3Dyed leather armor is available as a trade during 1.14 - Present. The color will be the combination of 2 random colors (can be the same color).
↑An enchanted leather tunic is available as a trade during 1.8 - 1.13
The enchantment trades on a priest and a trade on the librarian can be used to overstack the items it enchants. This method works from 19w13b (1.14 snapshot) to 1.14.1. The items that can be overstacked by the priest are iron swords, iron axes, iron pickaxes, iron chestplates, diamond swords, diamond axes, diamond pickaxes, and diamond chestplates. The librarian can overstack written books.
Due to a glitch,[3] trades are counted as crafting that item. Because of this, after 17w47a (1.13 snapshot)[test], the villager can be used to get crafting statistics for uncraftable items. The apple, bottle o' enchanting, chainmail helmet, chainmail chestplate, chainmail leggings, chainmail boots, enchanted book, flint, and saddle sell trades all give discontinued statistics.
↑ 1.01.11.21.3Damage values and NBT Data are ignored when trading, meaning, among other things, all colors of Wool, Charcoal or Invalid Data Value Coal in place of Coal, Cooked Salmon in place of Cooked Cod, and enchanted/damaged items are accepted