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

Villagers AI behavior ( favors a single house / door & then crowds into doorway)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.10
    • None
    • Ubuntu 12 Running Server & OS X Client
    • Unconfirmed

      I have a larger village , has + 150 doors , after the most recent update (although it might have occurred in previous releases, and i didnt notice), villagers mob seem to be favoring a specific house / door (its strange its not 'all' of the villagers they crowd into a single house, then stay right next to the door, (this makes them very susceptible to zombie mobs as they can seem to kill the villagers at times through the door. (I attached a screen shot) .

      I tried to destroy the door, and the the same villagers will just swarm another door, as they stand right in front of the doorway it blocks other villagers from getting into the house (which is also irritating).

      Additionally villagers seem to 'forget to close the door' , i.e. after several hours you will walk around the village, and find numerous doors that are 'open' , i end up closing them, then a few hours later they are opened back up again..

      Expected behavior for villager mobs:

      • In the day time, villagers wandering should encourage more wandering/more spread out behavior
      • When going inside , villagers should go into a house, and perhaps spread out (on the inside of the house)
      • if the villager had opened the door , the villager should close the door
      • villagers should try to not occupy the same block
      • at night time/rain, villagers should try to enter houses more...orderly , i.e. per, or per x tick only a % of the villagers should start going 'inside' , in support of entering houses more orderly.
      • multiple villagers within a house should not be trying to close the door at the same time, i.e villagers on the outside may try to get inside, while the villager apparently on the inside keeps trying to close the door on them, ideally... it should be that a villager enters the house, closes the door, then tries to spread out a bit more ...
      • double doors should be treated as a 'single door' for the purposes of deciding which houses to try to get into.
      • villagers should 'give up' on entering a house after x ticks, try a different house.
      • villagers should not always pick the 'closest' door.. perhaps villager ai should should attempt to map a 'path' to enter a door, within increasing radius, or a random radius as determined by a % of the doors within the village, villagers could run to that house... then maintain an affinity for that house for x days ? so that the next time that the villager needs to go inside , it would first see if that house is within a Y radius determined by the radius, if the villager is within that radius the villager will attempt to go to that house, if the villager is not , then it the villager will attempt to find a new domicile.

      These are all just ideas of some enhancements, and bugs i noticed to the AI

      Attached is a screenshot of the villagers crowded into a doorway

            ProfMobius ProfMobius (Thomas Guimbretiere)
            alexander.shahbazian ASH
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: