
同步系统时间
这个简单的模组添加了一个新的游戏规则,使游戏内的时间反映系统(现实)时间。也就是说,例如,如果你那里是早上 8 点,你的世界也会是早上 8 点。
使用方法
只有服务器需要安装此模组才能正常工作,用户不需要在客户端上安装它。在客户端上安装它只会将新的游戏规则添加到创建新世界时的游戏规则菜单中,它们出现在一个新的类别中,并且完全本地化。
一旦安装了该模组,你所要做的就是通过使用 /gamerule syncSystemTime true 命令将 syncSystemTime 游戏规则设置为 true。 你可以随时关闭此游戏规则以恢复正常的时间流。
注意:在同步期间,游戏内的天数计数器不会推进。
文档
该模组附带 3 个新的游戏规则,如下表所示
| 名称 |
描述 |
默认值 |
syncSystemTime |
游戏内时间是否应跟随系统时间。同步参数可以通过其他游戏规则进行修改。尊重 doDaylightCycle,当其为 false 时将暂停同步。 |
false |
gameTimeOffset |
使用时钟偏移来同步。默认值 -6000 将使游戏内 6 点与真实 6 点对齐。 |
-6000 |
systemTimeOffset |
使用秒数偏移来同步。适用于模拟不同的时区。 |
0 |
游戏规则菜单截图:

翻译
此模组添加的唯一字符串出现在游戏规则菜单中,即新类别的名称以及每个新规则的名称和描述。如果你想翻译它们,请随时在链接的仓库中打开带有新翻译的 PR!
鸣谢
特别感谢 Fabric Modding Discord 服务器上的朋友们回答我的许多问题,这帮助我制作了这个模组!

Sync System Time
This simple mod adds a new gamerule to make in game time reflect system (real) time. That means, for example, if it's 8am for you, it will be 8am in your world too.
Usage
Only the server needs this mod installed to work, users do not need to have it installed on their clients. Installing it on the client will only add the new gamerules to the Game Rules menu when creating a new world, they appear in a new category and are fully localized.
Once the mod is installed, all you have to do is change syncSystemTime gamerule to true by using the /gamerule syncSystemTime true command. You can turn off this game rule at any time to return to normal time flow.
Note: The in game day counter does not progress while synchronizing.
Documentation
The mod comes with 3 new gamerules explained in the table below
| Name |
Description |
Default Value |
syncSystemTime |
Whether the in game time should follow system time. Synchronization parameters can be modified via other gamerules. Respects doDaylightCycle which will pause synchronization when false. |
false |
gameTimeOffset |
Offsets synchronization by using ticks. Default value of -6000 will make in game 6am match real 6am. |
-6000 |
systemTimeOffset |
Offsets synchronization by using seconds. Useful for simulating different time zone. |
0 |
Screenshot of Game Rules menu:

Translation
The only strings added by this mod appear in Game Rules menu, that is name of the new category as well as name and description for each of the 3 gamerules. If you want to translate them, then feel free to open PRs with new translations on the linked repository!
Credits
Special thanks to people on Fabric Modding Discord server for answering my many questions which helped me make this mod!
评论 0
登录后参与评分
还没有评论,来抢沙发吧