Minecraft wiki entry for Villager, associated text: If a villager has enough food in one inventory stack (6 bread or 24 carrots, potatoes, beetroots, or 18 wheat for farmers only) and sees a villager without enough food in one inventory stack (3 bread, 12 carrots, 12 potatoes, or 12 beetroots for non-farmers; 15 bread, 60 carrots, potatoes, or beetroot, or 45 wheat for farmers), the villager may decide to share food with that villager.