Replication Extended Registry – 数据与脚本
本模组内置了许多模组的物质价值配方(Replication),并提供了一个外部脚本系统,允许在不修改模组本身的情况下注册或覆盖物质价值。
内置物质价值(数据包)
在 data/rep_ext_reg/recipe/matter_values/items/ 目录下,模组包含了按模组分组的物质价值定义。这些是标准的 Replication replication:matter_value 配方,并随游戏一起加载。
已包含的模组
- Actually Additions
- Advanced AE
- Applied Energistics
- Applied Flux
- Applied Mekanistics
- Aquaculture
- Ars Nouveau
- Bumblezone
- Cataclysm
- Corail Tombstone
- Create
- Deeper Darker
- Draconic Evolution
- Ender IO
- Evilcraft
- Extended AE2
- Hostile Network
- Ice and Fire
- Immersive Engineering
- Industrial Foregoing
- Just Dire Things
- Mahoutsukai
- Megacells
- Mekanism
- Mekanism Generator
- MIFA
- Oritech
- Pneumaticcraft
- Powah
- Productive Bees
- Reliquary
- Roots Classic
- Sophisticated Backpack
- Supplementaries
- Synergy
- XNet
- Xycraft
(matter_values/items/ 下的文件夹名称使用蛇形命名法,例如 ars_nouveau、deeper_darker。)
脚本系统(外部脚本)
除了内置数据外,rep_ext_reg 还可以从可配置的文件夹中加载注册脚本。这些脚本是 JSON 文件,用于为物品(或物品标签)分配物质价值,并在 Replication 计算之后应用,因此你可以添加或覆盖数值,而无需更改模组或数据包。
- 路径: 在模组配置中设置 → dev → externalScriptsPath。默认值:
kubejs/external_scripts/rep_ext_reg。
- 格式: 每个 JSON 文件必须包含
"type": "rep_ext_reg",可选 "aggressive"(覆盖现有值)和 "entries" 数组。每个条目包含:
res: 物品 ID 列表(如 "minecraft:tnt")和/或带有 # 前缀的标签(如 "#c:ingots/lead")。一个条目中的多个 ID 共享相同的物质定义。
mat: 物质类型 → 数量列表,例如 [{"replication:earth": 10}]。
- 时机: 脚本在服务器启动和
/reload 时加载;一旦 Replication 完成其物质计算,数值就会被注入。
当创建脚本文件夹(或模组运行时),它会在该文件夹中自动生成一份 README,其中包含完整的格式描述和示例。创建文件夹,运行一次游戏,然后使用该目录中生成的 README.md 作为参考。
Replication Extended Registry – Data & scripting
This mod ships built-in matter value recipes (Replication) for many mods and provides an external scripting system to register or override matter values without editing the mod.
Built-in matter values (datapack)
Under data/rep_ext_reg/recipe/matter_values/items/ the mod includes matter value definitions grouped by mod. These are standard Replication replication:matter_value recipes and are loaded with the game.
Mods included
- Actually Additions
- Advanced AE
- Applied Energistics
- Applied Flux
- Applied Mekanistics
- Aquaculture
- Ars Nouveau
- Bumblezone
- Cataclysm
- Corail Tombstone
- Create
- Deeper Darker
- Draconic Evolution
- Ender IO
- Evilcraft
- Extended AE2
- Hostile Network
- Ice and Fire
- Immersive Engineering
- Industrial Foregoing
- Just Dire Things
- Mahoutsukai
- Megacells
- Mekanism
- Mekanism Generator
- MIFA
- Oritech
- Pneumaticcraft
- Powah
- Productive Bees
- Reliquary
- Roots Classic
- Sophisticated Backpack
- Supplementaries
- Synergy
- XNet
- Xycraft
(Folder names under matter_values/items/ use snake_case (e.g. ars_nouveau, deeper_darker).)
Scripting system (external scripts)
Besides the built-in data, rep_ext_reg can load register scripts from a configurable folder. Those scripts are JSON files that assign matter values to items (or item tags) and are applied after Replication’s calculation, so you can add or override values without changing the mod or the datapack.
- Path: Set in mod config → dev → externalScriptsPath. Default:
kubejs/external_scripts/rep_ext_reg.
- Format: Each JSON file must have
"type": "rep_ext_reg", optional "aggressive" (override existing values), and an "entries" array. Each entry has:
res: list of item IDs ("minecraft:tnt") and/or tags with # ("#c:ingots/lead"). Multiple IDs in one entry share the same matter definition.
mat: list of matter type → amount, e.g. [{"replication:earth": 10}].
- When: Scripts are loaded on server start and on
/reload; values are injected once Replication has finished its matter calculation.
When the scripts folder is created (or when the mod runs), it auto-generates a README in that folder with the full format description and examples. Create the folder, run the game once, and use the generated README.md there as reference.
评论 0
登录后参与评分
还没有评论,来抢沙发吧