Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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?

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.

  • Author
13 hours ago, Animefan8888 said:

Create your own BiomeProvider instance.

I dont know what to override in there everything i tried dont worked

  • Author

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???

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.