Custom Time Cycle
Custom Time Cycle 是一个模组,允许通过简单的命令改变 Minecraft 白天和黑夜的持续时间,而无需更改刻速。它支持 Fabric 和 NeoForge。可以在服务器上使用(玩家客户端无需安装),也可在单人游戏中使用。
自 Minecraft 26.1 起,Custom Time Cycle 允许为时钟(clock)之间的每个时间标记更改持续时间和变化速率,这些时间标记由数据驱动。这使得对时钟时间流逝速率的控制更加精细。
该模组还修复了村民行为的一个小问题,使其在白天/黑夜持续时间比原版更长的情况下,仍能正确生成铁傀儡。
许可证
本模组采用 GNU LGPLv3 许可证。
捐赠
如果你喜欢这个模组,请考虑 捐赠。
Discord
如需支持或有任何问题,欢迎加入 我的 Discord。
版本支持
| Minecraft Version | Status |
|---|---|
| 26.3.x | ✅ Current |
| 26.2.x | ✔️ Available |
| 26.1.x | ✔️ Available |
| 1.21.11 | ✔️ Available |
| 1.21.9+10 | ✔️ Available |
| 1.21.6+7+8 | ✔️ Available |
| 1.21.5 | ✔️ Available |
| 1.21.4 | ✔️ Available |
| 1.21.2+3 | ✔️ Available |
| 1.21+1 | ✔️ Available |
| 1.20.5+6 | ✔️ Available |
| 1.20.4 | ✔️ Available |
| 1.20.1 | ✔️ Available |
我尽力保持对最新 Minecraft 版本的支持。由于我有时无法立即更新模组,因此对新版本的更新可能会有所延迟。
不支持的版本仍可下载,但不会获得新功能或错误修复。
NeoForge 移植版适用于 Minecraft 1.21+1 以及从 Minecraft 1.21.9 开始的版本。
使用方法
模组构建版本可在发布页面找到,也可在 Modrinth 上获取。
在 Fabric 环境下,需要安装 Fabric API。当服务端已安装该模组时,客户端无需安装。 每个周期性世界时钟的时间标记持续时间均可配置,并会在服务器重启/世界保存后保留设置。
对于客户端,可以在创建世界时通过选择顶部的“More”选项卡,然后点击“Time Cycle”按钮来配置世界的周期时间。你也可以在模组的全局配置界面中为所有新创建的世界配置默认的时间周期持续时间。在 Fabric 上可通过 ModMenu 模组访问全局配置,在 NeoForge 上则使用内置的模组菜单。全局配置存储在 .minecraft/config/customtimecyle.json 中。
此外,该模组还添加了一个简单的命令 /timecycle,可用于更改服务器和现有单人世界的周期时间。其用法如下:
-
/timecycle status- 显示一条简单的状态信息,展示当前维度中正在使用的各个时间段及其速率。
-
/timecycle set <dayduration> <nightduration>- 修改当前维度中 Minecraft 白天和夜晚的持续时间。
-
/timecycle set from <from> to <to> duration <duration>- 修改当前维度中两个时间标记之间的持续刻数。
-
/timecycle set from <from> to <to> rate <rate>- 修改当前维度中两个时间标记之间时间的流逝速率。
-
/timecycle reset -
重置当前维度中所有时间标记的速率。
-
/timecycle of <clock> ...- 允许运行上述所有命令,但针对的是指定的时钟,而非当前维度的时钟。
该模组所做的速率修改叠加在原版 /time rate 命令之上。
使用 /timecycle 命令需要 timecycle.command 权限或至少为 2 级的操作员等级。
整合包开发者还可以将以下文件放入 config 文件夹中,以预先配置服务器或客户端世界中时间周期的持续时间:
{
"daytime": <白天时间刻度>,
"nighttime": <夜晚时间刻度>
}
工作原理(技术说明)
自 Minecraft 26.1 起,游戏引入了“时钟”概念。在原版中,仅存在两个时钟,其中与此相关的主要是:
minecraft:overworld 时钟,用于主世界维度。
Minecraft 中的时钟控制着时间线,并且可以以自定义速率推进,尽管默认情况下,它们以与服务器的刻率相同的速率推进:每秒 20 刻。在原版中,可以使用 /time rate 命令为整个时钟配置此速率。
本模组允许你根据时间标记来配置时钟的推进速率。时间标记用于标识时钟上的特定时刻,例如 minecraft:day 代表一天的开始,或 minecraft:midnight 代表午夜。你或许在 /time set 命令中也见过这些标记。该模组为原版 minecraft:overworld 时钟添加了两个自定义时间标记:customtimecycle:sunrise(日出)和 customtimecycle:sunset(日落)。这两个标记主要是出于兼容旧版的原因而添加,并用于 /timecycle set <dayduration> <nightduration> 命令。
正如前文所述,只要时钟是周期性的(如 minecraft:overworld),此模组即可在任何时钟上运行。这使得它能够很好地与数据模组/模组通过数据包添加的、使用自有时钟的自定义维度配合工作。
Custom Time Cycle
Custom Time Cycle is a mod that allows changing the duration of Minecraft days and nights using a simple command, without changing tick speed. It is available for both Fabric and NeoForge. It can be used on servers (without being required on player clients), and in singleplayer.
Since Minecraft 26.1, Custom Time Cycle allows changing the duration/rate of change between every time marker for a clock, which are data-driven. This allows very granular control over the rate at which time for a clock progresses.
The mod also applies a small fix to villager behaviour, so that they still properly spawn iron golems with longer day/night durations than vanilla.
License
This mod is licensed under GNU LGPLv3.
Donating
If you like this mod, consider donating.
Discord
For support and/or any questions you may have, feel free to join my discord.
Version support
| Minecraft Version | Status |
|---|---|
| 26.3.x | ✅ Current |
| 26.2.x | ✔️ Available |
| 26.1.x | ✔️ Available |
| 1.21.11 | ✔️ Available |
| 1.21.9+10 | ✔️ Available |
| 1.21.6+7+8 | ✔️ Available |
| 1.21.5 | ✔️ Available |
| 1.21.4 | ✔️ Available |
| 1.21.2+3 | ✔️ Available |
| 1.21+1 | ✔️ Available |
| 1.20.5+6 | ✔️ Available |
| 1.20.4 | ✔️ Available |
| 1.20.1 | ✔️ Available |
I try to keep support up for the latest drop of Minecraft. Updates to newer Minecraft versions may be delayed from time to time, as I do not always have the time to immediately update my mods.
Unsupported versions are still available to download, but they won't receive new features or bugfixes.
NeoForge ports are available for Minecraft 1.21+1 and for Minecraft 1.21.9 onwards.
Usage
Mod builds can be found on the releases page, as well as on Modrinth.
On Fabric, the Fabric API is required. When installed server-side, the mod is not required on clients. Durations of time markers can be configured for each periodic world clock and are saved across server restarts / world saves.
For clients, the time cycle of a world can be configured upon creation, by selecting the "More" tab at the top, then
clicking the "Time Cycle" button. You can also configure default time cycle durations for all new created worlds, in the mod's
global configuration screen. This can be accessed on Fabric using the ModMenu mod, and on NeoForge using the built-in mod menu.
Global configuration is stored in .minecraft/config/customtimecyle.json.
The mod also adds a simple command, /timecycle, which can be used to alter the time cycle on servers and existing singleplayer worlds.
Its usage is as follows:
/timecycle status- Shows a simple status message displaying which time durations and rates are currently in use in the current dimension.
/timecycle set <dayduration> <nightduration>- Modifies the durations of the Minecraft day and night in the current dimension.
/timecycle set from <from> to <to> duration <duration>- Modifies the duration in ticks between 2 time markers in the current dimension.
/timecycle set from <from> to <to> rate <rate>- Modifies the rate at which time progresses between 2 time markers in the current dimension.
/timecycle reset- Resets the rates of all time markers in the current dimension.
/timecycle of <clock> ...- Allows running all of the above commands, but for that specific clock instead of the one of the current dimension.
The rate modifications the mod makes apply on top of the vanilla /time rate command.
Using the /timecycle command requires the timecycle.command permission or operator level 2.
Modpack developers can also include the following file in the config folder to preconfigure time cycle durations for
worlds on servers or clients:
{
"daytime": <day time ticks>,
"nighttime": <night time ticks>
}
How it works (technical explanation)
Since Minecraft 26.1, the game now has a "clock" concept. In vanilla, there are only 2 clocks, and only 1 that matters here:
the minecraft:overworld clock, for the overworld dimension.
Clocks in Minecraft control timelines, and can progress at a custom rate, though
by default, they progress at the same rate as the server's tick rate: 20 ticks per second. In vanilla, this rate can
be configured for the entire clock, using the /time rate command.
This mod simply allows configuring the rate at which a clock progresses on a time marker
basis. Time markers mark a certain moment along the clock, such as minecraft:day for the start of the day,
or minecraft:midnight for midnight. You'll have seen these in the /time set command too. The mod adds 2 custom time
markers for the vanilla minecraft:overworld clock, customtimecycle:sunrise and customtimecycle:sunset. These
are added primarily for legacy reasons, and are used for the /timecycle set <dayduration> <nightduration> command.
As was said before, this mod can work on any clock, as long as it is a periodic one, like minecraft:overworld. This makes
it work well with custom dimensions added by datapacks/mods that use their own clock.
下载 Custom Time Cycle
下载 Custom Time Cycle
下载 Custom Time Cycle
下载 Custom Time Cycle
下载 Custom Time Cycle
下载 Custom Time Cycle
下载 Custom Time Cycle
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Time Cycle
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Time Cycle
下载 Custom Time Cycle
- 更新至 26.3。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
让你能够在世界中的任何位置定位结构。
模组
? 使用命令保存和加载玩家或他人的背包/套装。
模组
一堆修复
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
模组
一个基于构建器的 Minecraft 配置库!
评论 0
登录后参与评分
还没有评论,来抢沙发吧