Heat the coconut oil in a large pot over medium heat. Sauté the garlic, scallion, and thyme in the coconut oil for about 2 minutes.
Add the drained and rinsed gungo peas to the pot and stir for about 1 minute.
Add the coconut milk and water to the pot. If using the optional powdered coconut milk, dissolve it in the measured 4.2 cups of water before adding it to the pot.
Add the salt, Jamaican all-purpose seasoning, allspice, and whole scotch bonnet pepper, and stir to combine. Bring every thing to a boil and allow it to boil for 8 minutes. Taste the liquid and adjust the seasonings as needed. The liquid should taste slightly salty, as the addition of the rice will balance out the flavor.
Add the rinsed rice and salted butter to the pot, and stir. Bring everything back to a boil. Once the rice begins to absorb the liquid, reduce the heat to low, cover the pot with a fitted lid, and allow the rice to cook undisturbed for another 30 minutes.
After 30 minutes, turn off the heat and check the rice. If the grains haven't opened up sufficiently and need additional moisture, add some of the hot water on standby. Cover the pot again and allow the rice to continue steaming for another 15 minutes on the still-hot, but turned-off, burner.
Once the rice is fully cooked, remove the scotch bonnet pepper, thyme stems, and whole scallions (if applicable). Gently fluff the rice with a fork and serve warm.