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.