Commands/weather

Sets the weather. , it can also output current weather.
==Syntax==
* Java Edition
: weather (clear|rain|thunder) [<duration>]
* Bedrock Edition
: weather <clear|rain|thunder> [duration: int]
: weather query
==Arguments==
clear|rain|thunder
:* clear – Set the weather to clear.
:* rain – Set the weather to rain (or snowfall in cold biomes).
:* thunder – Set the weather to a thunderstorm (or blizzard in cold biomes).
: Specifies the time for the specified weather to last.
: , if not specified, resets the game's regular weather cycle.
: , the time is specified in game ticks. If not specified or 0, the duration defaults to a random value between 300 seconds and 900 seconds.
: And it should be between 0 and 1000000 (inclusive).
==Result==
== Output ==
==Examples==
* To get clear weather for one Minecraft day: /weather clear 24000
* To make it rain, but let it end at its own pace: /weather rain
== History ==
de:Befehl/weather
es:Comandos/weather
ja:コマンド/weather
zh:命令/weather