Free an allay and give it a sample item
Look for cages near bandit outposts and prison rooms in forest mansions; allay is not available in every building. Give out one cheap item with the use button. You can pick up the sample with your free hand. Reference: Java 1.19: allay rules.
Throw in five wheat and seeds separately. With a sample of wheat, the assistant will bring the wheat, but leave the seeds. He doesn't cut plants or take things out of chests.
Set a drop-off point
note block is remembered for 30 seconds after the note is heard. Repeat the sound before this period expires. A jukebox with a record does not create such a point.
Place a note block near the fenced receptacle of funnels directed into the chest. Play a note manually and watch for five items: if they fall behind the receiver, move the block or expand the collection. Only then connect the watch. This is a tuning stand, not a universal farm size.
To connect the receiver to the chest, the following instructions will be useful: Hoppers: send items to the right container.
Duplicate an allay with one shard
Insert the record into the jukebox. When allay is dancing, give him an amethyst shard: a second one will appear. A second parent is not needed; both wait 5 minutes until the next duplication. The new assistant is given a sample separately.
note block: 8 boards around redstone. jukebox: 8 boards around the diamond. Don't mix up the central ingredients.
Planting layout and harvest maturity are discussed in detail here: Your first wheat farm: water, farmland and harvesting.

