mojira.dev
MC-44351

Librarian Villagers sell multiple enchanted books

First spawn villagers until you get a librarian (white robes).

Next, trade with him many times. You'll notice that there can be more than one slot for an enchanted book trade, and if you trade long enough I'd assume you would eventually get a separate slot for every single enchanted book.

This happened because NBT tags are now taken into account in villager trades, so if a villager detects that, say, a Silk Touch book trade has already been encountered, and then it attempts to create a trade for a Fire Aspect book, it will think that the offers are different, so it will create a new trade slot.

I haven't tested it, but if my explanation is correct this will probably also work for blacksmiths (who now sell enchanted diamond gear, on which the specific enchantments can vary) and priests, who also sell enchanted gear.

Linked issues

Comments 3

It's possible, but it seem more likely that it's an unintended consequence of parsing the NBT tabs. I would probably be less skeptical if only a few books could be traded, but if you wait long enough you'll literally get a slot for every book in the game.

This is a different issue from the one it is linked to. This issue relates to the fact that villagers can trade multiple enchanted books at the same time, while the other issue was referring to the fact that multiple villagers would have the same trade.

ChocolateChip Cookies

(Unassigned)

Unconfirmed

Minecraft 14w02a

Retrieved