The Bonsai Pots datapack adds a single new block, the Bonsai Pot. Based on an old mod, they allow you to grow various crops and trees in a single block. It automatically will harvest, and can be automated easily using a hopper.