Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-47212

Villagers continue breeding past the bed count

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.18.33 Hotfix, 1.18.32, 1.17.10.20 Beta, 1.16.100.57 Beta, 1.13.1, 1.14.1 Hotfix, 1.11.0.4 Beta, 1.11.1, 1.11.4, 1.12.0, 1.14.0, 1.14.30 Hotfix, 1.14.60 Hotfix, 1.16.0, 1.16.1, 1.16.100, 1.16.200, 1.16.210, 1.18.31, 1.21.0
    • Confirmed
    • Multiple
    • 380311

      Updated description by GoldenHelmet
      Steps to reproduce

      1. Find or build a village with at least 1 farmer, 1 other villager, and a food supply.
      2. Add beds to the village until there are more beds than villagers.
      3. Position the player such that:
        • some beds and workstations are outside of simulation distance,
        • villagers can move across the simulation distance boundary in the direction of those beds, and
        • the farmer's bed, workstation, and farm, and at least one other bed, remain accessible to villagers within simulation distance.
      4. Wait at least 25 minutes.

      Expected result
      The villagers breed until villagers >= beds.

      Actual result
      The villagers continue to breed even after villagers >= beds.

      Test world
      I have attached a test world that reproduces this bug: New Village Test.mcworld
      The world consists of a village similarly sized and shaped to the one described by Tim Roush in this comment. It has 26 beds in rooms around a 40 x 40 central square: 4 beds north, 8 west, 8 south, and 6 east. The player is situated on a platform to the south of the village such that the beds to the north (and, by accident, some on the east) are outside of simulation distance. To the right of the player is a pair of command blocks that recount the loaded villagers when you press the button.

      The village has already been run following the steps above for about an hour. There are presently 32 villagers within the village walls. However, if you load the world and press the button you will get a count of 11 because 21 are outside of simulation distance. The village data (viewed with MCCToolChest) shows 19 villagers registered to the village. 6 of these have TS timers > 15000 (showing that they've been outside of simulation distance > 15 minutes); 5 of those 6 along with 12 others can found beyond the northern central wall that runs along Z = -1, just outside of simulation distance. The other high-TS registered villager and 3 others are just outside of simulation distance in the northern rooms east of the central village. As soon as you load the world villagers will begin to breed. If you remain on the glowstone platform they will continue to breed as villagers wander out of simulation distance and their TS timers expire.

       


      Original summary
      Villagers breed to double the bed count

      Original description
      Doing some testing, but it seems like villagers breed to double the bed count, causing old villagers to forget their beds and workspace blocks, and causing overpopulation. This MAY be the cause of the bug where villages expand

      STEPS TO REPRODUCE:
      Build a village in any world and set up more than 1 bed
      Make one villager a farmer, and the others whatever you want
      Make a small farm for the villagers to use
      The farmer will begin harvesting and distributing the food
      After some time, villagers will begin wanting to breed (hearts will appear around them)
      You'll notice that when a baby is born, the old villager seems to be exiled from the village, and will forget its bed and workspace block, and begin wandering aimlessly around and outside the village.

      Again, this may be the cause of the village expansion bug where villagers claim blocks thousands of blocks away from the actual village.

            Gamershy Bobby Dobberstein
            Votes:
            50 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated:
              CHK: