This is a mod that adds a machine that will harvest and replant all wheat, beetroot, carrot or potatoes in a row after a lever is pulled. The harvested crop is placed into a chest and the soil is replanted automatically.
To construct the machine, you will need a redstone block, lever, and a chest. See video: