A tiny Fabric mod that adds a fourth weather type to Minecraft: TRUE_CLEAR.
Parts of this project were written with AI assistance, which I used as a learning
exercise. In particular, the synced world attachment code (how the TRUE_CLEAR
state is stored on the world and synced to clients via the Fabric Data Attachment
API) was AI-assisted while I was figuring out how that API works. I've reviewed
and understand the code, but wanted to be upfront about how it came together.
Minecraft has three weather types — CLEAR, RAIN, and THUNDER — but "clear"
isn't really clear. There are still clouds up there. Clear Sky adds TRUE_CLEAR,
which is exactly like clear weather except the clouds are gone and you get an
honest, empty blue sky.
It's a small thing, but once you notice the clouds during "clear" weather you can't un-notice them.
- Adds
TRUE_CLEARas a new weather type. It looks identical toCLEAR, just without the cloud layer. - During the normal weather cycle, whenever a clear stretch begins it's a coin
flip: half the time you get regular
CLEAR, half the time you getTRUE_CLEAR. Rain and thunder are left completely alone. - Long clear stretches can drift on their own. Every 2.5 minutes or so (
3000ticks) there's a 25% chance the sky quietly switches to the other kind, so you occasionally catch the clouds rolling in or out without a drop of rain. - Clouds fade in and out over a couple of seconds when the weather changes, rather than popping in or vanishing instantly.
Everything is driven by the server and synced to clients, so it behaves the same in singleplayer and on a server.
TRUE_CLEAR slots right into the vanilla /weather command next to the others:
/weather true_clear [duration]
/weather clear— normal clear, clouds and all (unchanged from vanilla)./weather true_clear— clear skies, no clouds.durationis optional and works like the vanilla weather commands.
Requires permission level 2, same as the rest of /weather.
Assuming default game rules and no one forcing the weather, over a long session it shakes out to about:
| Weather | Share of the time |
|---|---|
CLEAR |
~42% |
TRUE_CLEAR |
~42% |
RAIN |
~14% |
THUNDER |
~1% |
In other words, TRUE_CLEAR and CLEAR split the old "clear" time down the
middle. Weather only cycles in dimensions with a sky (the Nether and End are left
as-is).
- Grab Fabric Loader and Fabric API.
- Drop
clear-sky.jarinto yourmods/folder, alongside Fabric API. - Do the same on the server if you're playing multiplayer — you'll want it on both sides so the clouds actually disappear for everyone.
./gradlew build
The jar lands in build/libs/.
- Minecraft 1.21.11
- Fabric Loader 0.19.3+
- Fabric API
- Java 21
MIT — see LICENSE. Do what you like with it.