/weather Command in Minecraft Java Edition

Change Weather to Clear, Rain, or Thunder

Java EditionWorld & BlocksPermission: Level 2Bedrock version →

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.

Syntax (Java 26.3, 3 forms)

  1. /weather clear [<duration>]
  2. /weather rain [<duration>]
  3. /weather thunder [<duration>]

The forms you will use most

/weather clear [<duration>]
Changes the weather to clear skies, with an optional duration for how long it stays clear.
/weather rain [<duration>]
Starts rainfall in the world, with an optional duration for how long the rain lasts.
/weather thunder [<duration>]
Starts a thunderstorm in the world, with an optional duration for how long the storm lasts.

Arguments

ArgumentTypeWhat 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.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.13 Already in the game in 1.13, the oldest Java version we track.

Tips

Common mistakes

Java vs Bedrock

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.

See /weather in Bedrock Edition →

FAQ

How do I turn off the rain in Minecraft Java Edition?

Type /weather clear in the chat box to immediately stop the rain and bring back clear skies.

What permission level is required to use /weather?

You need permission level 2, which means you must be a server operator or have cheats turned on in your single-player world.

How do I set how long the weather lasts?

Add a duration at the end of the command using ticks, seconds, or days, such as /weather clear 2d or /weather thunder 300s.

Related commands

/clone/difficulty/fill/fillbiome/forceload/gamerule/locate/place/seed/setblock/setworldspawn/time/waypoint/worldborder