Minecraft Wiki

The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki's logo. Please read this announcement for more information.

READ MORE

Minecraft Wiki
Advertisement
Minecraft Wiki
weather
Permission level
required

2‌[JE only]
1‌[BE only]

Restrictions

Cheat only‌[BE only]

Sets the 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 snow in cold biomes).
  • thunder – Set the weather to a thunderstorm (or blizzard in cold biomes).

JE<duration>: integer
BE: duration: int: int

Must be a 32-bit integer number. Must be between 0 and 1000000 (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.
In bedrock edition, it is the number of ticks for the specified weather to last.

Result[]

CommandTriggerJava EditionBedrock Edition
anythe arguments are not specified correctly Unparseable Failed
On successChanges the weather for the specified duration (in seconds), or outputs current weather state‌‌[Bedrock Edition only].

Output[]

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
anyJava EditionOn fail000
On success11the specified duration(if unspecified, defaults to 5) multiplied by 20
Bedrock EditionOn fail0N/AN/A
On success1N/AN/A

Examples[]

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

Java Edition
1.4.212w32aAdded /weather.
Pocket Edition Alpha
v0.16.0build 1Added /weather.
Advertisement