if you're asking how plants get or "gain" food, plants create their own food from nutrients.. their roots take up their water and also minerals from the ground and the leaves absorb carbon dioxide also known as CO2,the sun converts all that food by its natural sunlight.