Minecraft wiki entry for The_Wild_Update, associated text: "Allays are not item duplicators, they pick up items nearby on the floor that are the same item it has been given. So you could give it a dirt block, then it finds dirt blocks that are dropped, collect them, then return and drop them to you or a note block you've set up." – @kingbdogz on Twitter, October 12, 2021