Random terrain generator in blocks

Hi guys, I want to make a game called “Dudecraft”. It’s a minecraft made by me.
I need a script that makes a random terrain generation in blocks.
Can you help-me?

Hi @DudeDay012,

You could use terrain from heightmap example as a starting point. Instead of generating a model from the heightmap points, use them to position your blocks. That way you will get a nice minecraft like terrain, just don’t forget to enable batching to avoid killing performance.

https://developer.playcanvas.com/en/tutorials/terrain-generation/