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

At the moment I can only figure out how to add one biome to my custom world type via: 

 

public class worldMediterranean extends WorldType {
  
	public worldMediterranean() {
		super("Respublica");
			
	}
	
	@Override
	public BiomeProvider getBiomeProvider(World world){
		
		
		return new BiomeProviderSingle(modBiomes.LATIUM);
		
	}	
}

 

However I cannot figure out how to make the custom world type have several biomes that are only my custom biomes. Ive looked into the GenLayer and GenLayerBiome but those classes are so confusing as to what they are exactly doing. Ive looked around the githubs of choonster, the biomeoplenty github and other to try and grasp how to do it but ive come up short. If anyone could give a straightforward method it would be appreciated.

You're confusing the biome with the biome provider. A BiomeProvider has a getBiome() method which returns the biome for a given BlockPos. However, you've used a BiomeProviderSingle which always returns the same biome. So instead you should use a general BiomeProvider and @Override the the getBiome() method to provide the biomes that you want. 

 

In other words, the WorldType provides the BiomeProvider which provides the Biome instances.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

  • Author

When looking at BiomeProvider.getBiome it appears to be a single return value from 'Biome' so how would that be used for multiple biomes?

2 hours ago, daruskiy said:

When looking at BiomeProvider.getBiome it appears to be a single return value from 'Biome' so how would that be used for multiple biomes?

Right, it only returns one biome but it returns it based on the BlockPos you pass to the method. So you return different biomes based on the position.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.