The base price for enchanted items is random
The bug
So as far as I understand, the base price of a villager is supposed to be always the same.
For enchanted items, this price is supposed to depend on the enchantment.
There is, however, still a random component to it, as 2 trades with the same enchanted item still can have different prices.
How to reproduce
- Summon some villagers
- Provide a lectern workstation for them (since librarians only have a single enchantment on each book, it's easiest to reproduce with them).
- Do the above until you have 2 instances of the same trade and compare the prices.
→
The price may differ
Why this happens
Information on the likely cause by Sebastian can be found here and here.
Linked Issues
Created Issue:
The base price for enchanted items is random
Hello,
So as far as I understand, the base price of a villager is supposed to be always the same.
For enchanted items, this price is supposed to depenton the enchantment.
There is, however, still a random component to it, as 2 trades with the same enchated item still can have different pricesSteps to Reproduce
- Summon some villagers
- Provide a lectern workstation for them (since libarians only have a single enchantment on each book, it's easiest to reproduce with them).
- Do the above until you have 2 instances of the same trade and compare the prices.
The price may differ.
Hello,
So as far as I understand, the base price of a villager is supposed to be always the same.
For enchanted items, this price is supposed to depen
ton the enchantment.
There is, however, still a random component to it, as 2 trades with the same enchated item still can have different prices
StepstoReproduce
- Summon some villagers
- Provide a lectern workstation for them (since libarians only have a single enchantment on each book, it's easiest to reproduce with them).
- Do the above until you have 2 instances of the same trade and compare the prices.
The price may differ
.The bug
So as far as I understand, the base price of a villager is supposed to be always the same.
For enchanted items, this price is supposed to depend on the enchantment.
There is, however, still a random component to it, as 2 trades with the same enchanted item still can have different prices.How to reproduce
- Summon some villagers
- Provide a lectern workstation for them (since librarians only have a single enchantment on each book, it's easiest to reproduce with them).
- Do the above until you have 2 instances of the same trade and compare the prices.
→The price may differ
The bug
So as far as I understand, the base price of a villager is supposed to be always the same.
For enchanted items, this price is supposed to depend on the enchantment.
There is, however, still a random component to it, as 2 trades with the same enchanted item still can have different prices.How to reproduce
- Summon some villagers
- Provide a lectern workstation for them (since librarians only have a single enchantment on each book, it's easiest to reproduce with them).
- Do the above until you have 2 instances of the same trade and compare the prices.
→The price may differ
Why this happens
Information on the likely cause by Sebastian can be found [#comment-569444|here] and [#comment-569525|here].
The bug
So as far as I understand, the base price of a villager is supposed to be always the same.
For enchanted items, this price is supposed to depend on the enchantment.
There is, however, still a random component to it, as 2 trades with the same enchanted item still can have different prices.How to reproduce
- Summon some villagers
- Provide a lectern workstation for them (since librarians only have a single enchantment on each book, it's easiest to reproduce with them).
- Do the above until you have 2 instances of the same trade and compare the prices.
→The price may differ
Why this happens
Information on the likely cause by Sebastian can be found
[#comment-569444|here]and [#comment-569525|here].
The bug
So as far as I understand, the base price of a villager is supposed to be always the same.
For enchanted items, this price is supposed to depend on the enchantment.
There is, however, still a random component to it, as 2 trades with the same enchanted item still can have different prices.How to reproduce
- Summon some villagers
- Provide a lectern workstation for them (since librarians only have a single enchantment on each book, it's easiest to reproduce with them).
- Do the above until you have 2 instances of the same trade and compare the prices.
→The price may differ
Why this happens
Information on the likely cause by Sebastian can be found
comment-569444and[#comment-569525|here].The bug
So as far as I understand, the base price of a villager is supposed to be always the same.
For enchanted items, this price is supposed to depend on the enchantment.
There is, however, still a random component to it, as 2 trades with the same enchanted item still can have different prices.How to reproduce
- Summon some villagers
- Provide a lectern workstation for them (since librarians only have a single enchantment on each book, it's easiest to reproduce with them).
- Do the above until you have 2 instances of the same trade and compare the prices.
→The price may differ
Why this happens
Information on the likely cause by Sebastian can be found here and here.
relates to




this is normal unless you haven't traded with said villagers
joe dav The base price is the thing that always stays the same, no matter if you traded with the villager or not (the base price is what is crossed out in the screenshots, so 15 and 7 emeralds in this case)
Confirmed. One librarian sold looting II for 15 emeralds and another villager sold this same enchantment for 25 emeralds. This also relates to
MC-71354You are saying that when a villager picks a book the book's prize can fluctuate although it is the same book. In your example Aqua Affinity, which has an Enchantment level of 1, has a price of 15 emeralds for one librarian, and a price of 7 for another (or the trades were reset, same thing).
Fluctuating prices for enchanted items are normal (see Enchanted Armor, Tools and Weapons), but not the topic of this report. The report is talking about fluctuations although the enchant is the same. Which, in fact, is normal, as you can see here: https://minecraft.gamepedia.com/Trading#cite_note-book-java-7
Else "Mending", for example, would always cost a certain number. While many people know that mending's cheapest price is 10, and can go up to 38 when trusting the Wiki (Explanation: Mending is a level 1 enchant => Price fluctuates between 5 and 19 => Mending is a "treasure enchantment => Price doubles => Mending can fluctuate between 10 and 38).
Thus, your "bug report" is not a bug. Fluctuating prices for the same enchant on a book are intentional.
But if you mean that a villager that sells i.e Aqua Affinity to you for 15 emeralds, but you decide to reset his trades by destroying and replacing the Workstation until you get Aqua Affinity again, youre expecting no other price than 15 emeralds... How exactly are you expecting him to remember this price? There is no seed for prices like there is for enchanting for example. Thats why people always reset villager trades to get a certain enchantment cheaper. The price always is chosen random with the few conditions cited in the link.
This is also confirmed for enchanted items that are not books as well (such as weaponsmiths selling knockback I iron swords for 17 and 18 emeralds respectively).
After longer testing I am certain that the price of Tools is calculated with picked enchant level in mind (which is between 5-19). Just like being unlucky when enchanting at lv 15 and just getting unbreaking 2, he will still have a high price for it, while other villagers offer "lucky" enchants with Sharpness 2, Unbreaking 2, Knockback 1 for the same price.
Basically, some villagers pick "Lv 15 Enchantment" and get Unbreaking 2, but still want 16 emeralds for it.
Other villagers also pick "Lv 15 Enchantment" and get Sharpness 2, Unbreaking 2, Knockback 1 and also want 16 emeralds for it.
Because the price is not related to "overall enchantments" and their "worth" but simply by the picked enchantment level.
Although one sword is significantly better than the other, the enchantment cost was the same, and thus the price is also the same.
In the example of Knockback 1, one villager needed "Lv 18" for example, and wants 18 Emeralds, and the other one just needed "Lv 17" and wants 17 Emeralds.
This is how I understand how their price is related to enchants. I couldnt explain it otherwise with the results of my experiments.
Re why I think/thought it was a bug:
All other trades have always the same base price.
For enchanted items all sources only say "The price is depenant on the enchantment the item has".
All of that makes perfect sense.
But Mojang never said that the base price of enchanted items include a random factor.
Your analysis a properly right, as this makes a lot of sense. Wheather or not Mojang intended the random factor of enchantment level costs to affect the prices of villagers is however still not confirmed by Mojang, even though it might very well be working as intended.
Can confirm in 20w51a.
1.19.2.
More likely intentional. Just like real life when you shopping, the bread of brand A is 4$ for one, while B is 6$ for one. We cannot call for the same price to both, we can only choose the cheaper one for ourselves.
Uploaded serveral screenshots.
Curse of Binding (固咒) is sold twice in different price.