The energy in a forest ecosystem (and all other ecosystems) comes from the sun. There are three main types of organisms that energy flows through – producers, consumers, and decomposers. Plants are producers. Even though the sun provides energy to the forest, only plants can use that energy.