Change Weather to Clear, Rain, or Thunder
The /weather command lets you change the current weather in your Minecraft world to clear skies, rain, or thunder. You can also control how long the chosen weather lasts by adding a time duration.
Players and server operators use this command to stop annoying rain while building, start a thunderstorm when they need lightning, or set up specific conditions for custom maps.
/weather clear [<duration>]/weather rain [<duration>]/weather thunder [<duration>]/weather clear [<duration>]/weather rain [<duration>]/weather thunder [<duration>]| Argument | Type | What it means |
|---|---|---|
<duration> | time at least 1 | Sets how long the weather lasts using a time value of at least 1, such as 100 (ticks), 5s, or 2d. |
/weather clearStops any current rain or thunder and switches the world to clear skies.
/weather rainStarts a regular rain shower without specifying a custom end time.
/weather thunderChanges the weather to a thunderstorm immediately.
/weather clear 2dKeeps the skies clear for a duration of 2 days.
/weather rain 5sMakes it rain for a quick 5-second shower before changing.
/weather thunder 100Runs a brief thunderstorm that lasts for exactly 100 game ticks.
/weather clear 600sForces clear weather for 600 seconds (10 minutes) of real time.
/weather rain 1dSets rainy weather that continues for 1 full day.
Measured from the game files of every Java release from 1.13 to 26.3.
Bedrock Edition also includes the /weather command with the syntax /weather <type: WeatherType> [duration: int], and it adds an extra /weather query form to check the current weather state.
Type /weather clear in the chat box to immediately stop the rain and bring back clear skies.
You need permission level 2, which means you must be a server operator or have cheats turned on in your single-player world.
Add a duration at the end of the command using ticks, seconds, or days, such as /weather clear 2d or /weather thunder 300s.
/clone/difficulty/fill/fillbiome/forceload/gamerule/locate/place/seed/setblock/setworldspawn/time/waypoint/worldborder