Jump to content

Recommended Posts

Posted (edited)

I mean, everything is void, and also, every structure from every dimension generated in overworld. For example, Nether structures generated in overworld.

Edited by ArianKG
Posted

I did that, but nothing happened:

package com.kg.kgforge.factory;

import java.util.Optional;
import net.minecraft.util.registry.Registry;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.gen.ChunkGenerator;
import net.minecraft.world.gen.DimensionSettings;
import net.minecraft.world.gen.FlatChunkGenerator;
import net.minecraft.world.gen.FlatGenerationSettings;
import net.minecraft.world.gen.settings.DimensionStructuresSettings;
import net.minecraftforge.common.world.ForgeWorldType;

public class KGFactory implements ForgeWorldType.IChunkGeneratorFactory {
    @Override
    public ChunkGenerator createChunkGenerator(Registry<Biome> biomeRegistry, Registry<DimensionSettings> dimensionSettingsRegistry, long seed, String generatorSettings) {
        return new FlatChunkGenerator(new FlatGenerationSettings(new DimensionStructuresSettings(Optional.empty(), DimensionStructuresSettings.DEFAULTS), biomeRegistry));
    }
}
Posted

now you do exactly, what the first constructor does
in other word you haven't changed anything

take a look at the DimensionStructuresSettings#DEFAULTS copy the logic,
and do the same thing for the Structures you want to spawn

Posted

then copy the DimensionStructuresSettings#DEFAULTS into a new Map,
then remove the Structures which shouldn't generate and then use this Map in your DimensionStructuresSettings

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.