First, you will need a piece of fruit or a seedling. Next, use your shovel to dig a hole. While facing the hole, open your menu and select the fruit or seedling. For fruit you will see four options (Eat, Bury, Drop, and Cancel), while a seedling offers three (Bury, Drop, and Cancel). Choose "Bury" while facing the hole, and your character will plant it, leaving you with a brand-new tree. Remember to water it once a day during summer or any hot spell so it grows properly.