Java Edition.png

Java Edition:Pre-1.4 Trades

From Minecraft Discontinued Features Wiki
Jump to navigation Jump to search
Pre-1.4 Arrow Trade.PNG

Pre-1.4 Trades refer to various discontinued elements of villager trades that were obtainable through the pre-1.4 trading system. 12w32a (the first 1.4 snapshot) introduced a new trade locking and restocking system, along with tweaking 4 trades for balancing reasons. These changes led to some quantities of trades being discontinued and the ability to obtain an invalid uses value by leveraging the old trade system. These trades were available from the introduction of villager trading in 12w21a (a 1.3 snapshot) to 1.3.2 (except the gravel trade and priest enchant trades, which were added with the second buy slot in 12w22a). Besides the 4 changed trades, the trades during this range were identical to pre-1.8 villagers. Two of the changed trades were on the farmer profession, and the other two were on the librarian profession.

Mechanics

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's last trade is traded. When the villager attempts to generate a new trade, the following occurs:

  1. Each possible trade has a fixed chance to be added to a list.
  2. 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.
  3. A random trade is selected from the list.
  4. 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.
  5. 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:

  1. The trade's uses value is increased by one.
  2. If the trade is the last trade in the villager's list, the villager queues a trade generation.
  3. Otherwise, if the villager has more than one trade and if the trade has been traded more than 3-12 times (this value is randomized each time the trade is used), the "to remove" trade is set to this trade.

When the player leaves the trading GUI, if the "to remove" trade is set, that trade will be removed from the villager. If a trade generation is queued it will occur in 60 ticks. However, as long as the GUI is kept open, the player is free to use a trade as many times as they would like.

Possible Trades

These are all of the trades from the five professions. The 1.4 - 1.7, 1.8 - 1.13, and 1.14 - 24w20a (present) status reveals if the specific trade was available as well 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.4.
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 the reference for more information.

Professions

When updating farmers to 1.8 and beyond, they have a random chance of being assigned to either a farmer, fisherman, fletcher, or shepherd. When updated directly from pre-1.8 to 1.14, they will always be farmers.

Buy 1 Item Buy 1 Count Buy 2 Item Buy 2 Count Sell Item Sell Count Chance 1.4 - 1.7 Status 1.8 - 1.13 Status 1.14 - 24w20a (present) Status
Gold Ingot 2.png Gold Ingot 8-9 Emerald 1.png Emerald 1 0.00441% Available Unavailable Unavailable
Wheat 1.png Wheat 18-21 Emerald 1.png Emerald 1 16.027% Available Available[Farmer 1] Certain Quantities[Farmer 2]
White Wool 1.png Wool[Farmer 3] 14-21 Emerald 1.png Emerald 1 8.216% Available Certain Quantities[Farmer 4] Certain Quantities[Farmer 5]
Raw Chicken 2.png Raw Chicken 14-17 Emerald 1.png Emerald 1 8.216% Available Unavailable Unavailable
Cooked Fish.png Cooked Cod[Farmer 3] 9-12 Emerald 1.png Emerald 1 6.462% Available Unavailable Unavailable
Emerald 1.png Emerald 1 Bread 2.png Bread 3-4 16.027% Available Available[Farmer 1] Quantities Unavailable
Emerald 1.png Emerald 1 Melon Slice 1.png Melon 5-8 4.769% Available Unavailable Unavailable
Emerald 1.png Emerald 1 Apple 2.png Apple 5-8 4.769% Available Other[Farmer 6] Quantities Unavailable
Emerald 1.png Emerald 1 Cookie 1.png Cookie 8-10 4.769% Available Available[Farmer 1] Quantities Unavailable
Emerald 1.png Emerald 3 Shears 1.png Shears 1 4.769% Available Available[Farmer 1] Quantities Unavailable
Emerald 1.png Emerald 3 Flint and Steel 3.png Flint and Steel 1 4.769% Available Unavailable Unavailable
Emerald 1.png Emerald 1 Cooked Chicken 2.png Cooked Chicken 7-8 4.769% Available Unavailable Unavailable
Emerald 1.png Emerald 1 Arrow 1.png Arrow 5 8.216% Quantities Unavailable Quantities Unavailable Quantities Unavailable
Gravel 4.png Gravel[Farmer 7] 10 Emerald 1.png Emerald 1 Flint 2.png Flint 2-3 8.216% Quantities Unavailable Quantities Unavailable Quantities Unavailable
  1. 1.0 1.1 1.2 1.3 Only available for the farmer career.
  2. The only quantity available from 1.14 to 24w20a (present) is 20 wheat for 1 emerald.
  3. 3.0 3.1 Damage values are ignored when trading in versions before 14w02a (a 1.8 snapshot), meaning all colors of wool and cooked salmon are accepted.
  4. The quantities available from 1.8 to 1.13 are 16-21 wool for 1 emerald, only available on the shepherd career.
  5. The only quantity available from 1.14 to 24w20a (present) is 18 wool for 1 emerald, only available on the shepherd career.
  6. Unavailable from 1.8 to 16w32b (a 1.11 snapshot). The quantities available from 16w33a to 1.13 are 1 emerald for 5-7 apples, only available on the farmer career.
  7. The gravel to flint trade was added in 12w22a (a 1.3 snapshot) with the introduction of the second buy slot.

