You literally can’t it doesn’t show items or picks up items that are already on the ground as long as that is the same item it was given first
If you give an allay a wheat and then trap it in a wheat farm and break all the crops without picking them up, the allay will collect the wheat already there, not dupe it