This is a simulation of the world generation in Minecraft. there are three steps to the generation: 1. terrain generation 2. structure generation 3. player spawnpoint press space to go to the next phase you can see all the formulas in the code but scaled down because infinite world generation is impossible in scratch :( also can go into the code and alter the sprites to make the generation change, I will be posting just the third step too
Eliotex has a video in which he explains the generation: https://www.youtube.com/watch?v=Mv6GyBmZ9TI 0:00 - 7:55 is where he explains it roughly