When updating librarians to 1.8 and beyond, they normally can only become librarians, as no variant careers originally existed. However, when cartographers were added in 16w39a (a 1.11 snapshot), pre-1.8 villagers gained the ability to also become cartographers, although they must not be loaded at any point from 14w02a to 16w39a. When updated directly from pre-1.8 to 1.14, they will always be librarians.

Buy 1 Item Buy 1 Count Buy 2 Item Buy 2 Count Sell Item Sell Count Chance 1.4 - 1.7 Status 1.8 - 1.13 Status 1.14 - 24w20a (present) Status
Gold Ingot 2.png Gold Ingot 8-9 Emerald 1.png Emerald 1 0.286% Available Unavailable Unavailable
Paper 1.png Paper 19-29 Emerald 1.png Emerald 1 25.294% Certain Quantities[Librarian 1] Certain Quantities[Librarian 2] Certain Quantities[Librarian 3]
Book 1.png Book 12-14 Emerald 1.png Emerald 1 25.294% Certain Quantities[Librarian 4] Quantities Unavailable Quantities Unavailable
Written Book Icon.gif Written Book 1 Emerald 1.png Emerald 1 8.074% Available Quantities Unavailable Unavailable
Emerald 1.png Emerald 3 Bookshelf 2.png Bookshelf 1 25.294% Available Available[Librarian 5] Quantities Unavailable
Emerald 1.png Emerald 1 Glass 3.png Glass 4-5 5.251% Available Available[Librarian 5] Certain Quantities[Librarian 6]
Emerald 1.png Emerald 10-11 Compass 1.png Compass 1 5.251% Available Available[Librarian 5] Quantities Unavailable
Emerald 1.png Emerald 10-11 Clock 2.png Clock 1 5.251% Available Available[Librarian 5] Quantities Unavailable
  1. The quantities available from 1.4 to 1.7 are 24-35 paper for 1 emerald.
  2. The quantities available from 1.8 to 1.13 are 24-36 paper for 1 emerald.
  3. The only quantity available from 1.14 to 24w20a (present) is 24 paper for 1 emerald.
  4. The quantities available from 1.4 to 1.7 are 11-12 books for 1 emerald.
  5. 5.0 5.1 5.2 5.3 Only available for the librarian career.
  6. The only quantity available in 1.14 to 24w20a (present) is 1 emerald for 4 glass, only available on the librarian career.

When updating priests to 1.8 and beyond, they will always be priests, later renamed to clerics.

