CustomBiome
Index
Constructors
Properties
Methods
Constructors
constructor
Crates a new custom biome with specified string identifier.
Parameters
name: string
string identifier of the biome
Returns CustomBiome
Properties
readonlyid
custom biome numeric ID.
readonlyname
Custom biome name.
readonlypointer
Pointer to biome's native object, represented as long number.
Methods
isInvalid
Returns boolean
Whether biome is invalid.
setAdditionalBlock
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.
setClientJson
Defines the client-side biome params from given JSON string.
Parameters
json: string
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
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.
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.
setSeaFloorBlock
Sets the block that fills the floor at the bottom of the sea or the ocean. Vanilla biomes use gravel or stone filling.
Parameters
id: number
block's tile ID
data: number
block data
Returns CustomBiome
Reference to itself to be used in sequential calls.
setSeaFloorDepth
Sets the average depth of the sea floor in this biome.
Parameters
depth: number
depth of the see floor by Y-axis.
Returns CustomBiome
Reference to itself to be used in sequential calls.
setServerJson
Defines the server-side biome params from given JSON string.
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.