Better Moon Phases
将 Minecraft 默认的月相周期(8天,共8个单日阶段)替换为真实的29.530589天的朔望月,并添加了天文上准确的月亮升起与落下时间,同时将白天时长延长至现实世界的1小时(白天和黑夜各30分钟)。
它同样适用于多人游戏:月相由服务器决定并同步给所有客户端,无需客户端安装资源包。
Spoiler

安装
- 将
Realistic Moon Phase.zip 放入 <你的世界目录>/datapacks/。
- 将
Realistic Moon Phase Resourcepack.zip 放入 .minecraft/resourcepacks/,并在“选项”>“资源包”中启用它。在服务器上,要么每位玩家都安装它,要么将其设置为服务器资源包。
- 加入世界(或运行
/reload),然后执行 /function realistic_moon:info。
在已有世界中,初始阶段取决于世界时钟已经运行的时长。若想从特定阶段开始,请使用 /function realistic_moon:phase/[name]。
命令
| 命令 |
效果 |
/function realistic_moon:info |
显示当前阶段、周期百分比以及距离下一次满月剩余的时间 |
/function realistic_moon:phase/full_moon* |
将月亮设置为所选阶段,且不改变一天中的时间 |
/function realistic_moon:day_length/one_hour |
设置一天等于现实中的1小时(默认值) |
/function realistic_moon:day_length/normal |
恢复原版20分钟的一天时长 |
*注:共有8个可用阶段:full_moon、waning_gibbous、third_quarter、waning_crescent、new_moon、waxing_crescent、first_quarter、waxing_gibbous。
统计
| 功能 |
原版 |
Better Moon Phases |
| 游戏内一天 |
20 现实分钟 |
60 现实分钟 |
| 月相周期 |
8 天(游戏内 2 小时 40 分钟) |
29.53 天(约 29.5 游戏内小时) |
| 各阶段持续时间 |
1 天(20 分钟) |
3.69 天(约 3.7 小时) |
⚠️ 将高精度天文数据与 1 小时的游戏内昼夜周期结合,会导致一个完整月相周期耗费大量现实时间。若要在保持比例精度的同时缩短周期,你只需更改 一个数值:在 data/minecraft/timeline/moon.json 中更新 period_ticks(如果你希望相位窗口仍居中显示,请按比例缩放关键帧的 ticks)。
| period_ticks |
周期长度 |
配合 1 小时昼夜周期 |
| 708734 |
29.53 天 |
~29.5 游戏内小时(默认设置) |
| 354367 |
14.77 天 |
~14.8 游戏内小时 |
| 236245 |
9.84 天 |
~9.8 游戏内小时 |
或者,你可以保留真实的周期并恢复正常白昼速度。运行 /function realistic_moon:day_length/normal 可将总周期缩短至约 9 小时 50 分钟的游戏时间。
局限性
- 夜间光照变化仅影响视觉效果(
sky_light_factor)。生物生成所需的光照等级未作调整,因此新月黑暗夜晚的危险程度并不高于满月之夜。
- 覆盖
data/minecraft/timeline/moon.json,因此会与其他编辑该时间线或修改 minecraft:visual/moon_angle、sky_light_factor 或 star_brightness 属性的资源产生冲突。
兼容性
- 由于缺少时间线功能,与 1.21.x 及更早版本不兼容。
- 覆盖
data/minecraft/timeline/moon.json:这将与其他修改相同时间线或 minecraft:visual/moon_angle 属性的数据包发生冲突。
路线图(未来更新)
我们正积极致力于扩展 Better Moon Phases 的天体力学机制。
以下是我们对未来的规划愿景:
- ✅ 黑暗无月之夜: 根据月相动态调整夜间亮度,使新月时漆黑一片,满月时明亮如昼。
- 扩展版本支持: 扩大兼容性以支持其他 Minecraft 版本。
- 稀有天文事件: 引入遮挡太阳的日食,以及夜间诡异的红月(血月)。
- 复杂机制与轨道: 实现倾斜的行星自转(轴倾斜),以模拟真实的天文季节变化。
- 可见行星: 在夜空中添加经过精确追踪、遵循真实轨迹运行的可见行星。
- 日历系统: 一个功能性的游戏内日历,用于追踪天文事件,并与现实世界的日历相对应。
- 完整模组实现: 最终目标是将此项目从数据包演变为一个完整的独立模组,这将使我们摆脱原版时间线的限制,并充分实现所有这些特性。
Better Moon Phases
Replaces Minecraft's default moon cycle (8 days, 8 single-day phases) with the real synodic month of 29.530589 days, adds astronomically correct moonrise and moonset, and extends the day duration to 1 real-world hour (30 minutes of daylight and 30 minutes of night).
It works on multiplayer too: the lunar phase is determined by the server and synced to all clients, requiring no client-side resource pack.
Spoiler

