Weather command generator

Set the weather — clear, rain, or thunder — with an optional duration

How to use the Weather command generator

  1. Choose the edition and version that match your game
  2. Pick the weather you want
  3. Specify a duration, or leave it blank to let the game randomize it
  4. Copy the command and run it in Minecraft

Worked examples

The examples below come out of the same generator as the form above, so the commands and explanations always match what the tool produces. Copy one and adjust it from there

1. Clear the weather

The most-used command in this group — stops rain that is already falling

/weather clear

What it does Will change the weather to clear and let the game pick a random duration.

2. Make it rain for a set time

Give a duration to control how long it rains; leave it out and the game picks a random length

/weather rain 300

What it does Will change the weather to rain for 300 seconds.

3. Start a thunderstorm

For atmosphere in an adventure map, or to test systems that only run during a storm

/weather thunder 600

What it does Will change the weather to thunder for 600 seconds.

How this command differs by edition and version

This is the first example above, run through every edition and version this tool supports. Versions that produce the same result share a row

Every version this tool supports produces the same result, so a command you copy works without version-specific edits

Java Edition 1.21.5 and up Java Edition 1.20.5 - 1.21.4 Java Edition 1.13 - 1.20.4 (legacy NBT) Bedrock Edition (stable)
/weather clear

Before you use these