Weather in Minecraft changes naturally over time, but you can take control instantly with the weather command. Whether you want it to rain, snow, or clear up, here’s how to do it in Java Edition, Bedrock, and console versions.
Enabling Cheats
To use any game commands, you need to turn cheats on first. In singleplayer, create a new world with cheats enabled in world settings. If you’re already in a world, pause the game, click “Open to LAN”, then toggle “Allow Cheats” on. On servers, ask the admin to give you op status so you can run commands.
Java Edition Command
The command to change weather in Minecraft Java Edition is:
/weather rain [duration]
Command Parameters
- rain, The weather type. Use “rain”, “clear”, or “thunder”.
- duration (optional), How long the weather lasts, in seconds. If you skip this, the weather will cycle back naturally after a few minutes.
Bedrock Edition Command
Bedrock Edition uses slightly different syntax:
/weather rain [duration] [toggleDownfall]
Bedrock Parameters
- duration, Length in seconds.
- toggleDownfall, Set to “true” or “false” (usually false).
How to Enter the Command
Step 1: Open Chat
The key to open chat depends on your platform:
- Java Edition (PC/Mac), Press T
- Pocket Edition, Tap the chat button at the top
- Xbox One, Press D-Pad right
- PS4, Press D-Pad right
- Nintendo Switch, Press right arrow
- Windows 10 Edition, Press T
Step 2: Type and Execute
Type your command and press Enter. For example:
/weather rain 1000
This makes it rain for 1000 seconds (about 16 minutes). You’ll see a message like “Changing to rainy weather” pop up in your chat.
Other Weather Commands
You can use these weather commands too:
- /weather clear, Blue skies, no rain
- /weather thunder, Thunderstorm with lightning
- /weather snow, Snow (Bedrock only)
- /toggledownfall, Quick toggle between rain and clear
Quick Tips
- Leave off the duration to let weather cycle naturally into your set type.
- Use 0 as the duration to immediately stop the current weather.
- Commands work in both creative and survival mode.
- Server admins control who can use commands with permission levels.