Wiki ArticleUnknown Bedrock version historyCommands
/weather
Sets the weather. In Bedrock Edition, it can also be used to get current weather.
JE: <duration>: timeBE: duration: int: int
/weather| Permission level required |
|
|---|---|
| Restrictions | Cheat only[BE only] |
Sets the weather. In Bedrock Edition, it can also be used to get 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. And it will turn into thunder after the clear weather ends.
rain– Set the weather to rain (or snowfall in cold biomes). And it will turn into clear after the rain ends.
thunder– Set the weather to a thunderstorm (or blizzard in cold biomes). And it will turn into clear after the thunder ends.
JE: <duration>: time
BE: duration: int: int
- Specifies the time for the specified weather to last.
- In Java Edition, if not specified, the duration defaults to a random value. The range of the random value depends on the specified weather type:
clear- 12000 to 180000 ticks (both inclusive). i.e. 10 to 150 minutes (both inclusive).rain- 12000 to 24000 ticks (both inclusive). i.e. 10 to 20 minutes (both inclusive).thunder- 3600 to 15600 ticks (both inclusive). i.e. 3 to 13 minutes (both inclusive).
- In Bedrock Edition, the time is specified in game ticks. If 0 or not specified, the duration defaults to a random value between 300 seconds and 900 seconds.
- In Java Edition, it must be a single-precision floating-point number suffixed with a unit. It must be not less than 1 gameticks. Units include:
d: an in-game day, 24000 gameticks;s: a second, 20 gameticks;t(default and omitable): a single gametick; the default unit.
.5dis same as 12000 gameticks.
In Bedrock Edition it must be a [Int] 32-bit integer number. And it should be between 0 and 1000000 (inclusive).
Result
| Command | Trigger | Java Edition | Bedrock Edition |
|---|---|---|---|
| Any | The command is incomplete, or any argument is not specified correctly. | Unparseable | Unparseable |
duration: int is lower than 0 or higher than 1000000. | N/A | Failed | |
| Otherwise | Successful | ||
Output
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| Any | Java Edition | On success | 1 | 1 | the specified duration (if unspecified, defaults to -1) |
| Bedrock Edition | On fail | 0 | N/A | N/A | |
| On success | 1 | N/A | N/A |
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
Java Edition
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.4.2 | 12w32a | Added /weather. | |||||
| 1.13 | 17w45a | If the player doesn't specify a time, it now defaults to 5 minutes (previously random). | |||||
| 1.19.4 | 22w03a | Now /weather uses time argument types rather than integer.
| |||||
| Before this snapshot, the integer argument specifies a time in seconds. If not specified, the duration defaults to 5 minutes. If 0, resets to random weather duration. | |||||||
| 1.20.5 | 24w11a | Now works in non-overworld dimensions. | |||||
Bedrock Edition
| Pocket Edition Alpha | |||||||
|---|---|---|---|---|---|---|---|
| v0.16.0 | build 1 | Added /weather. | |||||
| Bedrock Edition | |||||||
| 1.18.30 | ? | The duration: int argument is now in ticks instead of seconds. | |||||
External links
- "
/weatherCommand" – Microsoft Learn, August 1, 2024.