Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CustomBiome

Class used to create custom biomes. Note that Minecraft has a limit of 256 biomes and there are already more than 100 vanilla biomes, so do not overuse this functionality. See Biomes

Hierarchy

  • CustomBiome

Index

Constructors

constructor

  • Crates a new custom biome with specified string identifier

    Parameters

    • name: string

      string identifier of the biome

    Returns CustomBiome

Properties

id

id: number

custom biome numeric id

Methods

setAdditionalBlock

  • setAdditionalBlock(id: number, data: number): CustomBiome
  • This method is mapped on native parameter with the same name and its effect is currently not known

    Parameters

    • id: number

      block's tile id

    • data: number

      block data

    Returns CustomBiome

    reference to itself to be used in sequential calls

setCoverBlock

  • Specifies the block that will cover the biome. E.g. most of the biomes use grass as cover block, though some of the biomes use other blocks (sand, ice, etc.)

    Parameters

    • id: number

      block's tile id

    • data: number

      block data

    Returns CustomBiome

    reference to itself to be used in sequential calls

setFillingBlock

  • setFillingBlock(id: number, data: number): CustomBiome
  • Sets the block that fills the terrain. Vanilla biomes use stone filling

    Parameters

    • id: number

      block's tile id

    • data: number

      block data

    Returns CustomBiome

    reference to itself to be used in sequential calls

setFoliageColor

  • Sets biome's foliage color

    Parameters

    • r: number

      red color component, value from 0 to 1

    • g: number

      green color component, value from 0 to 1

    • b: number

      blue color component, value from 0 to 1

    Returns CustomBiome

    reference to itself to be used in sequential calls

  • Sets biome's foliage color

    Parameters

    • color: number

      integer color value (you can specify it using hex value)

    Returns CustomBiome

    reference to itself to be used in sequential calls

setGrassColor

  • Sets biome's grass color. Grass color is interpolated on the bounds of the biome

    Parameters

    • r: number

      red color component, value from 0 to 1

    • g: number

      green color component, value from 0 to 1

    • b: number

      blue color component, value from 0 to 1

    Returns CustomBiome

    reference to itself to be used in sequential calls

  • Sets biome's grass color. Grass color is interpolated on the bounds of the biome

    Parameters

    • color: number

      integer color value (you can specify it using hex value)

    Returns CustomBiome

    reference to itself to be used in sequential calls

setSkyColor

  • Sets biome's sky color

    Parameters

    • r: number

      red color component, value from 0 to 1

    • g: number

      green color component, value from 0 to 1

    • b: number

      blue color component, value from 0 to 1

    Returns CustomBiome

    reference to itself to be used in sequential calls

  • Sets biome's sky color

    Parameters

    • color: number

      integer color value (you can specify it using hex value)

    Returns CustomBiome

    reference to itself to be used in sequential calls

setSurfaceBlock

  • setSurfaceBlock(id: number, data: number): CustomBiome
  • Specifies the block that will be under the covering block of the biome. E.g. most of the biomes use dirt as cover block, though some of the biomes use other blocks

    Parameters

    • id: number

      block's tile id

    • data: number

      block data

    Returns CustomBiome

    reference to itself to be used in sequential calls

setSurfaceParam

  • This method is mapped on native parameter with the same name and its effect is currently not known

    Parameters

    • param: number

      some integer parameter. Default value is 7

    Returns CustomBiome

    reference to itself to be used in sequential calls

setTemperatureAndDownfall

  • setTemperatureAndDownfall(temperature: number, downfall: number): CustomBiome
  • Sets biome's temperature and downfall

    Parameters

    • temperature: number

      temperature value, from 0 to 1

    • downfall: number

      downfall value, from 0 to 1

    Returns CustomBiome

    reference to itself to be used in sequential calls

Generated using TypeDoc