[MC-5506] Villagers offer Enchanted Book trades you can't possibly do Created: 29/Dec/12  Updated: 14/Jul/14  Resolved: 24/Jan/14

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.6, Minecraft 1.5.2, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 1.7.4
Fix Version/s: Minecraft 14w02c

Type: Bug
Reporter: Kyle Egli Assignee: Unassigned
Resolution: Fixed Votes: 14
Labels: None
Environment:

All


Attachments: Zip Archive 66EmTrade.zip    
Issue Links:
Duplicate
is duplicated by MC-22458 Its a bug that can't be done in vanil... Resolved
is duplicated by MC-27294 too many emeralds to trade Resolved
is duplicated by MC-36160 Villager trades can have more then 64... Resolved
is duplicated by MC-36419 Villager trade is too expensive Resolved
is duplicated by MC-36625 VIllager sells item impossible to buy Resolved
is duplicated by MC-53214 67 Items in one stack Resolved
is duplicated by MC-59836 Villager enchants a book for 67 emeralds Resolved
is duplicated by MC-61930 Impossible Villager Trade Resolved
CHK:
Confirmation Status: Confirmed
Game Mode: Survival

 Description   

Librarian Villagers will sometimes offer Enchanted Book's with an emerald cost higher than 64, which is impossible to trade for.

Example: Bane of Arthropods V for 66 Emeralds. (Uploaded zip, coords 7147, 38, -4835)



 Comments   
Comment by Nigel Andre Butalid Canonoy [ 12/Feb/14 ]

Why not allow villagers to have a trade quota, you can give them a "Pay" button so the number of emeralds will go down with each pay. That way you can pay in multiple stacks if one of the slots must be occupied as well. It will only get the required items using Pay buttons. This idea resolves most of the trading problems.

Comment by Kyle Egli [ 23/Jan/14 ]

Yes, it appears the new trading properly caps the maximum amount of emeralds at 64.

Comment by Galaxy_2Alex [ 17/Jan/14 ]

Has this been fixed due to the recent changes to Villager trading?

Comment by Anthony Thyssen [ 06/Jan/14 ]

Why not just cap the maximum number of emeralds needed for level V enchanted books to 64.

That would be a very very simple fix!

Comment by Jeff Swisher [ 11/Jul/13 ]

This could be resolved if Block of Emerald counted as 9 Emerald for the purpose of trading and they left your change in the GUI.

Comment by Tails [ 18/May/13 ]

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Kyle Egli [ 31/Dec/12 ]

Oh, I had misread, my bad.

Comment by Anon Ymus [ 31/Dec/12 ]

That is what I just said, Kyle.

Comment by Kumasasa [ 31/Dec/12 ]

Confirmed with the attached world

Comment by Kyle Egli [ 31/Dec/12 ]

Well not exactly, since the ranges are based on the enchantment level too:
Level 1: 5-20
Level 2: 8-33
Level 3: 11-46
Level 4: 14-59
Level 5: 17-71

Comment by Anon Ymus [ 30/Dec/12 ]

From this, it looks like a level five enchantment could theoretically cost up to 71 emeralds. I guess this is confirmed.

Comment by Kyle Egli [ 30/Dec/12 ]

Yes, the villager / world in question is from a bukkit server with some plugins, but none of which affect the villager trading calculations. As I'd rather not spend another 10+ hours of trying to get lucky, especially since someone has already dug into the code on how the trade costs are calculated. ( http://www.minecraftwiki.net/wiki/Talk:Trading#Enchanted_Books )

Edit: Though if someone else wants to get another occurrence of this, be my guest.

Comment by Anon Ymus [ 29/Dec/12 ]

How did you get the colored signs? That seems to point to a non-vanilla world.

Comment by Richard Harvey [ 29/Dec/12 ]

Here's a screenshot of the trading gui.

adding link cause I couldn't get the attact screenshot to work.
https://dl.dropbox.com/u/18835236/Games/Minecraft/issues/javaw%202012-12-28%2023-46-51-76.png

off-topic.. that's a nice way of transporting items, the water/ice pathway

Comment by Kyle Egli [ 29/Dec/12 ]

Added the file. Note that I deleted all the unrelated chunks to reduce file size, coords of the villager are x: 7147, y: 38, z: -4835

Comment by Anon Ymus [ 29/Dec/12 ]

Can you attach a world with one of these trades?

Generated at Sun Jan 12 12:08:07 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.