Jump to content

How do I create a superflat world that is more than 3 blocks deep ?


Go to solution Solved by xXx_Ape_xXx,

Recommended Posts

Posted

I'm using a superflat world to come up with and build a few houses designs but when I wanted to try to make a cellar, I noticed my world was 3 blocks deep. I looked in the world generation settings but saw no options there.

Is there any way to do that or do I have to generate a "regular" world for that ?

  • Like 1
Posted (edited)
1 hour ago, Etwahl said:

I'm using a superflat world to come up with and build a few houses designs but when I wanted to try to make a cellar, I noticed my world was 3 blocks deep. I looked in the world generation settings but saw no options there.

Is there any way to do that or do I have to generate a "regular" world for that ?

Good question. I wanted to do exactly the same thing last week, so this is fresh in my head.

Mod. 

I haven't tested this on the current version, but it should still work fine.
Eg: https://mods.vintagestory.at/morecreativeworldlayers

Edited by Professor Dragon
Posted (edited)

You can easily make a custom layers.json file and replace the one found in "assets/creative/worldgen" folder.

 

{
  "code": "superflatworldgen",
  "blockCodes": [
    "rock-granite",          // bottom layer
    "rock-granite",          // more stone
    "soil-medium-normal",    // dirt
    "soil-medium-normal",    // more dirt
    "soil-medium-normal",    // even more dirt
    "soil-medium-normal"     // surface layer
  ]
}

 This will generate a 6 layer thick world, with two layers of granite rock at the bottom, then 4 layers of soil.

This file can have as many layers as you like, with a limit of the world height (usually 256). Go wild..

 

EDIT:  Remove the comments, they are just there for explanation of what direction it builds the layers!!

Edited by xXx_Ape_xXx
  • Like 1
  • Amazing! 1
Posted

Thank you all for the replies.

5 hours ago, xXx_Ape_xXx said:

You can easily make a custom layers.json file and replace the one found in "assets/creative/worldgen" folder.

 

{
  "code": "superflatworldgen",
  "blockCodes": [
    "rock-granite",          // bottom layer
    "rock-granite",          // more stone
    "soil-medium-normal",    // dirt
    "soil-medium-normal",    // more dirt
    "soil-medium-normal",    // even more dirt
    "soil-medium-normal"     // surface layer
  ]
}

 This will generate a 6 layer thick world, with two layers of granite rock at the bottom, then 4 layers of soil.

This file can have as many layers as you like, with a limit of the world height (usually 256). Go wild..

I have tried your solution and it works. However, when I attempt to make a lot of layers I get a weird, unfinished world generation (pictured below).

Here is the custom file I used. I went over it and spotted no mistakes so I feel like it is an issue related to the number of layers I want to generate.

{
  "code": "superflatworldgen",
  "blockCodes": [
    "creativeblock-32",         // 3rd warning layer before void. 1 Layer before void. Red coloured block. Last layer.
    "creativeblock-34",         // 2nd warning layer before void. 2 Layers before void.
    "creativeblock-34",         // 2nd warning layer before void. 3 Layers before void. Orange coloured block.
    "creativeblock-36",         // 1st warning layer before void. 4 Layers before void.
    "creativeblock-36",         // 1st warning layer before void. 5 Layers before void. 
    "creativeblock-36",         // 1st warning layer before void. 6 Layers before void. Yellow coloured block.
    "rock-obsidian",        // Last layer of obsidian, 10 in total
    "rock-obsidian",        // Obsidian
    "rock-obsidian",        // Obsidian
    "rock-obsidian",        // Obsidian
    "rock-obsidian",        // Obsidian
    "rock-obsidian",        // Obsidian
    "rock-obsidian",        // Obsidian
    "rock-obsidian",        // Obsidian
    "rock-obsidian",        // Obsidian
    "rock-obsidian",        // First layer of obsidian
    "rock-basalt",              // Last layer of basalt, 10 in total
    "rock-basalt",              // Basalt
    "rock-basalt",              // Basalt
    "rock-basalt",              // Basalt
    "rock-basalt",              // Basalt
    "rock-basalt",              // Basalt
    "rock-basalt",              // Basalt
    "rock-basalt",              // Basalt
    "rock-basalt",              // Basalt
    "rock-basalt",              // First layer of basalt
    "rock-chert",           // Last layer of chert, 10 in total
    "rock-chert",           // Chert
    "rock-chert",           // Chert
    "rock-chert",           // Chert
    "rock-chert",           // Chert
    "rock-chert",           // Chert
    "rock-chert",           // Chert
    "rock-chert",           // Chert
    "rock-chert",           // Chert
    "rock-chert",           // First layer of chert
    "rock-conglomerate",        // Last layer of conglomerate, 10 in total
    "rock-conglomerate",        // Conglomerate
    "rock-conglomerate",        // Conglomerate
    "rock-conglomerate",        // Conglomerate
    "rock-conglomerate",        // Conglomerate
    "rock-conglomerate",        // Conglomerate
    "rock-conglomerate",        // Conglomerate
    "rock-conglomerate",        // Conglomerate
    "rock-conglomerate",        // Conglomerate
    "rock-conglomerate",        // First layer of conglomerate
    "rock-andesite",        // Last layer of andesite, 10 in total
    "rock-andesite",        // Andesite
    "rock-andesite",        // Andesite
    "rock-andesite",        // Andesite
    "rock-andesite",        // Andesite
    "rock-andesite",        // Andesite
    "rock-andesite",        // Andesite
    "rock-andesite",        // Andesite
    "rock-andesite",        // Andesite
    "rock-andesite",        // First layer of andesite
    "rock-granite",             // Last layer of granite, 10 in total
    "rock-granite",             // Granite
    "rock-granite",             // Granite
    "rock-granite",             // Granite
    "rock-granite",             // Granite
    "rock-granite",             // Granite
    "rock-granite",             // Granite
    "rock-granite",             // Granite
    "rock-granite",             // Granite
    "rock-granite",             // First layer of granite
    "rock-limestone",       // Last layer of limestone, 10 in total
    "rock-limestone",       // Limestone
    "rock-limestone",       // Limestone
    "rock-limestone",       // Limestone
    "rock-limestone",       // Limestone
    "rock-limestone",       // Limestone
    "rock-limestone",       // Limestone
    "rock-limestone",       // Limestone
    "rock-limestone",       // Limestone
    "rock-limestone",       // First layer of limestone
    "soil-medium-none",         // Last layer of dirt, 5 in total
    "soil-medium-none",         // Dirt
    "soil-medium-none",         // Dirt
    "soil-medium-none",         // Dirt layer (Regular Medium Soil)
    "soil-medium-normal"        // Surface layer (Grassy Medium Soil)
  ]
}

It it supposed to generate a layer of Grass and 4 layers of dirt, follower by 10 thick layers of limestone, granite, andesite, conglomerate, chert, basalt and obsidian.

Finally, I generate a layer of Creative Blocks, to mark the void approaching. It's 3 layers of Yellow, 2 layers of Orange and 1 layer of Red.

world gen problem.png

  • Solution
Posted

Might be a limit for how many layers there can be, I didn't look that much into the code for chunk layer generation. Try reducing your layers to below 32, since that seem to be the amount that do get generated.

  • Thanks 2
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.