Skip to main content

/weather

Sets the weather to clear skies, rain, or thunderstorm for an optional duration.

Permission Level
Game Master
Version Added
1.0

Overview

Sets the weather to clear skies, rain, or thunderstorm for an optional duration. In vanilla Minecraft Java Edition it is one of the time & weather commands and has been available since version 1.0.

It is invoked as /weather [] and accepts one required argument () and one optional argument ([duration]).

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.

To stop the weather changing on its own after you set it, pair the command with /gamerule doWeatherCycle false. Thunderstorms darken the sky enough for hostile mobs to spawn in daylight.

Syntax & Arguments

/weather <clear|rain|thunder> [<duration>]

The full syntax is /weather []. Angle brackets < > mark required arguments and square brackets [ ] mark optional ones; a vertical bar | between words means you pick exactly one of those literals. You must always supply . The argument [duration] may be omitted, in which case the documented default applies.

type
Required, of type a literal. The weather type: clear, rain, or thunder.
duration
Optional, of type an integer. Duration in seconds (1-1000000). If omitted, a random duration is chosen.

Parameters

NameTypeRequiredDescription
typeliteralRequiredThe weather type: clear, rain, or thunder.
durationintegerOptionalDuration in seconds (1-1000000). If omitted, a random duration is chosen.

Examples

The 3 examples below are ready to copy and adapt. For instance, /weather clear sets the weather to clear for a random duration. Each example varies the arguments to show a different real use of /weather; read the note under every snippet to see exactly what changes.

/weather clear

Sets the weather to clear for a random duration.

/weather thunder 300

Starts a thunderstorm for 5 minutes (300 seconds).

/weather rain 1000000

Sets rain for the maximum duration, effectively permanent until manually changed.

Permission Level & Requirements

/weather sits at permission Level 2 - Game Master / Cheats, which means it needs permission level 2, the level cheats grant to single-player worlds and that operators hold by default.

In a single-player world you must have "Allow Cheats" turned on (or open the world to LAN with cheats) before it will run; on a multiplayer server the player needs to be an operator at the matching level.

This reference describes the Java Edition 1.21 form of the command; Bedrock Edition may use slightly different argument formats.

Common Mistakes

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

If /weather is part of your toolkit, the commands below are the ones you will most often reach for alongside it: /time and /gamerule. They cover closely related tasks, so the links above jump straight to each one.

Frequently Asked Questions about /weather

What does the /weather command do in Minecraft?

Sets the weather to clear skies, rain, or thunderstorm for an optional duration. It belongs to the time & weather command group and was added in Java Edition 1.0.

What is the correct syntax for /weather?

/weather []. The required argument is type, and the optional one is duration.

What permission level does /weather need?

It requires permission Level 2 - Game Master / Cheats. On a server the player must be an operator at that level, or have cheats enabled in single-player.

What is a common mistake when using /weather?

Expecting thunder to include lightning strikes constantly, lightning is random during thunderstorms.

Can you give an example of /weather in use?

Yes. /weather thunder 300 — starts a thunderstorm for 5 minutes (300 seconds).

Need a Minecraft server?

Try these commands on Astroworld or host your own server.

Try Astroworld Hosting