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 thunder snow in cold biomes).

(BE: )
 * Specifies the time in seconds for the specified weather to last. Must be between 0 and 1,000,000 (inclusive, without the commas). If duration is omitted, the duration defaults to 5 minutes.

Result
Fails if the arguments are not specified correctly.

On success, changes the weather for the specified duration (in seconds), or outputs current weather state.

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