Where does the majority of the mass of a plant come from?

It simply comes from glucose. The glucose is turned into starch, which becomes your mass.

it comes from carbon dioxide...