this will generate a random line of varying roughness, then adds in blocks around it. it does take quite a long time to run the later stages. it works by drawing a straight line and then cutting it in half, and changing the new two points, and then cuts them in half etc. then it fills in the blocks. Then it puts in trees, different for each of the three biomes. You can now place blocks and i am planning to make a survival mode in version 3! (after some more updates in v2) you can use this to make your own game if you like as long as i get partial credit.