/weather Command
Sets the weather in the current dimension. Duration is optional; if omitted, a random duration is chosen (clear: 10–150 min, rain: 10–20 min, thunder: 3–13 min). Duration can be specified in ticks, seconds (s), or days (d).
Syntax
/weather (clear|rain|thunder) [<duration>]Permission: OP level 2Edition: Both
Examples
/weather clear/weather thunder 6000/weather rain 1d/weather clear 0sNotes
As of Java 1.20.5, /weather now affects non-Overworld dimensions. Bedrock Edition adds a 'weather query' subcommand not present in Java. Duration suffixes (s, d, t) are Java-only. Setting duration to 0 on Java immediately transitions weather and rolls a new random duration.