Buy 1 Item Buy 1 Count Buy 2 Item Buy 2 Count Sell Item Sell Count Chance 1.4 - 1.7 Status 1.8 - 1.13 Status 1.14 - 24w20a (present) Status
Gold Ingot 2.png Gold Ingot 8-9 Emerald 1.png Emerald 1 10.124% Available Available Quantities Unavailable
Emerald 1.png Emerald[Priest 1] 7-10 Eye of Ender 1.png Eye of Ender 1 13.820% Available Unavailable Unavailable
Emerald 1.png Emerald 1 Bottle o Enchanting Icon.gif Bottle o' Enchanting 2-4 8.849% Available Quantities Unavailable Quantities Unavailable
Emerald 1.png Emerald 1 Redstone 1.png Redstone 2-4 19.269% Available Available Certain Quantities[Priest 2]
Emerald 1.png Emerald 1 Glowstone 2.png Glowstone 2-3 13.820% Available Available Quantities Unavailable
Iron Sword 1.png Iron Sword[Priest 3] 1 Emerald 1.png Emerald 2-4 Enchanted Iron Sword Icon.gif Enchanted Iron Sword[Priest 4] 1 4.264% Available Unavailable Unavailable
Iron Pickaxe 1.png Iron Pickaxe[Priest 3] 1 Emerald 1.png Emerald 2-4 Enchanted Iron Pickaxe Icon.gif Enchanted Iron Pickaxe[Priest 4] 1 4.264% Available Unavailable Unavailable
Iron Axe 4.png Iron Axe[Priest 3] 1 Emerald 1.png Emerald 2-4 Enchanted Iron Axe Icon.gif Enchanted Iron Axe[Priest 4] 1 4.264% Available Unavailable Unavailable
Iron Chestplate 1.png Iron Chestplate[Priest 3] 1 Emerald 1.png Emerald 2-4 Enchanted Iron Chestplate Icon.gif Enchanted Iron Chestplate[Priest 4] 1 4.264% Available Unavailable Unavailable
Diamond Sword 1.png Diamond Sword[Priest 3] 1 Emerald 1.png Emerald 2-4 Enchanted Diamond Sword Icon.gif Enchanted Diamond Sword[Priest 4] 1 4.264% Available Unavailable Unavailable
Diamond Pickaxe 1.png Diamond Pickaxe[Priest 3] 1 Emerald 1.png Emerald 2-4 Enchanted Diamond Pickaxe Icon.gif Enchanted Diamond Pickaxe[Priest 4] 1 4.264% Available Unavailable Unavailable
Diamond Axe 1.png Diamond Axe[Priest 3] 1 Emerald 1.png Emerald 2-4 Enchanted Diamond Axe Icon.gif Enchanted Diamond Axe[Priest 4] 1 4.264% Available Unavailable Unavailable
Diamond Chestplate 1.png Diamond Chestplate[Priest 3] 1 Emerald 1.png Emerald 2-4 Enchanted Diamond Chestplate Icon.gif Enchanted Diamond Chestplate[Priest 4] 1 4.264% Available Unavailable Unavailable
  1. This trade was added in 12w22a (a 1.3 snapshot). 12w21a to 12w21b had the Eye of Ender Buy Trade instead.
  2. The only quantity available in 1.14 to 24w20a (present) is 1 emerald for 2 redstone.
  3. 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 Enchantment trades were added in 12w22a (a 1.3 snapshot) with the introduction of the second buy slot. Damage values and NBT data are ignored when trading in versions before 14w02a (a 1.8 snapshot), meaning damaged and enchanted items are accepted.
  4. 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 Enchanted with a random enchanting table level 5-19.

When updating blacksmiths to 1.8 and beyond, they have a random chance of being assigned to either an armorer, toolsmith, or weaponsmith. When updated directly from pre-1.8 to 1.14, they will always be armorers.

