In a dry pan, toast the coconut, poppy seeds, dried red chilies, coriander, cumin, fennel, cloves, cinnamon, peppercorns, star anise, and nutmeg until fragrant and golden. Add a tablespoon of oil and continue roasting for a minute. Cool slightly, then grind into a smooth paste with a splash of water.