Archived Need Help on Coding a Biome

TerasologyFTW

New Member
I set up Terasology on Eclipse! (Thanks Josh!) I just need a tutorial on how to code a biome, because I want to create a mod that adds more biomes. Thanks! :)
 

Nym Traveel

Active Member
Contributor
Art
World
Yeah, I'm working on worldgen right now - unfortunately progress is slow (but steady ;) )

As for biomes: Current plan is to overhaul the biome system completely. So no more "classic" biomes but flora and fauna driven by arbitrary set enviromental influences :)
(Not really much physical existing yet despite some unreadable notes on my pad :O )
 

Cervator

Org Co-Founder & Project Lead
Contributor
Design
Logistics
SpecOps
Terasology\src\main\java\org\terasology\world\WorldBiomeProviderImpl.java method getBiomeAt is where existing biomes get determined and theoretically you could add another one there. However, like Nym Traveel points out, we're working on a better "world map" generation step that'll be able to divvy out biomes better, including via mods.

Then you can look at Terasology\src\main\java\org\terasology\world\generator\core\PerlinTerrainGenerator.java for some inspiration in seeing how the current biomes matter when it comes time to place actual blocks.

Rather than modify existing code (other than improving the framework/engine code itself) it'll be better to add new generators you can select at world create time than make any substantial changes to current generators :)
 
Top