Rain in Minecraft can be useful for extinguishing fires and fires, making fiery arrows useless, irrigating crops, and replenishing the water supplies of farms and water depots. Minecraft integrates dynamic weather event management, so it can start raining without warning during the game. However, if you need the sun to come back, you can disable the functionality of the game that manages the weather by entering the appropriate command from the program console.
Steps
Step 1. Launch Minecraft on your PC and select the "Create New World" option from the "Select World" screen
You can stop the rain only if the use of commands is active within the game world (if not, you will have to create a new world).
Rain can only be managed on the Windows version of Minecraft, unless you have installed a mod developed by third parties on consoles. Before installing a Minecraft mod, contact those who created and developed it to be sure that it is possible to stop dynamic weather management
Step 2. Click on "Other world options", then click on the "Commands:
Yes.”This way you will be able to use the controls during the game using the game console.
Step 3. Click the "Done" button, then name the new world by typing it into the "World Name" text field
Step 4. Click on the "Create a new world" button
This will create a new game world in which you can use the controls.
Step 5. Select the option to start a new game session using the Minecraft world you just created
Step 6. Wait for the rain to start during the game, then run the "/ weather clear" or "/ toggledownfall" command
When you enter one of the above commands, the text will appear in the lower left corner of the Minecraft window.
Step 7. Press the "Enter" key
After pressing the indicated button you will see the following message "Changing to clear weather" appear on the screen and the rain should stop.