Solved Chunk Generation

Discussion in 'Plugin Development' started by davidclue, Mar 24, 2021.

Thread Status:
Not open for further replies.
  1. Offline

    davidclue

    Hi, I am working on a custom chunk generator and basically, I want to add vanilla cave generation to my world and in the docs it says you can override shouldGenerateCaves() to enable it. So I put this in my code and neither structures nor caves generate, can anybody help me out here's what I put in my chunk generator class:
    Code:
    @Override
        public boolean shouldGenerateCaves() {
            return true;
        }
        @Override
        public boolean shouldGenerateStructures() {
            return true;
        }
    Also is there any way I could implement custom structures from a file, like a structure file that Minecraft uses with structure blocks in-game to make my life easier for modifying the structures, is the only way to achieve this by creating the structure in the code? Or is there a way to use a file?
     
  2. Offline

    Kars

    Do you have this override in your main class?
    PHP:
    @Override
    public ChunkGenerator getDefaultWorldGenerator(String worldNameString id) {
        return new 
    CustomChunkGenerator();
    }
     
  3. Offline

    davidclue

    Yes

    EDIT: Nvm I guess seems that you cannot have caves generate using that method if you do not fill your entire underground with stone, specifically stone.
     
    Last edited: Mar 25, 2021
Thread Status:
Not open for further replies.

Share This Page