When a world saved in 1.10 gets opened in 1.11.0.9 Beta, stray cats in an existing village can claim beds before the converted villagers can claim them, preventing the converted villagers from being able to find a bed.
Steps to reproduce:
In 1.11.0.9 Beta, import the attached world saved in 1.10.
Notice that there are 12 beds, 12 villagers, and 4 cats. The current daytime is 11000.
Activate the Daylight Cycle by using the command block on your left.
Wait for the villagers to go to bed. Notice that only 8 do so; 4 remain standing.
Activate the Kill Cats command block to kill the cats.
Expected results:
All 12 villagers go to bed.
Actual results:
Only 8 villagers go to bed initially. After you kill the cats, the remaining 4 villagers claim the beds previously claimed by cats and go to bed.
Related issues
is duplicated by
Attachments
Comments


Possibly a different way to reproduce this issue is to kill all villagers (in 1.10) and summon / spawn one villager (in 1.11). Notice the particle effect above multiple beds.

@unknown: I think there may also be a problem with villager conversion causing the particles over multiple beds. In the NBT data, converted villagers without any profession (because their tier 2 trades were never unlocked) only have the 'minecraft:villager' and 'adult' components. They should at least have either the 'behavior_peasant' or 'behavior_non_peasant' or 'unskilled' component, as well as the 'basic_schedule' component. Egg-spawned villagers will have those components. So if all you have are converted no-profession villagers, there's nobody who can detect a bed. Then the first time you spawn a villager by egg, it detects all the beds and creates the village.
The defective converted villagers is a different problem. I'm not even sure they're considered inhabitants of the village. They absolutely will not claim a bed until after they find a job site, whereas it should be the other way around. But all this belongs in another ticket, once I figure it out some more.
Edit: After further experimentation, there doesn't seem to be a problem with villagers after all, it's just the cats. If you kill all the villagers, the village is destroyed. Then, when you spawn a new villager, it detects and claims one bed and creates the village again. But if there are any stray cats around, they claim beds as soon as the village is created, so multiple beds display green particles.

Additional info: Iron golems can claim workplace blocks.
I had a pre-1.11 village with 10 villagers, 9 of which I had given beds and jobs including 1 toolsmith. A second village (actually a villager breeder >100 blocks away) was interfering with me assigning beds and blocks, so I killed off all the villagers in it. That village had 2 iron golems which headed off in the direction of the first village, though I didn't follow them and don't know for sure what happened to them, but it's possible one of them became the iron golem now in the first village.
Anyway, at some point the iron golem took the workplace block (smithing table) away from the tool smith and the tool smith became unskilled. I have verified this in the NBT data: The iron golem's DwellingUniqueID is the one for the first village, and the VILLAGE_xxx_DWELLERS for that village has the iron golem's UniqueID in its first actors list. The VILLAGE_xxx_POI for that village shows the iron golem having no bed and no second POI, with its third POI having Name: tool smith and the block coordinates being those of the smithing table. I suspect the error happened when the tool smith relinquished the smithing table after 3 attempts to get to it, but I'm not sure that ever happened.

It happens with tamed cats as well.