Minecraft wiki entry for Weather, associated text: Players who have cheats enabled can change the current weather if they wish, by entering one of the following commands: /weather rain [<duration>] or /weather thunder [<duration>], and /weather clear [<duration>] to clear the inclement weather. The <time> parameter is the duration of the weather in seconds. /toggledownfall‌[Bedrock Edition only] also switches to inclement weather, or vice versa.