[Help] Map Generation

Hi, I was working on this, let me try to help you. Try this at each biome you want the change.

"height_base": 29,
  "__comments": {
     "valley_count": "offset of layers from base",
     "step_count": "number of layers",
     "step_size": "size of layer, for foothills and mountains this has to be multiple of 5"
  },
  "plains": {
     "step_size": 1,
     "valley_count": 1,
     "step_count": 1
  },

The key here is that you need to have the top layer at a multiple of 5, else the game crashes. To achieve that I used the height base at 29, cause 29 plus the 1 layer of plains will equal 30. Those 3 (step_size, valley_count and step_count) are the ones that control these things.

If I’m not mistaken, step_size is the size of each layer of plains (like each layer of a mountain has 5 or 10 blocks).
valley_count is how many layers you will have (like in foothills we have 3 or rocky mountains up to 7)
step_count is the amount of steps to reach the other layer.

I only got this working after I read the lua files and figured the math of it.
In your case I would recommend changing the lua files as it will change all biomes, not needing tuning each individually.

2 Likes