โฐ๏ธ Environment#
#bs.environment:help
Comprehensive information and tools related to weather and biome properties.

โThe most dangerous worldview is the worldview of those 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>
orpositioned <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 id (e.g.,
minecraft:plains
). - temperature: The base temperature of the biome.
- has_precipitation: Whether the biome has precipitation or not.
- type: String representation of the id (e.g.,
- Biome data
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>
orpositioned <x> <y> <z>
: Position from which you want to get the temperature.Function macro:
- Arguments
- scale: Scalar for the functionโs output.
- Arguments
- Outputs:
Return | Score
$environment.get_temperature bs.out
: Temperature at a given position.
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 raining or not.
Credits: Aksiome, theogiraudet
Is It Thundering?#
bs.environment:is_thundering
Determine if it is thundering or not.
Credits: Aksiome, theogiraudet
๐ฌ Did it help you?
Feel free to leave your questions and feedbacks below!