⛰️ Environment#

#bs.environment:help

Comprehensive information and tools related to weather and biome properties.

../_images/environment.png

“The most dangerous worldview is the worldview of those who have not viewed the world.”

—Alexander von Humboldt


🔧 Functions#

You can find below all functions available in this module.


Get Biome#

#bs.environment:get_biome

Get biome data at the execution position of the function.

Inputs:

Execution at <entity> or positioned <x> <y> <z>: Position from which you want to get biome data.

Outputs:

Storage bs:out environment.get_biome:

  • Biome data
    • type: String representation of the biome ID (e.g., minecraft:plains).
    • temperature: The base temperature of the biome.
    • has_precipitation: Whether the biome has precipitation or not.

Example: Get biome data at the current location:

# Once
function #bs.environment:get_biome
data get storage bs:out environment.get_biome

Credits: Aksiome


Get Temperature#

#bs.environment:get_temperature {scale:<scaling>}

Get the temperature at the execution position of the function, taking the altitude into account.

Inputs:

Execution at <entity> or positioned <x> <y> <z>: Position from which you want to get the temperature.

Function macro:

  • Arguments
    • scale: Scalar for the function’s output.
Outputs:

Return | Score $environment.get_temperature bs.out: Temperature at the given position.

Example: Get the temperature at the current altitude:

# Once
function #bs.environment:get_temperature {scale:1000}

Credits: Aksiome, theogiraudet


👁️ Predicates#

You can find below all predicates available in this module.


Can It Rain?#

bs.environment:can_rain

Determine if it can rain or not.

Credits: Aksiome


Can It Snow?#

bs.environment:can_snow

Determine if it can snow or not.

Credits: Aksiome


Can It Rain or Snow?#

bs.environment:has_precipitation

Determine if the biome has precipitation or not.

Credits: Aksiome


Is It Raining?#

bs.environment:is_raining

Determine if it is currently raining or not.

Credits: Aksiome, theogiraudet


Is It Thundering?#

bs.environment:is_thundering

Determine if it is currently thundering or not.

Credits: Aksiome, theogiraudet


💬 Did it help you?

Feel free to leave your questions and feedback below!