Combine the cornstarch, 1/4 cup coconut milk and yolks in a bowl and set aside.
Combine 2 cups of coconut milk and sugar in a pot and bring to a boil. Slowly temper boiling coconut milk and sugar into the yolk mixture and whisk quickly until thick and smooth.
Remove from heat and stir in vanilla, coconut oil and shredded coconut.
Pour into plastic shot glasses until glasses are half full. Chill to set.