If you are starting a fresh survival or creative building project, you can enable the Clear Weather Data Pack before the world even generates its first chunks.
Selecting the Pack on the Creation Screen
1. From the Singleplayer menu, click Create New World.
2. Navigate to the More tab at the top of the world creation screen (or click the Data Packs button directly on older menu layouts).
3. Click Open Pack Folder. This opens a temporary directory on your computer.
4. Copy and paste the Clear Weather Data Pack into that open folder.
5. Switch back to the Minecraft window. The pack will now appear in the Available column on the left side of the screen.
6. Hover over the pack's icon and click the arrow to move it over to the Selected column on the right.
7. Click Done, configure the rest of your world settings, and click Create New World.
What to Expect at Spawn
From the first tick you load in, the pack runs silently in the background. You do not need to enable cheats or type manual weather commands to keep the sky blue.