Skip to main content

Biome

A proxy for a Minecraft biome

warning

This page is a WIP. It contains all the information in Figura's documentation but we're working on adding more helpful descriptions.

Instances are obtained through the WorldAPI

This proxy also contains a saved position for the Biome

For this page assume:

local biome = world.getBiome(player:getPos())

Weather

getDownfall()

Gets this biome's humidity

getDownfall()

Returns:

TypeDescription
Number-

Example:

biome:getDownfall()

getPrecipitation()

Gets the rain type of this biome

The type can be "NONE", "RAIN" or "SNOW"

getPrecipitation()

Returns:

TypeDescription
String-

Example:

biome:getPrecipitation()

getTemperature()

Gets the temperature of this biome

getTemperature()

Returns:

TypeDescription
Number-

Example:

biome:getTemperature()

isCold()

Checks if this biome is cold

isCold()

Returns:

TypeDescription
Boolean-

Example:

biome:isCold()

isHot()

Checks if this biome is hot

isHot()

Returns:

TypeDescription
Boolean-

Example:

biome:isHot()

Biome Colors

getFogColor()

Gets this biome's fog color as an RGB vector

getFogColor()

Returns:

TypeDescription
Vector3-

Example:

biome:getFogColor()

getFoliageColor()

Gets this biome's foliage color as an RGB vector

getFoliageColor()

Returns:

TypeDescription
Vector3-

Example:

biome:getFoliageColor()

getGrassColor()

Gets this biome's grass color as an RGB vector

getGrassColor()

Returns:

TypeDescription
Vector3-

Example:

biome:getGrassColor()

getSkyColor()

Gets this biome's sky color as an RGB vector

getSkyColor()

Returns:

TypeDescription
Vector3-

Example:

biome:getSkyColor()

getWaterColor()

Gets this biome's water color as an RGB vector

getWaterColor()

Returns:

TypeDescription
Vector3-

Example:

biome:getWaterColor()

getWaterFogColor()

Gets this biome's water fog color as an RGB vector

getWaterFogColor()

Returns:

TypeDescription
Vector3-

Example:

biome:getWaterFogColor()

Biome Data

setPos()

Aliases: pos()

Sets the saved position for this Biome's proxy

The saved position is used in Biome functions that require a position

setPos(pos)

Parameters:

NameTypeDescriptionDefault
posVector3--

Returns:

TypeDescription
BiomeReturns self for chaining

Example:

biome:setPos(player:getPos())

getPos()

Returns the saved position for this Biome's proxy

The saved position is used in Biome functions that require a position

getPos()

Returns:

TypeDescription
Vector3-

Example:

biome:getPos()

getTags()

Gets the worldgen related tags from this Biome

getTags()

Returns:

TypeDescription
Table-

Example:

biome:getTags()

id

The id of this biome

Example:

biome.id