Workaround
You may be able to prevent this bug from occurring in either of two ways:
If you plan to kill or remove any villager from a village, break its workstation first.
Break and replace the workstation of any new villager before trading with it for the first time.
Updated description by @unknown
Steps to reproduce:
Get a villager who has never traded to link to a workstation without changing its profession to match. (
This is the hard part, and I am not sure how to reproduce it. It happened for me twice while testing MCPE-63311.See comment below. Fortunately, I have a test world save in which this step is already done
--the fisherman is linked to the smithing table.)
Trade with the villager.
Break the workstation.
Place a workstation of the same type as the one you broke.
Expected result:
The villager keeps the profession it had when you traded with it.
Actual result:
The villager changes profession to match the workstation.
Original description
I had a villager turn into a librarian who sold mending 1 for 10 emeralds. I traded paper twice and four times for mending books. After walking away and coming back he had changed into a fisherman. I know for certain that the mending villager changed because he was locked in a room with another mending villager. Both had beds and workstations. I removed every single barrel from my base (Which counted to about 120 after I was finished) and he refused to change profession despite no barrels existing. The odd part being that he retained his previous librarian level locking him into the fisher class.
Edit to Bug.
Ive been working on figuring out details. The villager hall I have now currently can have 120 villagers. It seems most if not all villagers will swap to a new profession even if max level (when removing the workspace linked to them). I think this bug may be related to villager tracking which I believe will be fixed in the nether update. This may just be a side effect of another bug.
Linked issues
is duplicated by 48
relates to 2
Attachments
Comments 27
We're having some difficulty reproducing the issue - could this have been a Villager that hadn't been traded with at all since the Village & Pillage update?
I just had the same issue with Librarians that I have traded with. Traded numerous times with a librarian for mending books to lock trades in. I added a few other librarians (all had been traded with to lock in trades) to my trade hall. When I went to trade with them again, their trades had all changed. This was also on a Realms world.
If you have a copy of the world available, you might like to upload a copy of it for investigation.
On Windows 10 you can use the Export world feature.
On Android or iOS you need to use a file explorer to navigate to Device storage > games > com.mojang > minecraftWorlds
On Xbox or Switch the only way is to upload it to a Realm, and then download the world on Windows 10 or Android/iOS. (Please do not purchase a Realms subscription just to provide a world to us - but if you have a Realm already this may be a viable option if you wish to do so.)
If the world is larger than 10MB you can upload the world to OneDrive or a similar file sharing site, and then share the link.
I have been having this happen in my 1.16.40 game. BDS hosted on my machine.
Sometimes villagers go missing, sometimes they change professions.
This last time it happened to three villagers at the same time - all were enchanters, in the same room with three lecterns and all traded up at least two levels.
All kept their levels. One stayed an enchanter, but his books changed.
And the profession only changed once - after that, it "stuck". I've destroyed the lecterns and replaced them, but the villagers are not changing back.
All were recently healed from being zombies.
This bug still occurs in 1.16.200. I have a trading hall with all the villagers stuck in individual spaces and a max level farmer somehow changed into a max level cleric. I did not remove his work station. The only thing I did was move some brewing stands to switch villagers on another part of the trading hall.
@Derick Wolfe: Was the farmer created prior to 1.16.100? If so, he would have been affected by this bug before the update, since the error with the villagers' professions actually occurred when they first linked to a workstation. If you can reproduce switching professions after trading with villagers created in the current version, please create a new ticket.
Yah I'm not sure why this says its resolved because this has been continuously happening even in 1.16.210 and above
The specific reproduction steps described on this ticket no longer reproduce the bug after the fix in 1.16.100.
For villagers changing professions after trading, after the 1.16.100 update, see MCPE-117852. Please comment there if you have steps to reproduce the problem.
Did this happen in a Realm or a local world?