How do you make a procedurally generating part system?

May want to take a look at this Infinite Terrain Plugin. You can break it down and see how it all works.