Commands · Vanilla · Java & Bedrock
How to Change the Weather with Commands
One command sets the sky. /weather clear for sun, rain for a downpour, thunder for a storm, add seconds to make it last.
server console, paper-1.20
[12:04:31 INFO]: Steve issued server command:
> /weather thunder 600
[12:04:31 INFO]: Changing to rainy and thundering weather for 600 seconds.
[Server] A storm rolls in over the world…
SKY STATEclear → rain → thunder
⚡⚡
duration: 600s · clears automatically when the timer runs out
How the syntax works
The pattern is /weather <state> [seconds]. The state is clearrain or thunderand the optional number holds it for that many seconds before the game rolls the next weather. Run /weather clear to cancel a storm instantly. Need it frozen for good? Set /gamerule doWeatherCycle false first, then set the sky you want and it stays put.
Quick answers
+How do I change the weather with a command in Minecraft?
Run /weather followed by clear, rain or thunder. /weather clear gives sun, /weather rain starts a downpour, and /weather thunder starts a thunderstorm. The sky changes the instant the command runs.
+How do I stop the rain in Minecraft?
Type /weather clear. It cancels rain or a thunderstorm immediately and sets the sky to clear. You need op in multiplayer or cheats enabled in a single-player world.
+How do I set how long the weather lasts?
Add a number of seconds after the state, like /weather rain 1200 for twenty minutes. When the timer runs out, the game picks the next weather on its own. Leave the number off and the duration is random.
+What is the command for a thunderstorm?
/weather thunder. That brings rain plus lightning and the darker storm sky. Add a duration such as /weather thunder 300 to keep the storm for five minutes.
+Why does the weather command say I do not have permission?
On a server you need op, and in single-player the world must have cheats enabled. Ask an admin to /op your name, or open the world to LAN with cheats turned on to use it.
+Can I turn weather off completely?
Run /gamerule doWeatherCycle false so the weather never changes on its own, then set the sky you want with /weather clear. The state you set then stays until you change it.
/weather at a glance
Syntax
/weather <clear|rain|thunder> [<duration>]What it does
Sets the weather to clear skies, rain, or thunderstorm for an optional duration.
Three things /weather is actually used for
/weather clearStops rain or a thunderstorm immediately and leaves the sky clear.
/weather rain 600Starts rain for six hundred seconds, ten real minutes, then it clears on its own.
/weather thunderStarts a thunderstorm, which is the only weather in which charged creepers and skeleton horse traps can appear.
/weather sits with the time and weather commands in Minecraft, 1 of them in total. The ones with a guide here: /time.
Every command with its full argument list lives in the command reference.
Guides that go with this one
How to Change the Time With Commands in Minecraft
Use /time set day, night, and midnight plus /time add to control the day-night cycle on your Minecraft...
How to Give XP With Commands in Minecraft
Use /xp add to give experience levels or points to players. Full /xp syntax, target selectors, removing...
How to Use the /effect Command in Minecraft
Give, clear and stack status effects with the /effect command: full syntax for /effect give @p speed 60...
How to Use the /enchant Command in Minecraft
Apply enchantments instantly with /enchant @p sharpness 5, no XP, no anvil. Syntax, level limits,...
How to Use the /fill Command in Minecraft
Fill any region with one block using /fill x y z x2 y2 z2 block. Learn solid, hollow, outline and...
How to Use the /setblock Command in Minecraft
Place any block at exact coordinates with /setblock. Learn relative ~ and absolute syntax, block states,...