Plants eaten by herbivores would be excreted later by the consumer, carnivores help recycle the minerals in the bodies of herbivores, scavengers consume the carcasses transferring some minerals to them, the minerals in plants are returned to the soil by the bacteria and fungi that consume fecal matter, some minerals escape and end up in the ocean