How to make a randomly generated mountains with blocks?

Hi! I want to make a randomly generated mountains using only default cubes. They aren’t scaled at all.
I’m making a game where platform is generated with randomly colored blocks with specified width and length.

if It’s possible to make it with my current method to generated platform, it would be really helpful :slight_smile:

A common technique is to use a heightmap. Calculate the color value at a specific spot to determine how many blocks to stack to simulate elevation.

If you want random, then you can generate the heightmap with perlin noise.