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

Villager and farmer inventory gets corrupted causing farmers to no longer plant crops

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 14w06b, Minecraft 14w21b, Minecraft 14w25b, Minecraft 14w30c, Minecraft 14w34b, Minecraft 1.8-pre1, Minecraft 1.9.2, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.1, Minecraft 1.11.2
    • Windows 7 x86 - Java 32 bit 7r51
    • Community Consensus
    • Creative

      As a village progresses and grows it seems to reach a point where suddenly the ability of the farmers to harvest and plant crops collapses on itself.

      The problem starts off by seeing food on the ground everywhere and eventually farmers will harvest crops but not pick them up. Over time the farms get picked clean until there is nothing left. A check on the villager inventory in NBT Explorer shows that the villagers and farmers are winding up with full inventory slots despite those slots containing 0 items. It seems that once an inventory item is depleted the slot should be opened up again so the villager can once again gather new items. In fact I believe that the AI thinks the slots contain 64 items and this is why the villagers cannot pick anything up - it seems to be a dual problem: the villagers think they have full inventory so they pick nothing up, but, in reality the slots contain nothing so when a farmer gets hit with this bug he cannot plant anything.

      This is especially bad for farmers because if their slots become corrupted they can no longer pick up the items needed to replant the farms (it seems to be mostly related to bread - once the bread is depleted the inventory slot stays occupied and if all 8 slots become like this the farmer can no longer plant crops).

      I have made some screenshots to show the progression of the problem along with an image highlighting the issue as I found it in NBT Explorer - when I spawned a new farmer and gave him 128 seeds he was able to plant them without problem and once the seeds were planted the slots opened up as they should.

      This does not happen when farmers are limited to crops such as carrots and/or potatoes - it happens when they get access to wheat. The assumption is that because harvesting of wheat results in drops of both wheat and seeds and because wheat is crafted into bread somehow this causes the inventory slots to get corrupted.

      This was a fully functional and viable village and now it has collapsed on itself - the only apparent solution to this right now is to kill of all the villagers and start with new ones.

        1. 01.jpg
          632 kB
          Patrick Callahan
        2. 02.jpg
          627 kB
          Patrick Callahan
        3. 03.jpg
          527 kB
          Patrick Callahan
        4. 04.jpg
          450 kB
          Patrick Callahan
        5. 05.jpg
          289 kB
          Patrick Callahan
        6. 2014-05-26_13.01.33.jpg
          1.68 MB
          Patrick Callahan
        7. 2014-05-26_13.09.59.jpg
          1.50 MB
          Patrick Callahan
        8. 2014-11-15_22.04.49.png
          792 kB
          Jack Manley

            jeb [Mojang] Jeb (Jens Bergensten)
            hardcorerobot Patrick Callahan
            Votes:
            38 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: