Biomes
Biomes are regions with differing foliage, terrain etc.
NOTE
The seed used throughout all of these examples is 3257840388504953787, the seed behind pack.png.
Biome List
There exist 13 distinct biomes in Beta 1.7.3. They each have unique properties, mainly if they can show rain particles, if it can snow in them, and what their respective foliage and map colors are.
| Name | Top Block | Filler Block | Rain | Snow | Foliage Color | Map Color |
|---|---|---|---|---|---|---|
| Rainforest | Grass | Dirt | ✅ | ❌ | #1FF458 | #08FA36 |
| Swampland | Grass | Dirt | ✅ | ❌ | #8BAF48 | #07F9B2 |
| Seasonal Forest | Grass | Dirt | ✅ | ❌ | #4EE031 | #9BE023 |
| Forest | Grass | Dirt | ✅ | ❌ | #4EBA31 | #056621 |
| Savanna | Grass | Dirt | ✅ | ❌ | #4EE031 | #D9E023 |
| Shrubland | Grass | Dirt | ✅ | ❌ | #4EE031 | #A1AD20 |
| Taiga | Grass | Dirt | ✅ | ✅ | #7BB731 | #2EB153 |
| Desert | Sand | Sand | ❌ | ❌ | #4EE031 | #FA9418 |
| Plains | Grass | Dirt | ✅ | ❌ | #4EE031 | #FFD910 |
| Ice Desert | Sand | Sand | ❌ | ✅ | #C4D339 | #FFED93 |
| Tundra | Grass | Dirt | ✅ | ✅ | #C4D339 | #57EBF9 |
| Hell | Grass | Dirt | ❌ | ❌ | #4EE031 | #FF0000 |
| Sky | Grass | Dirt | ❌ | ❌ | #4EE031 | #8080FF |
Lookup table
A 64x64 lookup table is generated to more quickly calculate the appropriate biome to use.
First we need to apply some of the temperature to the humidity.
Then we determine the actual biome for that combination of temperature and humidity values, in a range from 0.0 to 1.0 on each axis.
If mapped to an image, using the foliage/map colors, we get this.
| Foliage Colors | Map Colors |
|---|---|
Temperature is X, Humidity is Y. Range is from 0 to 63 (or 0.0 to 1.0) on both axes. Notch drew this graph back in 2011.
Biome Noise
The function which determines what biomes are used in a chunk is relatively simple. It mainly uses 3 instances of octaved simplex noise.
Initialization
The climate noise generators each get their own, independent PRNG object, initilizated with its own seed.
| PRNG | Seed |
|---|---|
| Temperature | |
| Humidity | |
| Weirdness |
Then, the noise generators are initialized.
| Generator | Octaves | Base Scale (x,z) | Octave Frequency Factor |
|---|---|---|---|
| Temperature | 4 | (0.025, 0.025) | 1/4 |
| Humidity | 4 | (0.05, 0.05) | 1/3 |
| Weirdness | 2 | (0.25, 0.25) | 10/17 |
The base scale and octave frequency factor remain the same throughout biome sampling, meaning that the only value that changes dynamically is the sampled position.
Sampling
The current Chunk Coordinate, scaled to Block-Space (multiplied by 16), is passed in, alongside how many values the generator should return (16x16 for one chunk) and a scaling factor.
Each of these return a 16x16 array of 64-bit floating point numbers, which're that chunks' initial temperature
| Temperature | Humidity | Weirdness |
|---|---|---|
Temperature, humidity and weirdness values from chunk -1,-1 to 1,1. These values are in the 0.0 - 2.0 range.
The final biomes for each column are determined by iterating over the 16x16 array and performing the following actions for each entry.
This gives you the temperature (0.0 to 1.0 value into the 64x64 biome LUT we calculated before.
Besides being used to determine the biome, temperature is used a few times throughout the overworld generation to determine where snow and ice are placed, so at least it must be kept past this point.
Both temperature and humidity must be kept for the accurate coloration of foliage.
The final biome map can look something like this over a 3x3 chunk area.
| Foliage Colors | Map Colors |
|---|---|
Due to being modified, the temperature and humidity now also contain different values that were written back to the temperature and humidity arrays.
| Temperature | Humidity | Weirdness |
|---|---|---|
Temperature, humidity and weirdness values from chunks -1,-1 to 1,1 after being modified by this function. These values are in the 0.0 - 2.0 range. Weirdness is not affected.
This is then passed to the Overworld Generator.
Further reading
Check out the page for the Overworld Generator.