To answer you question, The two main ingredients are Heat and coolness.
Rock layers form when settlements build up over time they usually have to go through pressure and compaction/cementation before this happens
Im sorry, what? The question you asked isn’t exactly a “question” nor does it have proper grammar, Try and repost the question with proper grammar and a reall question and ill try to answer!
Thanks! Hope this helps:)