软加载器
基于 Data Loader。
允许指定目录中的数据包自动加载为启用或禁用状态,同时在数据包选择界面和游戏中保持可选且可调整。默认使用游戏目录下的 datapacks 目录。
可以配置初始加载顺序,仅在创建新世界时生效。之后,您可以根据需要重新排序或添加世界专属的数据包。内置数据包也可以设置为从加载顺序中自动加载。
配置
软加载器的配置文件将在设置或加载世界时创建于 config/soft_loader.json。如有需要,您也可以手动创建此文件。
enabled: string 可选
指定应自动加载为启用状态的数据包的目录。
- 默认为
datapacks。
- 对于服务器,会被
initial-disabled-packs 覆盖。
disabled: string 可选
指定应自动加载为禁用状态的数据包的目录。
- 对于服务器,会被
initial-enabled-packs 覆盖。
- 如果数据包列在
loadOrder 中,则会被其覆盖。
loadOrder: string[] 可选
仅在世界创建时强制执行,用于指定数据包的加载顺序。列在 loadOrder 中的数据包将自动启用,无论其来源目录如何。
- 可用于启用和排序内置数据包
- 忽略服务器的
initial-disabled-packs。
初始加载顺序对数据包的排序方式(从底部到顶部):
- 未列入加载顺序的内置数据包。
- 列入加载顺序的数据包。
- 其他数据包。
世界创建完成后,加载顺序不再使用。任何新添加的数据包将由原版游戏或模组加载器处理:通常添加到顶部。在此阶段,内置数据包无法再通过加载顺序自动启用。
Soft Loader
Based on Data Loader.
Allows datapacks in specified directories to automatically load as either enabled or disabled, while remaining optional and adjustable on the datapack selection screen and in-game. Uses the datapacks directory under the game directory by default.
An initial load order can be configured, applying only when setting up a new world. Afterward, you may reorder or add world-specific datapacks as desired. Built-in datapacks can also be set to load automatically from the load order.
Configuration
The Soft Loader config will be created at config/soft_loader.json upon setting up or loading a world. You may also create this
file manually if needed.
enabled: string optional
Specifies the directory for datapacks that should automatically load as enabled.
- Defaults to
datapacks.
- Overridden by
initial-disabled-packs for servers.
disabled: string optional
Specifies the directory for datapacks that should automatically load as disabled.
- Overridden by
initial-enabled-packs for servers.
- Overridden by
loadOrder if the datapack is listed there.
loadOrder: string[] optional
Enforced only on world setup, specifies the load order for datapacks. Datapacks listed in loadOrder will
automatically be enabled regardless of its source directory.
- Can be used to enable and order built-in datapacks
- Ignores
initial-disabled-packs for servers.
How the initial load order sorts data packs (from bottom to top):
- Built-in datapacks not in the load order.
- Datapacks listed in load order.
- Other datapacks.
After world creation, the load order is no longer used. Any newly added datapacks are handled by vanilla or the mod loader: typically added to the top. At this stage, built-in datapacks can no longer be enabled automatically by the load order.
评论 0
登录后参与评分
还没有评论,来抢沙发吧