Endless 3d map with chunks?

So, I’ve been thinking about making a simple project where you run untill something happens, bla bla bla.

I was wondering how I can make it so a new piece of map or some randomly spawned objects makes the map infront of the player procedurally. I’ve tried some solutions but I can never get them to work correctly.

If anyone feels like helping me with this little piece it would be golden ^^

Depends on what you want to do. Do you ever go backwards and need the world to be exactly the same or is it more of an endless runner style where you just go forever?

Sorry for the delay been away for the week, I solved it myself in the car (kek)