That depends on the type of magma (there are more than one type), they are formed by partial/eutectic melting of either continental crustal rocks or mantle material and will therefore contain different minerals.
The earth's core principal ingredient is magma.
Sausage is the main ingredient.
Flour ( pasta ) is the main ingredient
The main ingredient in yoghurt is milk.
The shake's main ingredient is milk.
Beijing food does not have a main ingredient. Anything could be the main ingredient. It depend on the food.
Sugar is the main ingredient of candy
Cabbage is the main ingredient in sauerkraut.
Main ingredient is starch
The main ingredient in ham salad is ham.
The main ingredient in pasta sauce is tomatoes.
The main ingredient for biryani is the rice/chavel. OR if the biryani is vegetarian then the main ingredient is the vegetables OR if the biryani is chicken then the main ingredient is the chicken.