What must a star possess, specifically regarding heavier elements, to form rocky planets?

Answer

Sufficient metallicity

Stars need heavier elements, referred to as 'metals' by astronomers (anything heavier than helium), to form rocky planets in the first place.

What must a star possess, specifically regarding heavier elements, to form rocky planets?
astronomystarsexoplanetslifeHabitability