Commands/weather

From Minecraft Wiki
Jump to: navigation, search
weather
Restrictions

Operator

First introduced

Java Edition 1.4.2 (12w32a)
PE Alpha 0.16.0 (PE Alpha 0.16.0 build 1)

Sets the weather.

Syntax[edit]

  • Java Edition
weather (clear) [<duration>]
  • Bedrock Edition
weather <clear<ref></ref>> [duration: int]
weather query

Arguments[edit]

clear|rain|thunder

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

<duration> (BE: duration: int)

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[edit]

Fails if the arguments are not specified correctly.

On success, changes the weather for the specified duration (in seconds), or outputs current weather state‌[Bedrock Edition only].[more information needed]

Examples[edit]

  • To get clear weather for one Minecraft day: weather clear 1200
  • To make it rain, but let it end at its own pace: weather rain

History[edit]

Java Edition
1.4.212w32aAdded /weather.
Pocket Edition Alpha
0.16.0build 1Added /weather.