Walking through the world you might encounter some bean plants, breaking them will give you some beans that you can then replant to get more. You can either craft Bean Stew out of it which is slightly better then mushroom stew on the food side or craft them into Lesser Magic Beans, planting these will cause a bean stalk to emerge that will continue to grow till it hits a block. You can also quickly climb on it.
If you find a Nature Core on your way the plant chest next to it will always contain a magic bean. A magic bean acts like a lesser magic bean but it will continue to grow till the height limit breaking any blocks in its way. On top of it will also be a bean pod that drops random amounts of beans,iron,gold,diamonds and emeralds when you break it.