Preheat your oven to 350°F (175°C). Line a 9x13-inch baking pan with parchment paper.
In a blender, blend 8-10 fresh pandan leaves with 2 cups of water. Strain the mixture through a fine-mesh strainer to extract 1¾ cups of pandan juice.
In a large mixing bowl, whisk together the glutinous rice flour, sugar, baking powder, and salt.
In another bowl, combine the coconut milk, pandan juice, and eggs. Whisk until smooth.
Gradually add the wet ingredients to the dry ingredients, whisking until a smooth batter forms.
Pour the batter into the prepared baking pan. Smooth the top with a spatula if needed.
Bake for 55-60 minutes, or until the mochi is set and lightly golden around the edges.
Allow the mochi to cool completely in the pan. Sprinkle with coconut flakes, if desired, before slicing into squares.
Serve and enjoy! Store leftover mochi in an airtight container at room temperature for up to 2 days.