Preheat the Oven: Preheat your oven to 350°F (175°C). Grease and flour a 9x13-inch baking dish.
Mix Dry Ingredients: In a medium bowl, whisk together the flour, baking powder, baking soda, cinnamon, nutmeg, cloves, and salt.
Mix Wet Ingredients: In a large bowl, beat the granulated sugar, brown sugar, and vegetable oil until well combined. Add the eggs one at a time, beating well after each addition. Stir in the vanilla extract.
Combine and Fold: Gradually add the dry ingredients to the wet mixture, mixing just until combined. Fold in the grated carrots, crushed pineapple, shredded coconut, and chopped nuts if using.
Bake the Cake: Pour the batter into the prepared baking dish and spread it evenly. Bake for 35-40 minutes, or until a toothpick inserted into the center comes out clean. Allow the cake to cool in the pan on a wire rack.