promotional bannermobile promotional banner

Factory Gauge Enhance

Modify the Factory Gauge's maximum number of crafting‑material sets per requested package to 64 when in Mechanical Craft mode (was 1 set).

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.

The mod 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.

The Factory Gauge Enhance Team

profile avatar
  • 1
    Projects
  • 14
    Downloads