Custom Daytime 插件
使用这款轻量级插件/模组,自定义 Minecraft 的昼夜循环,并体验更平滑的夜晚!
自 v2.0.0 版本起,配置文件已从 config.yml 更改为 config.conf。
旧的 config.yml 文件不兼容且无法使用。
配置格式也已更改,因此必须手动迁移旧的结构/语法。
功能特性
-
可配置的白天与黑夜时长
通过配置文件设置 Minecraft 白天和黑夜的持续时间(以分钟为单位)。支持小数值以实现更精确的时间控制(例如,0.5 代表 30 秒)。
-
睡眠时加速夜晚流逝
时间不会在玩家睡觉时瞬间跳过夜晚,而是当足够多的玩家入睡后,时间会平滑地加速流逝。此功能可在配置中禁用。
-
易于使用的配置
所有数值均可在 config.conf 文件中调整。每个世界的数值均单独配置。
Custom Daytime 支持多世界。复制 "minecraft:overworld" 代码块,将其粘贴到配置文件末尾,重命名为目标世界的键名,并修改其中的数值。
"minecraft:overworld" {
# 白天循环的长度(分钟)
# 默认值:10.0
dayLength=10.0
# 夜晚循环的长度(分钟)
# 默认值:10.0
nightLength=10.0
# 启用或禁用在足够多玩家睡觉时加速夜晚流逝
# False:使用原版“睡觉跳过夜晚”机制
# 默认值:true
accelerationEnabled=true
# 睡眠期间夜晚加速的倍率
# 示例:nightLength=10.0 (= 600 秒) 且 AccelerationMultiplier=100.0 -> 加速过程持续 6 秒
# 默认值:100.0
AccelerationMultiplier=100.0
}
许可证
本项目根据 GNU General Public License v3.0 许可协议授权。您可以自由使用、修改和分发本项目,但任何衍生作品也必须采用相同的条款进行许可。
Custom Daytime Plugin
Customize Minecraft's day/night cycle and experience smoother nights with this lightweight plugin/mod!
Since v2.0.0, the configuration file was changed from config.yml to config.conf.
Old config.yml files are not compatible and will not work.
The configuration format has also changed, so the old structure/syntax must be migrated manually.
Features
-
Configurable Day & Night Lengths
Set the duration of Minecraft's day and night in minutes via the config. Accepts decimal values for more precise timings (e.g., 0.5 for 30 seconds).
-
Accelerate Night While Sleeping
Instead of instantly skipping the night, time will smoothly accelerate when enough players sleep. This feature can be disabled in config.
-
Easy-to-Use Config
All values are adjustable in the config.conf file. All values are configured for each world separately.
Custom Daytime supports multiple worlds. Copy the "minecraft:overworld" block, paste it at the end of the config, rename it to the target world key, and edit the values.
"minecraft:overworld" {
# Length of the daytime cycle in minutes
# Default: 10.0
dayLength=10.0
# Length of the nighttime cycle in minutes
# Default: 10.0
nightLength=10.0
# Enable or disable night acceleration when enough players sleep
# False: use vanilla sleep-to-skip-night mechanic
# Default: true
accelerationEnabled=true
# Multiplier for night acceleration during sleep
# Example: nightLength=10.0 (= 600 seconds) and AccelerationMultiplier=100.0 -> Acceleration lasts 6 seconds
# Default: 100.0
AccelerationMultiplier=100.0
}
License
This project is licensed under the GNU General Public License v3.0. You are free to use, modify, and distribute the project, but any derivative works must also be licensed under the same terms.
评论 0
登录后参与评分
还没有评论,来抢沙发吧