# ⛰️ Environment **`#bs.environment:help`** Comprehensive information and tools related to weather and biome properties. ```{image} /_imgs/modules/environment.png :width: 100% :class: dark_light ``` ```{epigraph} "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 ```{function} #bs.environment:get_biome Get biome data at the execution position of the function. :Inputs: **Execution `at ` or `positioned `**: Position from which you want to get biome data. :Outputs: **Storage `bs:out environment.get_biome`**: :::{treeview} - {nbt}`compound` Biome data - {nbt}`string` **type**: String representation of the biome ID (e.g., `minecraft:plains`). - {nbt}`double` **temperature**: The base temperature of the biome. - {nbt}`bool` **has_precipitation**: Whether the biome has precipitation or not. ::: ``` *Example: Get biome data at the current location:* ```mcfunction # Once function #bs.environment:get_biome data get storage bs:out environment.get_biome ``` > **Credits**: Aksiome --- ### Get Temperature ```{function} #bs.environment:get_temperature {scale:} Get the temperature at the execution position of the function, taking the altitude into account. :Inputs: **Execution `at ` or `positioned `**: Position from which you want to get the temperature. **Function macro**: :::{treeview} - {nbt}`compound` Arguments - {nbt}`number` **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:* ```mcfunction # 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 --- ```{include} ../_templates/comments.md ```