/weather
Sets the weather to clear skies, rain, or thunderstorm for an optional duration.
Syntax
/weather <clear|rain|thunder> [<duration>]Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| type | literal | Required | The weather type: clear, rain, or thunder. |
| duration | integer | Optional | Duration in seconds (1-1000000). If omitted, a random duration is chosen. |
Examples
/weather clearSets the weather to clear for a random duration.
/weather thunder 300Starts a thunderstorm for 5 minutes (300 seconds).
/weather rain 1000000Sets rain for the maximum duration, effectively permanent until manually changed.
Common Mistakes
- Expecting thunder to include lightning strikes constantly, lightning is random during thunderstorms.
- Not using the doWeatherCycle gamerule to permanently disable weather changes.
Notes
To permanently disable weather, use /gamerule doWeatherCycle false after setting your desired weather. Thunderstorms make the sky dark enough for monsters to spawn during the day.
Related Commands
Need a Minecraft server?
Try these commands on Astroworld or host your own server.
Try Astroworld Hosting