To change the weather in Minecraft, use the /weather
commandcommand.
The syntax is /weather [type] [seconds]
. When you use it you set the weather to the specified type for the number of seconds you told it. The type can be either clear
, rain
, or thunder
.
This command is only accessible if you have cheats enabled for your single player world (chosen when you made it) or are a server operator. If you're playing single player and don't have cheats on, you can turn them on temporarily: use the Open To LAN menu and make sure you choose cheats in the LAN options before starting the LAN game. Turning on cheats this way will only last until you quit the world and reopen it. (To more permanently turn on cheats you need a save editor like NBTedit.)