Jump to content

How can i add multiple biomes to one worldType?


Schleim_time

Recommended Posts

for only having one biome in the Type its very simple :

Quote

    @Override
    public BiomeProvider getBiomeProvider(World world) {
        return new BiomeProviderSingle(Modbiome.WASTELAND);
    }

 

i tried now that:

 

public BiomeProvider getBiomeProvider(World world) {
        BiomeProvider bp = WorldType.DEFAULT.getBiomeProvider(world);
        bp.allowedBiomes.clear();
        bp.allowedBiomes.add(Modbiome.DRYEDLAKE);

        bp.allowedBiomes.add(Modbiome.WASTELAND);
        return bp;
    }

 

    public BiomeProvider getBiomeProvider(World world) {

        BiomeProvider bp =new BiomeProviderSingle(Modbiome.WASTELAND);
        bp.allowedBiomes.add(Modbiome.DRYEDLAKE);
        return bp;
    }

i tried that but the upper one will generate normal biomes and the lower one only my wasteland biome, it seems that the list dont affect the biomes that will spawn, how to change the biomeprovider to spawn both biomes?

Link to comment
Share on other sites

1 hour ago, Schleim_time said:

how to change the biomeprovider to spawn both biomes?

Create your own BiomeProvider instance.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

I created a genLayerCustom for multiple biomes

Quote

public GenLayerWasteland(long p_i45560_1_, GenLayer p_i45560_3_, WorldType p_i45560_4_, ChunkGeneratorSettings p_i45560_5_)
    {
        super(p_i45560_1_);
        this.parent = p_i45560_3_;

        for(BiomeType type : BiomeType.values()) {
            int desertIdx = type.ordinal();
            
            if (biomes[desertIdx] == null) biomes[desertIdx] = new ArrayList<BiomeEntry>();
            biomes[desertIdx].add(new BiomeEntry(Modbiome.DRYEDLAKE, 10));
            biomes[desertIdx].add(new BiomeEntry(Modbiome.WASTELAND, 30));
        }
        
        if (p_i45560_4_ == WorldType.DEFAULT_1_1) {
            this.settings = null;
        }
        else {
            this.settings = p_i45560_5_;
        }
    }

i only added my biomes but i still have rivers and oceans :C

 

how is the way to only get my 2 biomes in one world type???

Link to comment
Share on other sites

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.