Configuration
Timeline 具有服务器权威和仅客户端配置。
TLDR
- 服务器配置控制日历、自定义目标、追溯导入和时间线实体覆盖。
- 客户端配置仅控制 day-toast 字体。
- 大多数服务器设置都是热可读的,日历设置在更改时会主动广播。
服务器配置 (rpgtimeline-server.toml)
主要部分:
calendarchronicle
日历键
monthNamesmonthAbbreviationsyearSuffixdaysPerMonthuseCustomFontuseSereneSeasonsseasonMonths
编年史键
retroactiveAdvancementImportEnabledretroactiveAdvancementImportIncludeRecipesretroactiveAdvancementImportMapByRealDayscustomGoalseventTimeframes
客户端配置
客户端密钥:
calendar.dayToastFont:VANILLA、GOTHIC12或GOTHIC24
示例(概念)
{
"calendar": {
"monthNames": ["Dawnroot", "Blossomwake", "Greengale", "Suncrest"],
"yearSuffix": "A.N.",
"daysPerMonth": 28,
"useSereneSeasons": true
},
"chronicle": {
"retroactiveAdvancementImportEnabled": true,
"customGoals": "break_block|minecraft:stone|1&100&1000",
"eventTimeframes": "priority=100;days=4;layer=entity;render=entity;type=advancement;id=minecraft:end/kill_dragon;entity=minecraft:ender_dragon"
}
}热重载注意事项
- 日历设置在服务器端进行哈希处理,并在更改时推送到客户端。
- 自定义目标和事件时间范围规则是从当前配置文本中解析的,并在源文本哈希更改时刷新。
- 新行为应用于下一个相关同步/渲染周期。
深入探讨:什么不是即时的
追溯进度导入在服务器启动时运行。稍后更改追溯导入标志将不会重播之前的启动导入逻辑,直到下次服务器启动为止。
当前时间范围规则解析器支持配置匹配的实体渲染覆盖 (render=entity)。无效的规则行会被安全地跳过。
支持这个项目
喜欢这个 Wiki 和这些模组吗?
你的每一份支持都能帮助我持续开发新功能、完善文档并发布更新。