Buy 1 Item Buy 1 Count Buy 2 Item Buy 2 Count Sell Item Sell Count Chance 1.4 - 1.7 Status 1.8 - 1.13 Status 1.14 - 24w20a (present) Status
Gold Ingot 2.png Gold Ingot 8-9 Emerald 1.png Emerald 1 9.643% Available Unavailable Unavailable
Coal.png Coal[Blacksmith 1] 16-23 Emerald 1.png Emerald 1 6.676% Available Available Quantities Unavailable
Iron Ingot 2.png Iron Ingot 8-9 Emerald 1.png Emerald 1 6.676 Available Available Quantities Unavailable
Diamond 2.png Diamond 4-5 Emerald 1.png Emerald 1 6.676 Available Certain Quantities[Blacksmith 2] Quantities Unavailable
Emerald 1.png Emerald 7-10 Iron Sword 1.png Iron Sword 1 6.676 Available Unavailable Unavailable
Emerald 1.png Emerald 6-7 Iron Axe 4.png Iron Axe 1 3.896% Available Available[Blacksmith 3] Quantities Unavailable
Emerald 1.png Emerald 7-8 Iron Pickaxe 1.png Iron Pickaxe 1 6.676% Available Unavailable Unavailable
Emerald 1.png Emerald 4-5 Iron Shovel 2.png Iron Shovel 1 2.563% Available Unavailable Unavailable
Emerald 1.png Emerald 4-5 Iron Hoe 1.png Iron Hoe 1 2.563% Available Unavailable Unavailable
Emerald 1.png Emerald 12-13 Diamond Sword 1.png Diamond Sword 1 6.676 Available Unavailable Unavailable
Emerald 1.png Emerald 9-11 Diamond Axe 1.png Diamond Axe 1 3.896% Available Unavailable Unavailable
Emerald 1.png Emerald 10-11 Diamond Pickaxe 1.png Diamond Pickaxe 1 6.676% Available Unavailable Unavailable
Emerald 1.png Emerald 7 Diamond Shovel 1.png Diamond Shovel 1 2.563% Available Unavailable Unavailable
Emerald 1.png Emerald 7 Diamond Hoe 1.png Diamond Hoe 1 2.563% Available Unavailable Other[Blacksmith 4]
Emerald 1.png Emerald 4-5 Iron Helmet 1.png Iron Helmet 1 2.563% Available Available[Blacksmith 5] Certain Quantities[Blacksmith 5][Blacksmith 6]
Emerald 1.png Emerald 10-13 Iron Chestplate 1.png Iron Chestplate 1 2.563% Available Available[Blacksmith 5] Quantities Unavailable
Emerald 1.png Emerald 8-9 Iron Leggings 1.png Iron Leggings 1 2.563% Available Unavailable Quantities Unavailable
Emerald 1.png Emerald 4-5 Iron Boots 1.png Iron Boots 1 2.563% Available Unavailable Certain Quantities[Blacksmith 5][Blacksmith 7]
Emerald 1.png Emerald 7 Diamond Helmet 1.png Diamond Helmet 1 2.563% Available Unavailable Unavailable
Emerald 1.png Emerald 16-18 Diamond Chestplate 1.png Diamond Chestplate 1 2.563% Available Unavailable Unavailable
Emerald 1.png Emerald 11-13 Diamond Leggings 1.png Diamond Leggings 1 2.563% Available Unavailable Unavailable
Emerald 1.png Emerald 7 Diamond Boots 1.png Diamond Boots 1 2.563% Available Unavailable Unavailable
Emerald 1.png Emerald 5-6 Chainmail Helmet 1.png Chainmail Helmet 1 1.265% Available Available[Blacksmith 5] Quantities Unavailable
Emerald 1.png Emerald 11-14 Chainmail Chestplate 1.png Chainmail Chestplate 1 1.265% Available Available[Blacksmith 5] Quantities Unavailable
Emerald 1.png Emerald 9-10 Chainmail Leggings 1.png Chainmail Leggings 1 1.265% Available Available[Blacksmith 5] Quantities Unavailable
Emerald 1.png Emerald 5-6 Chainmail Boots 1.png Chainmail Boots 1 1.265% Available Available[Blacksmith 5] Quantities Unavailable
  1. Damage values are ignored when trading in versions before 14w02a (a 1.8 snapshot), meaning charcoal and Invalid Data Value Coal are accepted.
  2. The quantities available from 1.8 to 1.13 are 3-4 diamonds for 1 emerald.
  3. Only available for the weaponsmith career.
  4. Diamond hoes were enchanted from 19w11a to 1.14. 1.14.1 Pre-Release 1 removed the enchantments, but the quantities are still non-overlapping (quantities unavailable). Only available for the toolsmith career.
  5. 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 Only available for the armorer career.
  6. The only quantity available from 1.14 to 24w20a (present) is 5 emeralds for 1 iron helmet.
  7. The only quantity available from 1.14 to 24w20a (present) is 4 emeralds for 1 pair of iron boots.

When updating butchers to 1.8 and beyond, they have a random chance of being assigned to either a butcher or a leatherworker. When updated directly from pre-1.8 to 1.14, they will always be butchers.

