Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/weather

Command

/weather

Sets the weather to clear, rain or thunderstorm, optionally for a chosen length of time.

Syntax

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

Arguments

ArgumentKind of valueWhat to type
<duration>TimeHow long the weather lasts, in ticks or with a unit (t, s, d). Minimum 1 tick. If left out, a random length is chosen. At least 1.

Details

Permission level2: operators, worlds with cheats on, command blocks and functions
Works inServer operators, players in a singleplayer or LAN world with cheats enabled, the server console, command blocks and functions.
ResultReports "Set the weather to clear", "Set the weather to rain" or "Set the weather to rain and thunder". Returns the duration that was given, in ticks, or -1 if no duration was given.
Weather typesclear stops rain and thunder, rain starts rain without thunder, and thunder starts rain with thunder.
DurationThe duration is how long the chosen weather lasts before the normal weather cycle takes over again. It is given in ticks, or with a unit: t for ticks, s for seconds (20 ticks) and d for in-game days (24000 ticks). The minimum is 1 tick.
No durationWithout a duration the game picks a random length: 12000 to 180000 ticks (10 to 150 minutes) for clear, 12000 to 24000 ticks (10 to 20 minutes) for rain, and 3600 to 15600 ticks (3 to 13 minutes) for thunder.

Examples

/weather clear

Clears the weather for a random time between 10 and 150 minutes.

/weather rain

Starts rain for a random time between 10 and 20 minutes.

/weather thunder

Starts a thunderstorm for a random time between 3 and 13 minutes.

/weather clear 1d

Keeps the weather clear for one in-game day (24000 ticks, 20 minutes).

/weather rain 600s

Makes it rain for 600 seconds (12000 ticks).

/weather thunder 6000

Starts a thunderstorm that lasts 6000 ticks (5 minutes).

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)