Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-152084

Villagers occasionally stand up out of beds at night, then can never sleep in that bed again

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 20w19a
    • Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 5, Minecraft 1.14.4 Pre-Release 6, 1.14.4, 19w46a, 19w46b, 1.15 Pre-release 1, 1.15 Pre-Release 2, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15 Pre-release 5, 1.15 Pre-release 7, 1.15, 1.15.1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w15a, 20w16a, 20w17a, 20w18a
    • Confirmed
    • Village system
    • Important

      The bug

      When villagers sleep at night in a set of tiled beds, there seems to be a fairly high chance that any given villager will spontaneously stand up during the night. After they have stood up during a night cycle, I observed that they seemed to never slept in that bed again during subsequent nights. Instead, they stood on or near it throughout these later nights.

      How to reproduce

      I produced this result in both a flat world and a normal random map seed world. I placed a set of tiled beds in a 3x8 row, 24 beds in total, and surrounded the beds with a 2-high wall of glass around their perimeter. I then spawned 24 villagers into this bed chamber and set the game to night. This initial night time, all villagers successfully bonded to a bed within the glass chamber and slept in it. After 2 or 3 times cycling from night to day, by the 2nd or 3rd night, when I waited up to a few minutes during the night, I observed villagers standing up out of their bed. Setting the time to day and then night again, I observed the villagers that had stood up during the night never sleeping in their bed again, even after I tried setting it from day to night several more times.

      I then tried some different things, like adding bells and/or workstations, cycling them through work times, etc. Bells seemed to give no improvement, but it seems like if they're bonded to a workstation around the perimeter of the bed chamber then their sleeping in the bed becomes more reliable. I wonder if their pathfinding around during different times of their workday makes them more able to get back into their bed?

      Implications

      May affect the mechanics of naturally-spawned villages. May affect iron farm designs.

      Image

      Please see the attached image, wherein I observe villagers who are permanently unable to sleep in the bed they initially bonded to in a prior night time.

        1. 2019-05-16_22.06.53.png
          2019-05-16_22.06.53.png
          1.98 MB
        2. 2019-07-12_15.40.09.png
          2019-07-12_15.40.09.png
          2.34 MB
        3. 2019-11-20_14.38.09.png
          2019-11-20_14.38.09.png
          3.82 MB

            cojomax99 [Mojang] Cory Scheviak
            WeirdWilliam Alex Galaitsis
            Votes:
            45 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: