自定义日夜循环
完全掌控 Minecraft 中的时间。 此数据包允许你独立设置白天和夜晚的持续时间,同时保持完整的多玩家睡眠系统和准确的日期计数。
无论你是想要一个 24 小时实时服务器、拥有漫长夏日和短暂夜晚的体验,还是拥有无尽黑夜的硬核生存模式,此数据包都能通过原版命令实现这一切,无需模组。
✨ 功能特性
- 独立循环:将白天和夜晚设置为不同的长度(例如,60 分钟的白天和 5 分钟的夜晚)。
- 平滑的时间流逝:时间每刻(tick)平滑推进,而非跳跃式变化。
- 智能多玩家睡眠:设置跳过夜晚所需的玩家百分比(0% 到 100%)。
- 包含电影般的睡眠延迟:在满足所需百分比后,夜晚会等待 5 秒再结束,让玩家有足够时间看到“躺下”动画和屏幕渐暗效果,随后太阳才会升起。
- 准确的日期计数器:与其他跳时工具不同,此包会计算次日清晨的确切时间。你的 F3 界面中的日期计数器和本地难度会继续正确增加。
- 低性能消耗:优化了当玩家未睡觉时的检查频率,以减少卡顿。
?️ 指令
所有设置均可通过宏指令即时更改。你无需编辑任何文件。
时间设置
- /function custom_day:set_day {mins:60} 设置白天(太阳)持续 60 分钟。
- /function custom_day:set_night {mins:20} 设置夜晚(月亮)持续 20 分钟。
- /function custom_day:set_all {mins:30} 将白天和夜晚均设置为 30 分钟。
睡眠设置
- /function custom_day:sleep_percentage {percent:50} 设置跳过夜晚所需的玩家百分比。(示例:50 = 半数服务器玩家需入睡)
- /function custom_day:sleep_percentage {percent:100} 默认值。所有玩家必须入睡才能跳过夜晚。
- /function custom_day:sleep_percentage {percent:1} 仅需一人入睡即可跳过夜晚。
管理
- /function custom_day:init 重置系统,创建记分板并应用默认设置。
? 安装方法
- 下载 .zip 文件。
- 打开你的世界文件夹(单人游戏)或服务器目录。
- 将 zip 文件放入 datapacks 文件夹中。
- 在游戏中运行 /reload。
- 运行 /function custom_day:init 以完成设置。
⚠️ 卸载方法
由于此数据包手动管理日照周期,你必须按照以下步骤安全移除它,否则太阳将停止移动。
- 运行以下命令以恢复原版时间机制:/gamerule doDaylightCycle true
- 从 datapacks 文件夹中删除该数据包文件。
- 运行 /reload。
? 兼容性
Minecraft 版本:1.21+(需要支持宏参数功能)。
模组加载器:适用于原版、Fabric、Forge、Paper 和 Spigot。
Custom Day Cycle
Take full control of time in Minecraft. This datapack allows you to set the duration of Day and Night independently, while maintaining a fully functional multiplayer sleep system and accurate day counting.
Whether you want a 24-hour real-time server, long summer days with short nights, or a hardcore survival experience with endless nights, this datapack handles it all without mods—just vanilla commands.
✨ Features
- Independent Cycles: Set Day and Night to different lengths (e.g., a 60-minute Day and a 5-minute Night).
- Smooth Time Progression: Time advances smoothly every tick, not in choppy jumps.
- Smart Multiplayer Sleep: Set a required percentage of players to skip the night (0% to 100%).
- Includes a cinematic sleep delay: The night waits 5 seconds after the percentage is met, allowing players to see the "lying down" animation and screen fade before the sun rises.
- Accurate Day Counter: Unlike other time-skipping tools, this pack calculates the exact time for the next morning. Your F3 Day Counter and Local Difficulty will continue to increase correctly.
- Lag Friendly: Optimized to run minimal checks when players aren't sleeping.
?️ Commands
All settings can be changed on the fly using macro commands. You do not need to edit any files.
Time Settings
- /function custom_day:set_day {mins:60} Sets the Day (Sun) to last 60 minutes.
- /function custom_day:set_night {mins:20} Sets the Night (Moon) to last 20 minutes.
- /function custom_day:set_all {mins:30} Sets Both Day and Night to 30 minutes each.
Sleep Settings
- /function custom_day:sleep_percentage {percent:50} Sets the percentage of players required to sleep. (Example: 50 = Half the server must sleep)
- /function custom_day:sleep_percentage {percent:100} Default. Everyone must sleep to skip.
- /function custom_day:sleep_percentage {percent:1} Only one person needs to sleep to skip.
Administration
- /function custom_day:init Resets the system, creates scoreboards, and applies defaults.
? Installation
- Download the .zip file.
- Open your world folder (Singleplayer) or server directory.
- Place the zip file into the datapacks folder.
- Run /reload in-game.
- Run /function custom_day:init to complete the setup.
⚠️ Uninstallation
Because this datapack manages the daylight cycle manually, you must follow these steps to remove it safely, otherwise, the sun will stop moving.
- Run this command to restore vanilla time: /gamerule doDaylightCycle true
- Delete the datapack file from your datapacks folder.
- Run /reload.
? Compatibility
Minecraft Version: 1.21+ (Requires Macro arguments support).
Mod Loaders: Works on Vanilla, Fabric, Forge, Paper, and Spigot.
评论 0
登录后参与评分
还没有评论,来抢沙发吧