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

Villager picking up food more than its inventory limit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.18.10.20 Beta, 1.18.10
    • 1.17.30.20 Beta, 1.14.20 Hotfix, 1.13.1, 1.14.1 Hotfix, 1.14.30 Hotfix, 1.14.60 Hotfix, 1.16.100, 1.17.41 Hotfix
    • None
    • Confirmed
    • Multiple
    • 386541

      Steps to reproduce

      Scenario 1
      Fill farmer's inventory with the carrots ( 8 stacks max)
      Let farmer plant 1 carrot in a farmland block
      Farmer now have 7 stacks and 63 carrots in its inventory
      Throw a stack of carrots, make sure farmer pick up

      Scenario 2
      Give a villager 7 stacks and 32 carrots, make sure it picks up
      Now, give it a stack of carrots

      Expected results
      It can only takes number of item out of the stack to its inventory limit

      What happens
      It takes the whole stack - filling its inventory to the max and consumes the rest.
      While farmer planting that freed up some of its 8th slot, able to harvests and picks up more than its inventory limit.

      Note

      Other possible scenario: villager with a full inventory of food sharing other villager, freeing up some of its 8th slot may be able to pick up the whole stack. This is wasting our time of growing, harvesting, and giving our food supply

            eyeth Eyeth
            Votes:
            13 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: