Demo Video

https://www.youtube.com/watch?v=hTIcp9vw0X4

Introduction

Made a simple random world generation system in Minecraft

Technology

Options for World Generation

Untitled

Implementation (High level)

  1. Generate the base of the world based on world width and length
  2. Randomly choose points in the world as the centre of each mountain
    1. Randomly choose a number between 1 to max mountain height to act as the height of the mountain
    2. Build the mountain from top to bottom with randomisation (how should it be expanded and by how many units)
  3. Randomly choose points as the root of the tree
    1. Randomly choose the height of the tree

      <aside> 💡 The minimum height of the tree is fixed because the tree’s shape is to a certain extent fixed

      </aside>

    2. Randomise the corner leaf

<aside> 💡 For detailed implementation, check out the repository below (WorldGenerator.cpp and WorldGenerator.h) .

</aside>

Repository

There is the repository if you are interested in the complete implementation

https://github.com/leonCTL12/MC_WorldGeneration.git