mojira.dev
MC-305632

The minimum prices for enchanted books traded by librarians are inconsistent with the established price calculation formula

According to both my prior experience and the game wiki, the minimum and maximum prices a librarian villager will sell enchanted books for are determined by a formula (in bold below) with the absolute lowest price being 5 emeralds for a Level 1 enchantment. I use this as an example because it is the easiest minimum-price trade to come across.

How to Replicate: Spawn/summon in a villager. Repeatedly place and break a lectern in front of it in order to make it a librarian and cycle through the possible trades while observing the prices of the enchanted books it offers to sell. Do this for at least 5-10 minutes.

Expected result: The librarian villager should have the possibility of offering an enchanted book with a Level 1 enchantment for 5 emeralds, as the stated formula for calculating the minimum cost of this enchanted book (per the wiki) is 2 + (3 * L) with 'L' being the level of the enchantment.

Actual result: No trades offered are ever for 5 emeralds. Lowest seen is 6. If the above steps are repeated in version 1.21.11 or earlier this issue does not occur. I believe this is likely an unintentional collateral error caused by recent changes to the villager/trading code.

(Please ignore this report if this is an intentional change, although nothing on the patch notes of either 26.1 snapshot indicate that the price formula for librarian book trades was altered.)

Environment

I'm playing Java Edition on a MacBook Air.

Comments 0

No comments.

Dove396

etanaratsastaja

Confirmed

Platform

Important

Data Packs, Mob behaviour

26.1 Snapshot 2

Future Update

Retrieved