Installation
- Drop
Realistic Moon Phase.zip into <your world>/datapacks/.
- Put
Realistic Moon Phase Resourcepack.zip into .minecraft/resourcepacks/ and enable it in Options > Resource Packs. On a server, either every player installs it or you set it as the server resource pack.
- Join the world (or run
/reload), then /function realistic_moon:info.
On an existing world, the starting phase depends on how long the world clock has already been running. If you want to start from a specific phase, use /function realistic_moon:phase/[name].
Commands
| Command |
Effect |
/function realistic_moon:info |
Shows current phase, cycle percentage, and time remaining until the next full moon |
/function realistic_moon:phase/full_moon* |
Sets the Moon to the chosen phase without changing the time of day |
/function realistic_moon:day_length/one_hour |
Sets 1 real-hour days (default) |
/function realistic_moon:day_length/normal |
Restores the vanilla 20-minute day length |
Note: 8 available phases: full_moon, waning_gibbous, third_quarter, waning_crescent, new_moon, waxing_crescent, first_quarter, waxing_gibbous.
Statistics
| Feature |
Vanilla |
Better Moon Phases |
| In-game Day |
20 real min |
60 real min |
| Lunar Cycle |
8 days (2h 40m in-game) |
29.53 days (~29.5 in-game hours) |
| Phase Duration |
1 day (20 min) |
3.69 days (~3.7 hours) |
⚠️ Combining high astronomical accuracy with 1-hour day lengths makes a full cycle take a significant amount of real-world time. To shorten it while preserving proportional accuracy, you only need to change one number: in data/minecraft/timeline/moon.json, update period_ticks (and scale the keyframe ticks by the same factor if you want phase windows to remain centered).
| period_ticks |
Cycle Length |
With 1-Hour Days |
| 708734 |
29.53 days |
~29.5 in-game hours (default setting) |
| 354367 |
14.77 days |
~14.8 in-game hours |
| 236245 |
9.84 days |
~9.8 in-game hours |
Alternatively, you can leave the period realistic and restore normal day speed. Running /function realistic_moon:day_length/normal brings the total cycle to ~9h 50m of play time.
Limitations
- Night lighting changes are visual (
sky_light_factor). Mob spawning light levels are untouched, so a dark new-moon night is not more dangerous than a full-moon one.
- Overrides
data/minecraft/timeline/moon.json, so it conflicts with anything else that edits that timeline or the minecraft:visual/moon_angle, sky_light_factor or star_brightness attributes.
Compatibility
- Incompatible with 1.21.x and earlier due to missing timeline features.
- Overrides
data/minecraft/timeline/moon.json: this will conflict with other datapacks modifying the same timeline or the minecraft:visual/moon_angle attribute.
Roadmap (Future Updates)
We are actively working on expanding the celestial mechanics of Better Moon Phases.
Here is our vision for the future:
- ✅ Dark Moonless Nights: Dynamic adjustments to nighttime brightness based on the lunar phase, making New Moons pitch-black and Full Moons bright.
- Expanded Version Support: Expanding compatibility to support other Minecraft versions.
- Rare Celestial Events: The introduction of Solar Eclipses blocking out the sun, and eerie Red Moons (Blood Moons) during the night.
- Complex Mechanics & Orbits: Implementing inclined planetary rotations (axial tilt) to simulate true astronomical seasons.
- Visible Planets: Adding accurately tracked, visible planets to the night sky that follow realistic trajectories.
- Calendar System: A functional in-game calendar that tracks celestial events, complete with real-world calendar correspondences.
- Full Mod Implementation: The ultimate goal is to evolve this project from a datapack into a complete standalone mod, which will allow us to break free from vanilla timeline limitations and fully realize all these features.
评论 0
登录后参与评分
还没有评论,来抢沙发吧