功能介绍
原版 Minecraft 中整个世界的天气状态是统一的。Localized Weather 将其替换为一个由 256×256 方块区域组成的网格,每个区域都按照自己的节奏独立运行天气系统——并平滑过渡边界,让你看不到任何生硬的切割线。
结果是带有地理特征的天气。风暴有其所在位置、来源方向以及行进方向。
特性
| 特性 | 实际效果 | |
|---|---|---|
| ?️ | 局部区域 | 每 256×256 方块区域独立运行各自的天气 |
| ⛈️ | 移动雷暴单体 | 单个风暴单元沿风向漂移,经历生成到消散的完整生命周期 |
| ?️ | 雨幕与雨带 | 每个风暴核心下方悬挂着倾斜的雨幕,后方伴有弧形拖尾雨带——即使风暴远在远处,画面依然保持绘制 |
| ? | 生物群系感知规则 | 无降水的生物群系保持干燥,寒冷生物群系将雨转化为雪,且每个区域的判定基于 5×5 地表采样,避免一块沙漠导致整个区域变干 |
| ? | 冰雹风暴 | 偶尔出现的冰冷阵风,附带自定义下落的冰雹粒子效果 |
| ?️ | 风驱动锋面 | 全局风向缓慢旋转;天气从上游相邻区域传播 |
| ?️ | 无缝过渡 | 雨、雾和天空颜色在区域边界之间通过双线性插值在 20 秒内平滑混合 |
| ☁️ | 风暴云层 | 风暴区域上方覆盖块状、Minecraft 风格的云层,远距离可见 |
| ? | 定向变暗 | 天空、雾和云层向接近的风暴方向变暗,而非均匀变暗 |
| ? | 定向雷声 | 雷声根据风暴方位播放,音量随距离变化 |
| ? | 兼容渲染器 | 驱动 Minecraft 自带的云层渲染器而非替换它,因此 VulkanMod 等模组仍可正常工作 |
工作原理
天气自动运行。无需配置任何内容,也无需学习任何命令。
| 阶段 | 持续时间 | 备注 |
|---|---|---|
| 晴朗天空 | 10 分钟 – 2.5 小时 | 随后有概率生成天气系统 |
| 雨 / 冰雹 / 雷暴 | 10 – 20 分钟 | 之后区域会再次放晴 |
| 区域过渡 | 20 秒 | 在边界处平滑融合,不会出现硬切换 |
| 风向转变 | 每 2.5 – 10 分钟 | 缓慢旋转;锋面跟随其变化 |
一个变得雷雨交加的区域会生成一个风暴单元——一个横跨 70–130 格、持续 4–10 分钟的移动核心,以每秒约 3–6 格的速度行进,并携带其雨墙和雨带一同移动。当核心经过你时,雨水随雨墙到来,并在其通过后停止。
超出雾视距离的风暴不会被剔除。它们的几何结构会以不变的外观大小投影到地平线上,因此数个区域外的雷暴仍可作为天际线上的雨墙被看到。
要求
- Minecraft 1.21.9 – 1.21.11,或 26.1 – 26.2(见下方的版本表)
- Fabric Loader 0.19.2+(适用于 1.21.x),0.19.5+(适用于 26.x)
- Fabric API
- 1.21.x 需要 Java 21,26.x 需要 Java 25
安装
- 安装 Fabric Loader 和 Fabric API —— 或者使用 NeoForge,它不需要这两者
- 将与你 Minecraft 版本和加载器匹配的 jar 文件放入
mods文件夹 - 启动游戏 —— 天气系统会自动接管后续流程
JAR 文件的命名规则为 localweather-<mod version>+<Minecraft version>[-loader].jar。
不带后缀的名称表示 Fabric 版本;带有 -quilt 和 -neoforge 后缀的分别是其他加载器版本。
例如,在 Minecraft 26.1.2 中:Fabric 版本的文件名为 localweather-1.4.0+26.1.2.jar,
NeoForge 版本的文件名为 localweather-1.4.0+26.1.2-neoforge.jar。
可选: Mod Menu 用于查看游戏内模组信息。
版本与加载器
| Minecraft | 构建目标 | Fabric API | Java |
|---|---|---|---|
| 1.21.9 | -Pmc=1.21.9 |
0.134.1+1.21.9 | 21 |
| 1.21.10 | -Pmc=1.21.10 |
0.138.4+1.21.10 | 21 |
| 1.21.11 | -Pmc=1.21.11 |
0.141.6+1.21.11 | 21 |
| 26.1, 26.1.1, 26.1.2 | -Pmc=26.1.2(默认) |
0.155.3+26.1.2 | 25 |
| 26.2 | -Pmc=26.2 |
0.159.0+26.2 | 25 |
单个仓库负责构建所有目标平台;每个目标对应 versions/ 目录下的一个文件。
1.21.x 和 26.x 系列保持独立的源代码目录,因为它们的 Minecraft 版本号命名方式不同——详见 docs/loader-support.md。
| 加载器 | 状态 |
|---|---|
| Fabric | ✅ 主要支持的加载器 |
| Quilt | ✅ 仅限 1.21.x — Quilt 未为 26.x 发布中间命名空间,因此不会构建 Quilt jar |
| NeoForge | ✅ neoforge/ 在 26.1.x 上 — 模拟、完整的客户端展示以及服务端 mixin,均与 Fabric 共享相同代码 |
| Forge | ? forge/ 在 26.1.x 上,级别与 NeoForge 相同 — 服务端模拟来自相同的共享代码,无客户端同步,非正式发布制品 |
有关完整说明,请参阅 docs/loader-support.md。
针对模组开发者
LocalWeatherAPI 允许其他模组查询任意位置的局部天气。
import net.fentbusgaming.localweather.api.LocalWeatherAPI;
// 当前位置的天气是什么?
WeatherZone.WeatherType weather = LocalWeatherAPI.getWeatherAt(world, pos);
if (LocalWeatherAPI.isThunderingAt(world, pos)) {
// 避雷针逻辑、生物生成、作物生长...
}
// 该位置是否处于移动风暴核心下方?
if (LocalWeatherAPI.isInStormCell(world, pos)) {
// 大雨、能见度降低...
}
// 天气来自何处?
double windX = LocalWeatherAPI.getWindDirectionX();
double windZ = LocalWeatherAPI.getWindDirectionZ();
此外还提供以下方法:getWeatherInZone、getTargetWeatherInZone、getTransitionProgress、isRainingAt、isHailingAt、getStormCells、getStormCellAt、toZoneCoords 和 getZoneSizeBlocks。
从源码构建
git clone https://github.com/rustybusgaming/LocalizedWeather.git
cd LocalizedWeather
./gradlew build # 默认目标版本 (26.1.2)
./gradlew build -Pmc=26.2 # 指定 versions/ 目录中的任意目标版本
./gradlew printTarget # 显示已解析的目标版本
1.21.x 目标版本需要 JDK 21,26.x 目标版本需要 JDK 25。你无需手动安装这些 JDK:如果本机未安装,Gradle 会在首次构建时自动下载匹配的 JDK。生成的 JAR 文件位于 build/libs/ 目录下,命名为 localweather-<mod version>+<minecraft version>.jar。
在 1.21.9 版本中,风暴云、冰雹粒子以及雨墙不会出现——该版本的 Fabric API 未暴露世界渲染钩子。其余功能均正常工作。
致谢
灵感来源于 Discord 上的 Mr. Random。
许可证
MIT
Localized Weather
Weather stops being a switch and starts being a place.
Rain, snow, hail and thunderstorms happen independently across the world — you can stand in sunshine and watch a storm roll in over the hills.
What it does
Vanilla Minecraft has one weather state for the entire world. Localized Weather replaces it with a grid of 256×256 block zones, each rolling its own weather on its own schedule — then blends the seams so you never see a hard edge.
The result is weather with geography. Storms have a place they are, a direction they came from, and a direction they are going.
Features
| Feature | What you actually see | |
|---|---|---|
| ?️ | Localized zones | Every 256×256 block zone runs its own weather independently |
| ⛈️ | Moving thunderstorm cells | Single-cell storms drift along the wind, grow, and dissipate on their own life span |
| ?️ | Rain wall & rain bands | A leaning curtain of rain hangs under each storm core, with trailing bands arcing behind it — and it stays drawn when the storm is far away |
| ? | Biome-aware rules | Biomes without precipitation stay dry, cold biomes turn rain into snow, and each zone is decided from a 5×5 surface sample so one desert patch doesn't dry out a whole zone |
| ? | Hailstorms | Occasional icy squalls with custom falling hail particles |
| ?️ | Wind-driven fronts | A global wind direction slowly rotates; weather propagates from upwind neighbours |
| ?️ | Seamless transitions | Rain, fog and sky colour blend bilinearly across zone boundaries over 20 seconds |
| ☁️ | Storm clouds | Blocky, Minecraft-style cloud layers over stormy zones, visible from far off |
| ? | Directional darkening | Sky, fog and clouds darken toward the approaching storm, not uniformly |
| ? | Directional thunder | Thunder plays from the bearing of the storm, with proximity-based volume |
| ? | Renderer-friendly | Drives Minecraft's own cloud renderer instead of replacing it, so mods like VulkanMod still work |
How it works
Weather happens automatically. There is nothing to configure and no commands to learn.
| Phase | Duration | Notes |
|---|---|---|
| Clear skies | 10 min – 2.5 h | Then a chance of weather rolls |
| Rain / hail / storm | 10 – 20 min | Before the zone clears again |
| Zone transitions | 20 s | Blended across the boundary, never a hard cut |
| Wind shift | every 2.5 – 10 min | Slowly rotates; fronts follow it |
A zone that turns thundery spawns a storm cell — a travelling core 70–130 blocks across that lives for 4–10 minutes, moves at roughly 3–6 blocks per second, and carries its rain wall and rain bands with it. When the core passes over you, the rain arrives with the wall and leaves once it has gone by.
Storms further away than the fog horizon are not culled. Their geometry is projected onto the horizon at unchanged apparent size, so a thunderstorm several zones out is still visible as a rain wall on the skyline.
Requirements
- Minecraft 1.21.9 – 1.21.11, or 26.1 – 26.2 (see the version table below)
- Fabric Loader 0.19.2+ on 1.21.x, 0.19.5+ on 26.x
- Fabric API
- Java 21 on 1.21.x, Java 25 on 26.x
Installation
- Install Fabric Loader and Fabric API — or NeoForge, which needs neither
- Drop the jar matching your Minecraft version and loader into your
modsfolder - Launch the game — the weather takes it from there
Jars are named localweather-<mod version>+<Minecraft version>[-loader].jar.
A plain name is the Fabric build; -quilt and -neoforge are the others.
For example, on Minecraft 26.1.2: localweather-1.4.0+26.1.2.jar for Fabric,
localweather-1.4.0+26.1.2-neoforge.jar for NeoForge.
Optional: Mod Menu for in-game mod info.
Versions & loaders
| Minecraft | Build target | Fabric API | Java |
|---|---|---|---|
| 1.21.9 | -Pmc=1.21.9 |
0.134.1+1.21.9 | 21 |
| 1.21.10 | -Pmc=1.21.10 |
0.138.4+1.21.10 | 21 |
| 1.21.11 | -Pmc=1.21.11 |
0.141.6+1.21.11 | 21 |
| 26.1, 26.1.1, 26.1.2 | -Pmc=26.1.2 (default) |
0.155.3+26.1.2 | 25 |
| 26.2 | -Pmc=26.2 |
0.159.0+26.2 | 25 |
One repository builds every target; each is a file in versions/.
The 1.21.x and 26.x lines keep separate source directories because Minecraft is
named differently between them — see docs/loader-support.md.
| Loader | Status |
|---|---|
| Fabric | ✅ Primary supported loader |
| Quilt | ✅ 1.21.x only — Quilt publishes no intermediate namespace for 26.x, so no Quilt jar is built there |
| NeoForge | ✅ neoforge/ on 26.1.x — the simulation, the full client presentation and the server-side mixins, all from the same shared code as Fabric |
| Forge | ? forge/ on 26.1.x, at the same level as NeoForge — server-side simulation from the same shared code, no client sync, not a release artifact |
See docs/loader-support.md for the full breakdown.
For mod developers
LocalWeatherAPI lets other mods query localized weather at any position.
import net.fentbusgaming.localweather.api.LocalWeatherAPI;
// What is the weather right here?
WeatherZone.WeatherType weather = LocalWeatherAPI.getWeatherAt(world, pos);
if (LocalWeatherAPI.isThunderingAt(world, pos)) {
// lightning-rod logic, mob spawning, crop growth...
}
// Is this position under a moving storm core?
if (LocalWeatherAPI.isInStormCell(world, pos)) {
// heavy rain, reduced visibility...
}
// Where is the weather coming from?
double windX = LocalWeatherAPI.getWindDirectionX();
double windZ = LocalWeatherAPI.getWindDirectionZ();
Also available: getWeatherInZone, getTargetWeatherInZone, getTransitionProgress, isRainingAt, isHailingAt, getStormCells, getStormCellAt, toZoneCoords and getZoneSizeBlocks.
Building from source
git clone https://github.com/rustybusgaming/LocalizedWeather.git
cd LocalizedWeather
./gradlew build # default target (26.1.2)
./gradlew build -Pmc=26.2 # any target in versions/
./gradlew printTarget # show the resolved target
Needs JDK 21 for the 1.21.x targets and JDK 25 for 26.x. You do not have
to install either: Gradle fetches a matching JDK on first build if your machine
has none. Jars land in build/libs/ as
localweather-<mod version>+<minecraft version>.jar.
On 1.21.9 the storm clouds, hail particles and rain wall are absent — Fabric API for that version exposes no world-render hook. Everything else works there.
Credits
Idea by Mr. Random on Discord.
License
MIT
下载 LocalizedWeather
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LocalizedWeather
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LocalizedWeather
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LocalizedWeather
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LocalizedWeather
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LocalizedWeather
下载 LocalizedWeather
下载 LocalizedWeather
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LocalizedWeather
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LocalizedWeather
参见
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
原版世界生成优化模组
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
一个基于构建器的 Minecraft 配置库!
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
让你能够在世界中的任何位置定位结构。
模组
简单的原版生物群系更新,包含有趣的怪物、方块等更多内容!
评论 0
登录后参与评分
还没有评论,来抢沙发吧