mojira.dev
MC-252439

Cured Villager trades are not refreshing

Steps to reproduce:

PART I:

First I spawned in a Villager, made hima cozy little ... house, and put a lectern in front of him, which resulted in the following Brain data:

{memories: {"minecraft:last_worked_at_poi": {value: 2305L}, "minecraft:job_site": {value: {pos: [I; -232, 128, 110], dimension: "minecraft:overworld"}}}}

then I traded with him and waited around a bit for him to do his work routine which resulted in the following:

{memories: {"minecraft:last_worked_at_poi": {value: 19582L}, "minecraft:job_site": {value: {pos: [I; -232, 128, 110], dimension: "minecraft:overworld"}}}

then a zombie "snuck" in to my little "house" (totally on accident), and I converted the poor fella into a villager again after he was inevitably munched on by the zombie.

and I do understand that that must have messed with his Brain quite a bit, but he lost all information in there resulting in the following

{memories: {}}

so he lost his job_site and all other valuable information, but I decided to just give him a new lectern (so he had two for the moment), which he cheerfully accepted by emitting green particles, a check on the data of him did reveal that there was nothing in Brain still (no change to above)

I then tried breaking and placing the workstation a couple times, which was acknowledged by green particles every time, but still his Brain showed signs of his previous affliction, and would not register the job_site again.

I also waited for a couple ingame days, sleeping through some nights, not sleeping through others without any luck of him realizing he's standing right infront of a suitable workstation.

I then tried placing other workstations, namely a composter and a grindstone, which was greeted by the same green particles emitted before.

This behaviour is not only frustrating but also it doesn't make much sense to me, that the villager would act this way.

PART II:

I then proceeded to add all other possible workstations, which were ALL acknowledged by our Librarian friend.

Guessing they would all be locked to the Librarian now I added two more villagers, without profession so he wouldn't be too lonely, and as I expected they weren't able to pick any of the 14 job sites available to them now (2 lecterns and 1 of each other type)

only after breaking and replacing the composter for example was one of the professionless villagers able to pick it up as his own.

Possibly useful information:

The workstations in Part 1 were always adjecent to the villager on foot level, so there should be no issue with pathfinding.

The Villager always stood on the same block for the entire process of Part 1.

Linked issues

MC-252136 Villager Trades not restocking after renaming with a name tag Resolved MC-252198 villagers will not restock Resolved MC-252530 Villager cannot regain job site after curing. Resolved MC-252559 Villagers refuse to take job sites properly (but lock them) Resolved MC-252808 Villagers won't restock Resolved

Attachments

Comments 26

Could you elaborate on what exactly you mean with update/refreshing trades

maxing out an item purchase (ex wheat) will stay maxed out..can never buy it again

The villager needs to restock at their workstation, that's not an instant thing. Give it time and the villager will restock.

yes im well aware of that..hence the bug report

This may be a duplicate of MC-252136

16 more comments

This was fixed in 22w24a, which was released after 1.19. This fix will be available once you update to 1.19.1.

Hello, is this now open? And getting fixed?

Bc im right now playing on 1.19. server and its still not working.

Cured 4 Villagers a couple of times. Now they don't restock their trades 😞

 

Edit: ah got it from the comment above: its fixed after 1.19 😞

For anyone looking to fix this in 1.19, here is a suggestion: I placed down a bunch of bells around the affected villagers (used the `/data get entity ...` command to make sure they recognized it). They all recognized the bells, after this I could just break & replace the workstation and they would restock their trades. I think placing down the bells somehow updated their memories and they accepted workstations again? With some villagers it went easier than with others: some instantly restocked, others only did so after I switched dimensions / unloaded & reloaded them or broke & replaced their workstation multiple times, but this fix didn't take me more than 10 minutes or something.

[media][media]

So it will work if i now update my world from 1.19 to 1.19.2?

It got fixed in 22w24a. And after this, 1.19.1 was released where it obviously was included.

So yes. It works again in every version after 22w24a.

BTW u can already get a hint for that answer in earlier Comments:

Comment from ampolive

howie052877

boq

Confirmed

Village system

1.19 Release Candidate 2, 1.19

22w24a

Retrieved