weather
Sets the weather of the world using a DSL-style edit block.
This is a convenient extension function that wraps the world edit DSL to set the weather type.
Parameters
type
The weather type to set (e.g., WeatherType.CLEAR, WeatherType.RAIN, WeatherType.THUNDER).
Example usage:
world.weather(WeatherType.RAIN) // Set weather to rainContent copied to clipboard
Equivalent to:
world.edit {
weather = WeatherType.RAIN
}Content copied to clipboard