Buy 1 Item Buy 1 Count Buy 2 Item Buy 2 Count Sell Item Sell Count Chance 1.4 - 1.7 Status 1.8 - 1.13 Status 1.14 - 24w20a (present) Status
Gold Ingot 2.png Gold Ingot 8-9 Emerald 1.png Emerald 1 0.794% Available Unavailable Unavailable
Coal.png Coal[Butcher 1] 16-23 Emerald 1.png Emerald 1 21.054% Available Unavailable Unavailable
Raw Porkchop 2.png Raw Porkchop 14-17 Emerald 1.png Emerald 1 14.009% Available Available[Butcher 2] Quantities Unavailable
Raw Beef 3.png Raw Beef 14-17 Emerald 1.png Emerald 1 14.009% Available Unavailable Quantities Unavailable
Emerald 1.png Emerald 6-7 Saddle 1.png Saddle 1 2.517% Available Quantities Unavailable[Butcher 3] Certain Quantities[Butcher 3][Butcher 4]
Emerald 1.png Emerald 2-3 Leather Cap 3.png Leather Cap 1 7.935% Available Unavailable Unavailable
Emerald 1.png Emerald 4 Leather Tunic 3.png Leather Tunic 1 7.935% Available Unavailable Unavailable
Emerald 1.png Emerald 2-3 Leather Pants 3.png Leather Leggings 1 7.935% Available Available[Butcher 3] Unavailable
Emerald 1.png Emerald 2-3 Leather Boots 3.png Leather Boots 1 7.935% Available Unavailable Unavailable
Emerald 1.png Emerald 1 Cooked Porkchop 3.png Cooked Porkchop 6-7 7.935% Available Available[Butcher 2] Quantities Unavailable[Butcher 2]
Emerald 1.png Emerald 1 Steak 3.png Steak 6-7 7.935% Available Unavailable Unavailable
  1. Damage values are ignored when trading in versions before 14w02a (a 1.8 snapshot), meaning charcoal and Invalid Data Value Coal are accepted.
  2. 2.0 2.1 2.2 Only available for the butcher career.
  3. 3.0 3.1 3.2 Only available for the leatherworker career.
  4. The only quantity available from 1.14 to 24w20a (present) is 6 emeralds for 1 saddle.

Invalid Uses Count

Normally, a villager cannot have a trade with a uses value greater than the maxUses value. However, as maxUses did not exist before 1.4, the game defaults to assigning a maxUses value of 7 upon updating. However, 1.13's mechanics can be abused to break this rule. Most simply, 1.3 allows a trade to potentially be used up to 12 times. However, another mechanic exists that allows this to be pushed much farther. When a villager has only a single trade unlocked, it is not allowed to be removed. This allows the player to increase the uses of a trade to an arbitrarily high number. If one strategically trades other trades to remove them when they generate from closing the GUI, in theory it can be increased forever, eventually resulting in overflowing at 2,147,483,647 to -2,147,483,648. A negative uses value is particularly interesting, as it allows nearly limitless trading in any version until it eventually increases back to positive integers, but this is highly impractical to achieve.

After updating to 1.4 and beyond, such trades will gain maxUses as the villager restocks, but it likely will appear to not restock such trades depending on how high uses is. As 1.14 changed how uses and maxUses were utilized, when restocking in 1.14 or above uses will be set back to 0.

Retaining

When updating older villagers to newer versions, certain precautions must be taken to preserve their trades. Villagers may be mostly safely be updated from 1.3 to 1.13 without any loss of trades. However, one should be careful when restocking these villagers from 1.4 to 1.7 as newly generated trades, if they have the same sell item and a lower buy quantity, can overwrite existing trades. Additionally, loading villagers from 13w36a to 13w39b (1.7 snapshots) will cause second buy slot removal. When loaded in any version from 19w11a (a 1.14 snapshot) to 1.14 Pre-Release 3, you must either trade at least once or assign each villager a workstation before updating, as upon updating to 1.14 Pre-Release 4 or newer, villagers that have 0 experience and that do not have a workstation will revert to unemployed villagers, loosing their trades. If a villager is directly updated from before 19w11a to 1.14.1 Pre-Release 1 or newer, this step may be skipped if the villager has at least 4 trades.

As a result of the addition of careers in 1.8, pre-1.8 villagers will default to a career ID of 0. From 1.8 to 1.13, they will maintain this until they restock, where they will be assigned a random career.

Upon updating to 19w11a and above, if the villager still has a career ID of 0, they will always have a specific career assigned, as noted in the possible trades section of this page. Additionally, all trades will gain the priceMultiplier:0.0f tag, which is unique to pre-1.14 trades.

Combos

Pre-1.4 trades can be combined with most of the pre-1.8 villager trades.

See also

References