Custom Daytime

控制Minecraft的昼夜长度,并在玩家睡觉时平稳地快进黑夜,带来更沉浸式的体验。

资源图片
# 🌞 自定义昼夜插件 🌙 [![Modrinth 下载](https://img.shields.io/badge/Modrinth-Download-brightgreen?style=for-the-badge&logo=modrinth)](https://modrinth.com/plugin/custom-daytime) [![最新发布](https://img.shields.io/github/v/release/SeedimV/CustomDaytime?logo=modrinth&logoColor=white&style=for-the-badge)](https://modrinth.com/project/custom-daytime) [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg?style=for-the-badge)](https://github.com/SeedimV/CustomDaytime?tab=GPL-3.0-1-ov-file#readme) 使用这款轻量级的 Paper 插件自定义 Minecraft 的昼夜循环,并体验更流畅的夜晚! ## ✨ 特性 - **🕒 可配置的白天和黑夜时长** 通过配置文件设置 Minecraft 白天和黑夜的时长(以 **分钟** 为单位)。 接受小数,用于精确计时(例如 `0.5` 表示 30 秒)。 - **🌙 睡觉时快速前进黑夜** 不再立即跳过夜晚,当足够多的玩家睡觉时,时间会 **平滑加速**,从而创造更具沉浸感的体验。 与游戏规则 `playersSleepingPercentage` 配合使用。 - **⚙️ 易于使用的配置** 所有值都在 `config.yml` 文件中可调整: ```yaml # 白天循环的时长(分钟) dayLengthMinutes: 10.0 # 黑夜循环的时长(分钟) nightLengthMinutes: 10.0 # 睡觉时黑夜快进的时长(秒) nightFastForwardSeconds: 5.0 ``` ## 📥 安装 1. 从发布页面下载最新的 .jar 文件。 2. 将 .jar 文件放置在服务器的 plugins 文件夹中。 3. 启动您的服务器以生成默认配置。 4. 调整 config.yml 以设置您喜欢的昼夜时长和快进速度。 5. 重新启动或重新加载服务器以应用更改。 ## ⚡ 使用方法 - 安装后,插件将 **自动** 工作。 - 睡眠机制被替换为快进系统。 玩家不再立即跳过夜晚。 - 配置值灵活,因此您可以创建超短或超长的白天和夜晚。 ## 📝 配置选项 | 选项 | 描述 | 默认值 | |---------------------------|----------------------------------------------------|----------------| | `dayLengthMinutes` | 白天时长(分钟) | 10.0 (分钟) | | `nightLengthMinutes` | 黑夜时长(分钟) | 10.0 (分钟) | | `nightFastForwardSeconds` | 睡觉时黑夜快进所需时间(秒) | 5.0 (秒) | ## 📜 许可证 本插件采用 [GNU 通用公共许可证 v3.0](https://github.com/SeedimV/CustomDaytime/blob/master/LICENSE) 许可。 您可以自由使用、修改和分发该插件,但任何衍生作品也必须采用相同的条款授权。 ## 🌐 作者 作者:**Seedim** - GitHub: https://github.com/SeedimV - Modrinth: https://modrinth.com/user/SeedimV - 喝杯咖啡请我:https://buymeacoffee.com/seedim