When continuously using the command:
/data modify entity @e[type=minecraft:allay,limit=1] Motion set value 0
The Allay will try to throw the matching item at you but instead duplicate it. This appears to continue indefinitely. It also appears to only work with stackable items.