Terrain generation is in lib/terrain.js (and lib/blocks.js for the requisite blocks), could move it to a separate plugin voxel/ideas#46 - flat land? - or https://github.com/voxel/voxel-land could be used, but it is perhaps too sophisticated for a simple example
https://github.com/deathcap/voxel-example/blob/ea5b83190a2d47a5fba0c8d8f8f0d75f200887bb/lib/terrain.js - this terrain is somewhat more interesting than flatland, might be useful as another terrain generator example:

Terrain generation is in lib/terrain.js (and lib/blocks.js for the requisite blocks), could move it to a separate plugin voxel/ideas#46 - flat land? - or https://github.com/voxel/voxel-land could be used, but it is perhaps too sophisticated for a simple example
https://github.com/deathcap/voxel-example/blob/ea5b83190a2d47a5fba0c8d8f8f0d75f200887bb/lib/terrain.js - this terrain is somewhat more interesting than flatland, might be useful as another terrain generator example: