mojira.dev
MC-197857

Villagers trying to claim claimed beds

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]
  1. In Video Settings, set Particles to All

  2. Make a trench two blocks deep

  3. Place a bed and a villager

  4. Wait for the villager to claim the bed (it will emit green particles)

  5. Spawn another villager in the trench

  6. Break and place the bed in the same position

  7. Check if the second villager claims the bed (it will also emit green particles)

  8. If it happens, use this command:

    /time set night
  9. 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

Attachments

Comments 30

Please provide a screenshot of the setup with the F3 debug screen enabled.

Ok just put the picture with the f3 on. hope it helps

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...

Can confirm this for 20w51a.

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.

20 more comments

Can confirm in 1.20.1

Can confirm in 1.21.1

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 do not add Affected Versions to resolved reports.

Have a look at the Resolution and the comments to see why this ticket has been resolved. If you think this ticket has been resolved erroneously you can contact the Mojira staff on Discord or Reddit.

-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

Can reproduce in 24w46a, please reopen.
Video attached:

[media]

Pannda

SoloAlguien

Shugoh

Confirmed

Platform

Important

Mob behaviour

20w19a, 20w20a, 20w21a, 1.16.2, 1.16.4, ..., 24w12a, 1.21, 1.21.1, 1.21.3, 24w46a

1.21.4 Pre-Release 2

Retrieved