Mojira Archive
MC-157438

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

  1. Summon some villagers
  2. Provide a lectern workstation for them (since librarians only have a single enchantment on each book, it's easiest to reproduce with them).
  3. 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.

Unresolved

[Mod] NeunEinser

2019-07-22, 01:30 PM

2024-11-11, 11:03 AM

9

5

Confirmed

Trading

price, trading, villager

1.14.4 - 24w45a1.14.4, 19w44a, 1.15.2, 20w13b, 20w51a, 1.19.2, 24w45a

-