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

I got it so it spawns a custom biome in 1.15.2. I have a custom ChunkGenerator, MultiBiomeProvider, and GenerationSettings. Although I'm trying to get my MultiBiomeProvider to be able to provide multiple biomes. How do I accomplish this? Or does anyone already have a premade code to add these in?

The simple answer is to override getNoiseBiome in your BiomeProvider class, and return the biome to be generated at the x/(y?)/z chunk coordinates provided. If you look at the vanilla OverworldBiomeProvider, it uses a Layer class to determine which biome this is, which is built in the LayerUtil class.

 

Unfortunately, there is very little documentation, and no tutorials for any of this (at least that I've seen googling and such), so you're more or less on your own figuring out how it works. I started a thread for discussion about pretty much this same subject here, if you'd like to check it out: https://forums.minecraftforge.net/topic/86253-1152-layerutil-layers-traits

 

I've been tinkering here and there, trying to figure out how it works, and eventually if I end up with any sharable code, I'll likely post a link to it in that thread. Slow going, there's a lot of math going on in there that I haven't figured out the purpose of yet, and magic numbers littered all over the place.

  • Author

Thank you so much, I'll def. keep an eye out for that forum post for when/if you post a sharable multiple biome provider code.

 

Edit*: I'm also probably gonna look at some more of the forge source code to see how the world type generates multiple biomes.

Edited by Stanlyhalo

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.