Jump to content

[1.15.2] Custom WorldType Multiple Biome Generation.


Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

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.

  • Create New...

Important Information

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