本模组是 Create 模组的附加组件(更准确地说,是一个优化模组)。它仅在 Factory Gauge(工厂仪表)设置为 Mechanical Craft(机械制作)模式时生效。
该模组修改了 Factory Gauge 的行为:在使用 Mechanical Craft 模式时,单个请求包裹内包含的最大制作材料组数从原来的 1 组提升至 64 组。
其发送的包裹与 JEI 到 Create 库存方法(即按住 Shift 并点击“+”按钮)生成的包裹完全相同——即包含最多 64 组制作原料的包裹——并且 Re‑Packager(重新打包器)可以完全识别这些包裹。
以下以 Piston(活塞)为例说明模组的工作原理。假设库存中包含 200 Redstone Dust(红石粉)、150 Iron Ingots(铁锭)、400 Cobblestone(圆石)和 270 Planks(木板)。Factory Gauge 设置为保持 105 个活塞的库存,而当前库存中已有 5 个活塞。
首先,模组计算所需数量:105 − 5 = 100 个活塞。然后对 100 取模除以 64,得到余数为 36。接着检查可用原材料是否足以制作全部 100 个活塞。在本例中,木板不足;这些材料最多只能制作 90 个活塞。
因此,模组将指示 Factory Gauge 请求一个(或多个,具体取决于材料如何分布在单个或多个容器中)包含以下内容的包裹:
1 × 64 Redstone Dust,
1 × 64 Iron Ingots,
4 × 64 Cobblestone,
3 × 64 Planks,
这恰好填满包裹的所有 9 个槽位。
在原版 Create 模组的默认时间间隔过后,它将再发送一个(或多个)包含以下内容的包裹:
26 Redstone Dust,
26 Iron Ingots,
4 × 26 Cobblestone,
3 × 26 Planks。
直到库存补充了新的材料之前,不会再发送任何进一步的包裹。
This mod is an add‑on (or rather, an optimisation) for the Create mod. It only takes effect when the Factory Gauge is set to the Mechanical Craft mode.
It modifies the Factory Gauge so that, when using Mechanical Craft mode, the maximum number of crafting‑material sets contained in a single requested package is increased to 64 (originally it was only 1 set).
The packages it sends are exactly the same as those generated by the JEI‑to‑Create‑inventory method (i.e. holding Shift and clicking the “+” button) – i.e. packages that contain up to 64 sets of crafting ingredients – and they are fully recognisable by the Re‑Packager.
Here is how the mod works, using the Piston as an example. Suppose the inventory contains 200 Redstone Dust, 150 Iron Ingots, 400 Cobblestone, and 270 Planks. The Factory Gauge is set to keep 105 pistons in stock, and there are already 5 pistons in the inventory.
First, it calculates the required number: 105 − 5 = 100 pistons. It then takes the modulo of 100 by 64, giving 1 remainder 36. Next, it checks whether the available raw materials are sufficient to craft all 100 pistons. In this case, the planks are insufficient; the materials can only produce 90 pistons at most.
Consequently, the mod will instruct the Factory Gauge to request one (or more, depending on how the materials are distributed across one or multiple containers) package that contains:
1 × 64 Redstone Dust,
1 × 64 Iron Ingots,
4 × 64 Cobblestone,
3 × 64 Planks,
which exactly fills all 9 slots of the package.
After the default time interval of the vanilla Create mod has passed, it will then send another (or more) package containing:
26 Redstone Dust,
26 Iron Ingots,
4 × 26 Cobblestone,
3 × 26 Planks.
No further packages will be sent until the inventory has been replenished with fresh materials.
评论 0
登录后参与评分
还没有评论,来抢沙发吧