-
Notifications
You must be signed in to change notification settings - Fork 0
pack_author_guide
Jump to 日本語: 日本語
This document is a memo for modpack authors who want to tune Replicated Integration matter values. It focuses on the operations needed to balance a pack, not the internal implementation.
Replicated Integration first reads recipes from supported mods and estimates matter values from inputs to outputs.
If the results do not match the pack's intent, it is easiest to adjust in this order:
- Use
/repint matter get ...to see the current value. - Use
/repint matter deny ...to stop items you do not want to replicate. - Use
/repint matter set ...to try explicit values. - If it looks good, run
/repint committo save to config. - Move grouped rules into KubeJS.
Single item:
/repint matter get item minecraft:diamondTag:
/repint matter get item_tag minecraft:logsFluid:
/repint matter get fluid minecraft:lavaMekanism:
# 1.21.1
/repint matter get chemical mekanism:oxygen
/repint matter get chemical_tag c:gases/oxygen
# 1.20.1
/repint matter get gas mekanism:oxygen
/repint matter get gas_tag mekanism:oxygenYou can also view only a specific matter type.
/repint matter get item minecraft:diamond precious
/repint matter get item minecraft:ender_pearl enderMatter types:
earth, nether, organic, ender, metallic, precious, living, quantum
deny clears the matter value for the target. Explicit matter values are ignored.
/repint matter deny item minecraft:bedrock
/repint matter deny item_tag minecraft:logs
/repint matter deny fluid minecraft:lavaMekanism:
# 1.21.1
/repint matter deny chemical mekanism:spent_nuclear_waste
# 1.20.1
/repint matter deny gas mekanism:spent_nuclear_wasteIf you believe a material family should never be replicated, deny is the safest first choice.
set assigns an explicit matter value.
/repint matter set item minecraft:diamond precious 64
/repint matter set item_tag minecraft:logs organic 8
/repint matter set fluid minecraft:lava nether 0.001Setting a matter type to 0 removes that type from the explicit values.
/repint matter set item minecraft:diamond precious 0You can also specify all matter types at once.
/repint matter set item minecraft:nether_star all earth 0 nether 0 organic 0 ender 128 metallic 0 precious 256 living 0 quantum 64reset removes runtime overrides.
/repint matter reset item minecraft:bedrock
/repint matter reset item_tag minecraft:logsRecipe calculations, Replication matter values, Replicated Integration supplemental values, config, and KubeJS values remain. Use this to undo temporary command adjustments.
Changes made by commands are first saved as world-specific runtime overrides.
<world>/data/replicated_integration/matter_overrides.json
Running /repint commit moves the runtime overrides to the shared config.
/repint commitSaved to:
config/replicated_integration-matter_overrides.json
Values saved in config are used in other worlds as shared pack settings.
Matter values come from multiple places. Later entries are stronger.
- Replicated Integration supplemental node values
- Replication matter value recipe
- config override
- KubeJS override
- runtime override
Within the same priority, later rules win. KubeJS can deny in bulk and then set a subset back.
For pack tuning, tag- or mod-level selectors are more convenient than single items.
Example:
/repint matter deny item_tag c:storage_blocks/raw_uranium
/repint matter set item_tag c:ingots/silver metallic 16KubeJS can also target entire mods.
RepIntEvents.matter(event => {
event.deny(RepInt.itemMod("some_mod"))
event.set(RepInt.item("some_mod:balanced_item"), { metallic: 32 })
})Replication tags affect whether items can be replicated or disintegrated.
-
replication:cant_be_scanned: cannot be scanned and therefore not replicatable. -
replication:cant_be_disintegrated: cannot be disintegrated. -
replication:skip_calculation: clears Replication-side calculations. Replicated Integration respects this conservatively in 1.21.1. -
replication:ignore_crafting_result: ignores crafting remaining items. Replicated Integration respects this conservatively in 1.21.1.
If you only want to stop matter calculation, /repint matter deny or KubeJS event.deny(...) expresses the intent more clearly.
The Replication Index is convenient for in-game checks.
-
R: show only replicatable items. -
D: show only disintegratable items. -
Rep: rounding display close to Replication consumption. -
Exact: display close to calculated values, with precise values in tooltips.
While tuning a pack, reopen the Index after command changes to verify the result.
Replicated Integration does not account for recipe energy cost, time, machine tier, or equipment difficulty.
As a result, materials that require expensive machinery can look cheap in matter calculations. Deny them or set a higher explicit value.
この文書は、modpack 作者が Replicated Integration の matter value を調整するためのメモです。内部実装ではなく、pack のバランスを整えるために必要な操作だけを扱います。
Replicated Integration は、まず対応 mod のレシピを読み、入力素材から出力素材の matter value を推定します。
その結果が pack の意図に合わない場合は、次の順番で調整すると楽です。
-
/repint matter get ...で現在の値を見る。 -
/repint matter deny ...で複製させたくないものを止める。 -
/repint matter set ...で明示値を試す。 - 良さそうなら
/repint commitで config に保存する。 - まとまったルールは KubeJS に移す。
単体のアイテム:
/repint matter get item minecraft:diamondタグ:
/repint matter get item_tag minecraft:logs流体:
/repint matter get fluid minecraft:lavaMekanism:
# 1.21.1
/repint matter get chemical mekanism:oxygen
/repint matter get chemical_tag c:gases/oxygen
# 1.20.1
/repint matter get gas mekanism:oxygen
/repint matter get gas_tag mekanism:oxygen特定の matter type だけを見ることもできます。
/repint matter get item minecraft:diamond precious
/repint matter get item minecraft:ender_pearl endermatter type:
earth, nether, organic, ender, metallic, precious, living, quantum
deny は、その対象の matter value を空にします。明示 matter value があっても無視されます。
/repint matter deny item minecraft:bedrock
/repint matter deny item_tag minecraft:logs
/repint matter deny fluid minecraft:lavaMekanism:
# 1.21.1
/repint matter deny chemical mekanism:spent_nuclear_waste
# 1.20.1
/repint matter deny gas mekanism:spent_nuclear_waste「この素材系列は複製されるべきではない」と思ったら、まず deny が一番安全です。
set は対象に明示 matter value を与えます。
/repint matter set item minecraft:diamond precious 64
/repint matter set item_tag minecraft:logs organic 8
/repint matter set fluid minecraft:lava nether 0.001同じ対象に対して matter type を 0 にすると、その matter type は明示値から外れます。
/repint matter set item minecraft:diamond precious 0全 matter type をまとめて指定することもできます。
/repint matter set item minecraft:nether_star all earth 0 nether 0 organic 0 ender 128 metallic 0 precious 256 living 0 quantum 64reset は runtime override を消します。
/repint matter reset item minecraft:bedrock
/repint matter reset item_tag minecraft:logsレシピ計算、Replication の matter value、Replicated Integration が同梱している補助値、config、KubeJS の値は残ります。コマンドで一時的に触った分だけ戻したいときに使います。
コマンドで行った変更は、まずワールドごとの runtime override として保存されます。
<world>/data/replicated_integration/matter_overrides.json
/repint commit を実行すると、runtime override が共通 config に移されます。
/repint commit保存先:
config/replicated_integration-matter_overrides.json
config に保存した値は、別ワールドでも同じ pack 設定として使われます。
matter value は複数の場所から来ます。後ろほど強いです。
- Replicated Integration の補助 node value
- Replication の matter value recipe
- config override
- KubeJS override
- runtime override
同じ優先順位の中では、後に追加されたルールが勝ちます。KubeJS で「大きく deny してから一部だけ set し直す」ような書き方ができます。
pack 調整では、単体アイテムよりタグや mod 単位の指定が便利です。
例:
/repint matter deny item_tag c:storage_blocks/raw_uranium
/repint matter set item_tag c:ingots/silver metallic 16KubeJS では mod 単位の指定もできます。
RepIntEvents.matter(event => {
event.deny(RepInt.itemMod("some_mod"))
event.set(RepInt.item("some_mod:balanced_item"), { metallic: 32 })
})Replication のタグは、複製や分解の可否に影響します。
-
replication:cant_be_scanned: スキャン不可。複製対象にしない。 -
replication:cant_be_disintegrated: 分解不可。 -
replication:skip_calculation: Replication 側の計算を空にする。Replicated Integration も 1.21.1 では消極的に尊重します。 -
replication:ignore_crafting_result: クラフト残余アイテムの差し引きを無視する。Replicated Integration も 1.21.1 では消極的に尊重します。
pack 側で matter を止めたいだけなら、基本的には /repint matter deny や KubeJS の event.deny(...) のほうが意図を表しやすいです。
ゲーム内確認には Replication Index が便利です。
-
R: 複製可能なアイテムだけを見る。 -
D: 分解可能なアイテムだけを見る。 -
Rep: Replication の実消費に近い丸め表示。 -
Exact: 計算値に近い表示。厳密な値は tooltip。
pack の調整中は、コマンドで変更してから Index を開き直すと確認しやすいです。
Replicated Integration はレシピのエネルギーコスト、時間、機械の段階、設備の難易度を基本的には見ません。
そのため、高コスト機械でだけ作れる素材が、matter 計算上は安く見えることがあります。そういう素材は deny するか、明示値を高めに設定してください。