What dictates the maximum extent to which a star can forge new elements?

Answer

Its initial mass

The capacity of a star to create new elements is intrinsically tied to its initial mass, as greater mass provides the necessary gravitational power and sustained core temperatures for higher-level fusion stages.

What dictates the maximum extent to which a star can forge new elements?
ElementastronomyProductionstar