Minecraft wiki entry for Command_blocks_and_functions, associated text: Many times, a player will be building something, and it will start raining or start to get dark, which both can be disturbing to the player. Fortunately, you can use commands to turn off the rain, as well as make the sun go back to sunrise. To toggle rain on and off, just use the /weather command. Use clear if you want to clear the weather, or rain or thunder, if you would like to toggle on rain or a thunderstorm. For example, if you want the weather to be rain but not thunder, type in the /weather rain command.