Preheat your oven to 350°F (177°C).
Line an 8-inch square baking pan with parchment paper, leaving an overhang on two sides to act as handles for easy removal.
In a large bowl, stir together all the base until well combined. Press the mixture firmly and evenly into the bottom of the prepared pan. Par-bake for 10 to 12 minutes, until the top is just lightly browned.
Remove from the oven and reduce the oven temperature to 300°F (150°C).
While the base bakes, prepare the coconut cream layer.
In a large mixing bowl, whisk the erythritol, coconut cream, melted oil, egg yolks, and vanilla until the mixture is completely smooth.
Pour the coconut cream mixture evenly over the warm, par-baked base.
Sprinkle the chopped macadamia nuts over the cream layer, followed by the shredded coconut.
Return the pan to the oven and bake for 25 minutes, or until the edges are golden brown and the center is set.
Allow the bars to cool completely in the pan on a wire rack for at least 1 hour.
Then, transfer the pan to the refrigerator to chill for another hour. This step is crucial for the bars to set properly.
Once fully chilled and firm, use the parchment paper handles to lift the block from the pan.
Place on a cutting board and slice into 12 bars.