weather Namespace
This namespace has all functions related to weather.
Note
These functions are not available for biome condition scripts.
- Boolean weather.isRaining()
Evaluates if it is currently raining in the player’s dimension.
- Returns:
Returns
trueif it is current raining,falseotherwise.- Return type:
Boolean
- Boolean weather.isThundering()
Evaluates if a thunderstorm is occurring.
- Returns:
Returns
trueif the current weather is a thunderstorm,falseotherwise.- Return type:
Boolean
- Boolean weather.isNotRaining()
Evaluates if it is not currently raining in the player’s dimension.
- Returns:
Returns
trueif it is not raining,falseotherwise.- Return type:
Boolean
- Boolean weather.isNotThundering()
Evaluates if it is not currently thundering in the player’s dimension.
- Returns:
Returns
trueif the current weather is not a thunder storm,falseotherwise.- Return type:
Boolean
- Float weather.getRainIntensity()
Returns the intensity of the rainfall in the player’s dimension.
- Returns:
Returns the current rain intensity as a
float. When it is raining, this value will be 0.0. If it is raining, the value will be 0.0 - 1.0 depending on where Minecraft is with the startup of rain.- Return type:
Float
- Float weather.getThunderIntensity()
Returns the intensity of thunder in the player’s dimension.
- Returns:
Returns the current intensity of thunder storm as a
float.- Return type:
Float
- Float weather.getTemperature()
Returns the current temperature at the players location.
- Returns:
The temperature at the player’s location
- Return type:
Float
- Boolean weather.isFrosty()
Evaluates if it is cold enough for frost.
- Returns:
Returns
trueif the current temperature is low enough for breath effects,falseotherwise.- Return type:
Boolean
- Boolean weather.canWaterFreeze()
Evaluates if water can freeze at the player’s location.
- Returns:
Returns
trueif the temperature is low enough for water to freeze,falseotherwise.- Return type:
Boolean