Commands/weather

Sets the weather.

Syntax

 * Java Edition


 * Bedrock Edition

Arguments

 * – Set the weather to clear.
 * – Set the weather to rain (or snow in cold biomes).
 * – Set the weather to a thunderstorm (or blizzard in cold biomes).


 * Must be between 0 and 1999999999 (inclusive).
 * Specifies the time in seconds for the specified weather to last. If not specified, the duration defaults to 5 minutes. If 0, resets to random weather duration. The maximum value of 1999999999 seconds is approximately 3805.2 years.
 * In bedrock edition, it is the number of ticks for the specified weather to last.

Examples

 * To get clear weather for one Minecraft day:


 * To make it rain, but let it end at its own pace:

History
Befehl/weather コマンド/weather 命令/weather