Whilst not strictly "villagers", the functionality is essentially the same.
Allays have a single slot for matching items. The items only need to match the type they are holding, and can have differing nbt data (different enchantments, names etc.) but must obviously be able to stack with existing items in the slot to be able to be picked up.
Currently they will wait staring at the dropped item, and perhaps never return to the player. Would need to test what happens when they find an item which matches but cannot stack with items in their inventory.
Whilst not strictly "villagers", the functionality is essentially the same.
Allays have a single slot for matching items. The items only need to match the type they are holding, and can have differing nbt data (different enchantments, names etc.) but must obviously be able to stack with existing items in the slot to be able to be picked up.
Currently they will wait staring at the dropped item, and perhaps never return to the player. Would need to test what happens when they find an item which matches but cannot stack with items in their inventory.