Noise generator

Minecraft uses several different types of noise generators, specifically those making use of gradient noise, for the generation of terrain alongside other features.

Specifications
Noise generators can be defined by the following parameters:


 * Octaves: The amount of different copies of this noise generator, each scaled down from the last by a factor of 2. Fewer octaves result in an unnatural appearance. More octaves added with lacunarity result in a rougher fractal appearence reminiscent of proper terrain.
 * Frequency:
 * Factor: A value the noise is multiplied with after processing (lacunarity). To make the set of values more or less extreme.
 * Offset: A value added to the noise after processing. To shift the resulting set of values by this value.

These values are displayed and calculated differently in the code. Vanilla simply applies a "scale" value (frequency*(2^octaves)), defined as how much the noise generator increments per sampling (every four blocks).

Terrain noise generators
These are used for defining the shape of generated terrain itself.

A table of default/hardcoded settings, as well as values resulting from these, is as follows. Note that not all of these are used in vanilla, but are instead used by mods such as CubicWorldGen.

Low noise
Low noise is one of the two main noise generators used for defining terrain shape. This noise generator, which uses Perlin noise, is one which is actually used as a heightmap.

High noise
This is effectively identical to low noise, but is only used when selector noise is above a given threshold value.

Selector noise
Selector noise is a third important noise generator used for terrain generation. Selector noise, using Perlin noise, dictates which of either low noise or high noise is used for generating terrain at a given position - above 1 high noise is used, below 0 low noise is used, and values between 0-1 are linearly interpolated between the low and high noise values.

Depth noise
A rather insignificant noise generator, this uses Perlin noise to make terrain slightly more nuanced in general. The possible values it can have are tightly clamped to a thin set of values. It is also only defined for the X and Z axes.

Other noise generators
These noise generators are oriented to the generation of other world features.

Biome fill noise
Upon generation, a top layer block (e.g. dirt, sand) will be placed to a certain thickness to replace the bare stone heightmap. The thickness of this dirt relies on a noise generator in vanilla.

Biome distribution
Ocean biome variants are distributed using a Perlin noise function.

The Multi Noise Biome Source (used for the nether) also uses perlin noise.

Swamp noise
Swamps use a noise generator for two purposes: for the generation of marshy areas composing a mixture of water and grass blocks, and for the variation of the two different grass colors used.

Flower noise
The placement of flowers, most prominently in flower forest biomes but possibly also elsewhere, is controlled via a noise function. Flowers generated naturally will be in different positions from those grown via bone meal, and those grown via bone meal may not be seed dependent.

Removed noise generators
These are no longer used in the current version of the game.

Floating island carver noise
During Indev, floating islands were produced by using an extra noise generator to carve out air into existing terrain.

Scale noise
A noise generator that appears to only have effects in hilly areas, with little to no impact on flat low-lying regions. Its effects are now handled by biomes rather than noise generation.

Tree distribution noise
A noise generator existed in Infdev which presumably dictated the placement of trees in the world. This was likely removed in Alpha v1.2.0 with the introduction of biomes.

Sand noise
A noise generator was used for generating the surface block used for low-altitude areas commonly characteristic of beaches. This noise generator would determine if a given area would use sand as the surface block or not. This was probably removed in Beta 1.8.

Gravel noise
Effectively identical to sand noise and used in very similar cases, this determined where gravel would generate in beach-like areas.

Overflowing
Noise generators are capable of overflowing once hitting the integer limit for their given data type, producing spectacular results. The most notable of these are the Far Lands, resulting in noise generator overflows being referred to as types of Far Lands as a result.

In current versions of Java Edition, overflowing is not usually visible without either direct modification to terrain generation code or possibly via custom world generation.