The bug
Breaking and placing a claimed bed in the same place causes a second villager to claim it, even though the original owner had not forgotten his bed location. This causes one villager to sleep at night while the other tries to claim the same bed.
What I expected to happen was...:
When replacing the claimed bed, the original owner would either discard his claim or the second villager would not try to claim it.
What actually happened was...:
Two villagers claimed the same bed.
To reproduce:
[media]In Video Settings, set Particles to All
Make a trench two blocks deep
Place a bed and a villager
Wait for the villager to claim the bed (it will emit green particles)
Spawn another villager in the trench
Break and place the bed in the same position
Check if the second villager claims the bed (it will also emit green particles)
If it happens, use this command:
/time set night
You will see one villager sleeping in the bed, and the other constantly reclaiming the bed (with lots of green particles on his head
Linked issues
is duplicated by 5
relates to 4
Attachments
Comments 30
im having the exact same issue so hopefully this is getting resolved soon. since they wont claim unclaimed beds the villagers still think theres available beds and now i have an overabundance of villagers...
This bug is still happening in 21w11a, and seems to be caused when a bed is broken or obstructed but the villager who owns the bed doesn't see it happen. It's like there's a disconnect between the game and the villagers in terms of which beds are seen as claimed and which aren’t.
Additionally, villagers may also think these beds are not occupied during breeding, which can lead to a large group of villagers crowding by the beds at night after days, like:
[media]
Please provide a screenshot of the setup with the F3 debug screen enabled.