MC Commands

Minecraft Weather Command Generator

Easily generate commands to change the world's weather to clear, rain, or thunder, and set an exact duration.

/weather clear

What this generator does

Pick your version and the generator writes a /weather command in the format that version actually accepts. If you choose 1.19.3 or earlier it tells you units are not allowed and uses seconds; in 1.19.4 and later you can choose ticks (t), seconds (s) or in-game days (d). The share link button sends your exact settings to someone else.

Command Usage Examples

1. Thunder for just 10 seconds

Strikes lightning for 10 seconds, then returns to the natural weather cycle. Since 1.19.4 add a unit like 10s; in 1.19.3 and earlier type the number only.

1.19.4+/weather thunder 10s
~ 1.19.3/weather thunder 10

2. Long-lasting rain

Rain for 30 in-game days (about 10 real hours). d is one in-game day (24,000 ticks, 20 real minutes).

1.19.4+/weather rain 30d
~ 1.19.3/weather rain 36000

3. Thunder without a duration

Leave out the duration to change the weather right away and let the game pick how long it lasts. Since 1.19.4 the length is chosen the same way as the natural weather cycle.

/weather thunder

4. Clear skies for one in-game day

A number without a unit means ticks (1/20 s) since 1.19.4, but seconds in 1.19.3 and earlier. So the same 20 minutes is 24000 in new versions and 1200 in old ones.

1.19.4+/weather clear 24000
~ 1.19.3/weather clear 1200

5. Lock the weather (stop automatic changes)

Uses a game rule so the weather never changes on its own. In 1.21.11 it was renamed from doWeatherCycle to advance_weather, and 1.10 and earlier have no such rule.

1.21.11+/gamerule advance_weather false
1.11 ~ 1.21.10/gamerule doWeatherCycle false

/weather changes by version (Java Edition)

The same command uses different duration units and game rule names depending on the version. Check which version you play first.

VersionChange
1.4.2Added the /weather command. Before that, only /toggledownfall could turn rain on and off.
1.11Added the doWeatherCycle game rule, which stops the weather from changing on its own.
1.19.4The duration changed from seconds to ticks and now accepts the units t (ticks), s (seconds) and d (in-game days). Without a duration, the length is chosen the same way as the natural weather cycle.
1.21.11Game rules were renamed: use advance_weather instead of doWeatherCycle.

How we checked: the commands and error messages on this page were run and confirmed by the site operator on our own Java server (except permission cases involving other players). Version data is extracted from the official server jar's data generator reports, and the change history follows the official snapshot notes (23w03a for 1.19.4, 25w44a for 1.21.11). Last checked: November 2026.

Useful numbers and combinations

Values people look up most often when writing the command. All for Java Edition.

1. How long does weather last without a duration?

Since 1.19.4, running the command without a duration picks a random length in these ranges: · clear: 12,000–180,000 ticks (10–150 real minutes) · rain: 12,000–24,000 ticks (10–20 real minutes) · thunder: 3,600–15,600 ticks (3–13 real minutes) If you need an exact length, give the duration yourself.

2. Common durations by version

How to write the same length in each version. (1.19.4+ / 1.19.3 and earlier) · 1 real minute: 1200 or 60s / 60 · 10 real minutes: 12000 or 600s / 600 · 1 in-game day (20 real minutes): 24000 or 1d / 1200 · 1 real hour: 72000 or 3d / 3600

3. Commands for using lightning

Combinations for getting mobs that need lightning, such as charged creepers or witches. · Lock a thunderstorm: /weather thunder, then /gamerule advance_weather false (doWeatherCycle in 1.11–1.21.10) · Strike lightning anywhere: /summon lightning_bolt ~ ~ ~ (works in any weather; LightningBolt in 1.10 and earlier) · During a thunderstorm, hitting a mob that is open to the sky with a Channeling trident also summons lightning. (1.13+)

Frequently Asked Questions (FAQ)

Q. I get 'Unknown or incomplete command. See below for error'.

A. You lack permission, the command name has a typo, or you typed only /weather without a weather type. /weather needs a world with cheats on or operator permission (level 2). In singleplayer, turn on Allow Cheats via Open to LAN.

Q. /weather sun gives 'Incorrect argument for command'.

A. The only weather names are clear, rain and thunder, so names like sun, storm or snow are not recognized. There is no separate snow weather: rain falls as snow in cold biomes.

Q. I typed 10m and got 'Invalid unit'.

A. The duration only accepts three units: t (ticks), s (seconds) and d (in-game days). There is no m (minutes) or h (hours). Write 10 minutes as 600s or 12000. In 1.19.3 and earlier you cannot add a unit at all; type a number in seconds.

Q. I get 'The tick count must not be less than 1: found 0'.

A. Since 1.19.4 the duration must be at least 1 tick, so 0 or negative values fail. To just change the weather and let the game decide the length, leave the duration out.

Q. The same number gives a different weather length in different versions.

A. A number without a unit means ticks (1/20 s) since 1.19.4, but seconds in 1.19.3 and earlier. For example, 1200 is 1 minute in new versions and 20 minutes in old ones. See 'Common durations by version' below.

Q. /gamerule doWeatherCycle false does not work.

A. Game rules were renamed in 1.21.11. In current versions, type /gamerule advance_weather false. In 1.11–1.21.10 use doWeatherCycle; 1.10 and earlier have no game rule to lock the weather.

Q. The command worked, but I don't see any rain.

A. Weather applies to the whole Overworld, but biomes without rain such as deserts, savannas and badlands show no rain, and cold biomes like snowy taiga or high mountains get snow instead. The Nether and the End have no weather.

Q. /weather query does not work in Java Edition.

A. /weather query exists only in Bedrock Edition, so it fails in Java Edition. In Java Edition, /weather can only set the weather to clear, rain or thunder.