Skip to main content

Biome

A proxy for a Minecraft biome

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())

getPos()​

Returns the saved position for this Biome's proxy

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

Example:

biome:getPos()

setPos(Vector3)​

Returns the saved position for this Biome's proxy

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

Example:

biome:setPos(player:getPos())

getTags()​

Gets the worldgen related tags from this Biome

Example:

biome:getTags()

getTemperature()​

Gets the temperature of this biome

Example:

biome:getTemperature()

getWaterColor()​

Gets this biome's water color as a RGB vector

Example:

biome:getWaterColor()

getWaterFogColor()​

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

Example:

biome:getWaterFogColor()

isHot()​

Checks if this biome is hot

Example:

biome:isHot()

isCold()​

Checks if this biome is cold

Example:

biome:isCold()

getPrecipitation()​

Gets the rain type of this biome

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

Example:

biome:getPrecipitation()

getDownfall()​

Gets this biome's humidity

Example:

biome:getDownfall()

getSkyColor()​

Gets this biome's sky color as a RGB vector

Example:

biome:getSkyColor()

getFogColor()​

Gets this biome's fog color as a RGB vector

Example:

biome:getFogColor()

getGrassColor()​

Gets this biome's grass color as a RGB vector

Example:

biome:getGrassColor()

getFoliageColor()​

Gets this biome's foliage color as a RGB vector

Example:

biome:getFoliageColor()

id​

The id of this biome

Example:

biome.id