Jump to content

How does cave generation work?


Recommended Posts

Pretty much as the subject.

My idea is to have ores spawn roughly as they would do in real life - for instance coal would occur in sheets, and have natural caves with lots of flowing water in them. Iron/copper/tin would be roughly scattered in plains biomes, and therefore quarrying or strip mining would be the most efficient way to gather them. Gold and silver would sit on river beds and under mountains, and diamonds would spawn along the walls of a cave within a mountain (so actually at ground level)

Would editing minecraft's terrain generation manage this, and where would I begin to mess around with all the code?

Link to comment
Share on other sites

Looks like the one you need to start with is BiomeDecorator.java , I only took a which look at things.

However, tekkit uses some forge classes to generator many ores, like copper, tin, silver. So you need to change how it generates its ores as well.

The actual caves themselves are generated after all the ore/dirt/stone is, and simply delete blocks. Its an entirely separate piece of code.

Link to comment
Share on other sites

Looks like the one you need to start with is BiomeDecorator.java , I only took a which look at things.

However, tekkit uses some forge classes to generator many ores, like copper, tin, silver. So you need to change how it generates its ores as well.

The actual caves themselves are generated after all the ore/dirt/stone is, and simply delete blocks. Its an entirely separate piece of code.

So you're saying that you should totataly rewrite the entire code for world generation?
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...