Villagers have 8 inventory slots, but they are only able to pick up 64 of a particular item at a time. So they can have 8 stacks in their inventory, but only 1 of those stacks can have potatoes, for example. This behavior does NOT occur in Java edition; however, it may be WAI in MCPE, but I don't know for sure so that's why this ticket exists.
Steps to reproduce:
Spawn a villager.
Throw 64 carrots at the villager. The villager will pick up all of the carrots.
Throw another carrot at the villager. The villager will NOT pick it up.
Throw bread, a potato, or beetroot at the villager. The villager WILL pick it up.
Comments 4
Did you know that farmer villagers can hold more things than the rest of the villagers? That is the cause of this "bug". Works as Intended.
@unknown, farmer villagers have the same amount of inventory slots as other villagers... both in MCPE & Java Edition. I don't think you understand what this report is about. It is about how, despite having 8 inventory slots, villagers can only have 1 of the slots containing a specific food item. So they can only have 64 carrots at one time, despite being able to pick up additional items that aren't carrots. This is in contrast to Java Edition behavior, where they can fill their entire inventory with the same item. And so this IS a bug and is NOT works-as-intended, unless someone from Mojang states otherwise.
Bug has been fixed in MCPE version 1.1.0.4