I got a few villagers, set some trades i wanted, then went afk overnight so my sugarcane farm would generate enough to get a bunch of books.
woke up to this(the attachment). I looked through their nbt with /data, and aside from them having no gossip and the demand being -211999998 theres nothing out of the ordinary.
i messed with their nbt, and found the demand to be the culprit. I watched it for a little bit and it just seems to keep decreasing, and thus rising the price the longer they exist.
I haven't tested in previous versions, but ive never ran into this problem before so I'd assume its exclusive to 1.16.1.
Linked issues
Attachments
Comments 5
that does, however i am on single player, not a realms world or any type of server.
i had reset the villagers demand value to 0, but it happened to the paper right after, so lol, heres the ss with f3 open
This may be related to MC-148949. That bug report has a save file attached that also exhibits this issue. If you want to reproduce the behaviour described here, use the save file attached to MC-148949.
I can confirm the continual decrease of "demand", using a tool I wrote myself. Whenever a villager works at their workstation, maxUses is subtracted from demand. In the save file, the villagers have "demand" for some trades at such an absurd level that some of them are approaching the 32-bit integer limit.
I have extracted the following information for a few trades for a farmer villager that has existed since 1.7 (I am not listing all the farmer's 23 trades for the sake of brevity):
Before trading
minecraft:farmer Pos: ( -309.456, 65.000, 98.168)
minecraft:white_wool x 17 > minecraft:emerald x 1: Uses=0, MaxUses=276, Demand=-27214160
minecraft:emerald x 1 > minecraft:cooked_chicken x 8: Uses=0, MaxUses=13, Demand=-1281838
minecraft:emerald x 1 > minecraft:bread x 3: Uses=0, MaxUses=7, Demand=-690226
minecraft:emerald x 3 > minecraft:shears x 1: Uses=0, MaxUses=7, Demand=-690224
minecraft:chicken x 15 > minecraft:emerald x 1: Uses=0, MaxUses=1466, Demand=-144550536
minecraft:wheat x 21 > minecraft:emerald x 1: Uses=0, MaxUses=15717, Demand=-1549721004
After trading 25 stacks of wheat
minecraft:farmer Pos: ( -309.460, 65.000, 98.169)
minecraft:white_wool x 17 > minecraft:emerald x 1: Uses=0, MaxUses=276, Demand=-27214436
minecraft:emerald x 1 > minecraft:cooked_chicken x 8: Uses=0, MaxUses=13, Demand=-1281851
minecraft:emerald x 1 > minecraft:bread x 3: Uses=0, MaxUses=7, Demand=-690233
minecraft:emerald x 3 > minecraft:shears x 1: Uses=0, MaxUses=7, Demand=-690231
minecraft:chicken x 15 > minecraft:emerald x 1: Uses=0, MaxUses=1466, Demand=-144552002
minecraft:wheat x 21 > minecraft:emerald x 1: Uses=75, MaxUses=15717, Demand=-1549736685
After the farmer resets the trades
minecraft:farmer Pos: ( -309.460, 65.000, 98.232)
minecraft:white_wool x 17 > minecraft:emerald x 1: Uses=0, MaxUses=276, Demand=-27214712
minecraft:emerald x 1 > minecraft:cooked_chicken x 8: Uses=0, MaxUses=13, Demand=-1281864
minecraft:emerald x 1 > minecraft:bread x 3: Uses=0, MaxUses=7, Demand=-690240
minecraft:emerald x 3 > minecraft:shears x 1: Uses=0, MaxUses=7, Demand=-690238
minecraft:chicken x 15 > minecraft:emerald x 1: Uses=0, MaxUses=1466, Demand=-144553468
minecraft:wheat x 21 > minecraft:emerald x 1: Uses=0, MaxUses=15717, Demand=-1549752252
This save file also has a naturally-spawned farmer in a nearby village that has never been traded with. The details for that farmer are as follows:
Before
minecraft:farmer Pos: ( -147.415, 70.938, -26.745)
minecraft:wheat x 20 > minecraft:emerald x 1: Uses=0, MaxUses=16, Demand=-32
minecraft:carrot x 22 > minecraft:emerald x 1: Uses=0, MaxUses=16, Demand=-32
Offers:2
After trading the other farmer villager
minecraft:farmer Pos: ( -147.509, 71.000, -23.300)
minecraft:wheat x 20 > minecraft:emerald x 1: Uses=0, MaxUses=16, Demand=-32
minecraft:carrot x 22 > minecraft:emerald x 1: Uses=0, MaxUses=16, Demand=-32
Offers:2
After other farmer resets trades
minecraft:farmer Pos: ( -147.065, 71.000, -21.593)
minecraft:wheat x 20 > minecraft:emerald x 1: Uses=0, MaxUses=16, Demand=-64
minecraft:carrot x 22 > minecraft:emerald x 1: Uses=0, MaxUses=16, Demand=-64
Offers:2
Demand is decreasing for all trades for all villagers.
Does MC-163962 explain your issue?