Immersive Geology

Immersive Geology

14.6k Downloads

World Generation - Structure Generation

muddykat-tech opened this issue ยท 0 comments

commented

Structure Generation

Completion Requirements
Structure Generation is a more general way to generate Small Ore Chunks Near exposed cliffs and in other rocky biomes, with a general Structure Generation Script, we can easily add to the list of generated decorations for each biome. This script should allow us to generate any structure that fits within one single chunk fairly easily.

Example Functions to think about:

IGWorldGeneration.generateStructure(IGStructure structure, float frequency, List<Biome> allowedBiomes, boolean generateOnSurface, int maxGenerationHeight, int minGenerationHeight);
//the generateOnSurface boolean is a check to only allow it to generate in a spot with a clear view of the sky. This is still affected by maxGenerationHeight which will allow us to control if it can spawn on top of 'cliffs' or not.

Code Suggestions
Structures should generate close to or at the center of a chunk if a structure generates in more then one chunk, it will cause cascading world generation, which in turn can cause world generation lag.