interface BiomeToDefaultTerrainDetailsValue {
    baseHeight?: number;
    baseOffset?: Vector3;
    baseScale?: Vector3;
    generatorType?: "nether" | "end" | "normal" | "fractal";
    heightVariation?: number;
    lavaLevel?: number | false;
    netherAirThresholdFunc?: (
        value: number,
        pos: Vector3,
        noise: {
            noise2D: NoiseFunction2D;
            noise3D: NoiseFunction3D;
            noise4D: NoiseFunction4D;
        },
        offset: Vector3,
        scale: Vector3,
    ) => boolean;
    waterLevel?: number | false;
}

Properties

baseHeight?: number

The base height to use for the terrain of the biome type.

If the user specifies a base height, it will override this.

63
baseOffset?: Vector3

The base offset to use for the terrain of the biome type.

The will be added to the user-provided offset.

{ x: 0, y: 0, z: 0 }
baseScale?: Vector3

The base scale to use for the terrain of the biome type.

Larger values will make the terrain slope more quickly.

This will be multiplied by the user-provided scale.

{ x: 1, y: 1, z: 1 }
generatorType?: "nether" | "end" | "normal" | "fractal"

The generator type to use for the terrain of the biome type.

If the user specifies a generator type, it will override this.

Generator Types:

  • normal - Regular overworld generation. The generates with everything below the surface being solid, and the surface having height variation, including mountains.
  • nether - Nether generation. This generates similarly to the nether.
  • end - End generation. This generated end islands.
"normal"
heightVariation?: number

The height variation to use for the terrain of the biome type.

If this is a biome like an ocean, this will be the height variation of the seabed.

If the user specifies a height variation, it will override this.

10
lavaLevel?: number | false

The lava level to use for the terrain of the biome type.

If not specified, or set to false, it will not have lava.

If the user specifies a lava level, it will override this.

false
netherAirThresholdFunc?: (
    value: number,
    pos: Vector3,
    noise: {
        noise2D: NoiseFunction2D;
        noise3D: NoiseFunction3D;
        noise4D: NoiseFunction4D;
    },
    offset: Vector3,
    scale: Vector3,
) => boolean

The nether air threshold unction to use for the terrain of the biome type.

If the user specifies a nether air threshold unction, it will override this.

Should be a function that takes a float from -1 to 1 (inclusive) and returns true if the block should be generated and false otherwise.

0
waterLevel?: number | false

The water level to use for the terrain of the biome type.

If not specified, or set to false, it will not have water.

If the user specifies a water level, it will override this.

false