Skip to content

Energy Component

Frinn38 edited this page Feb 21, 2022 · 5 revisions

This is the component that let your machine interact with the Forge Energy system, it is compatible with most modern mods (IC2 excluded) so any mods that use FE or RF will be able to insert or extract energy to and from your machine.

Energy component is defined as a unique machine component, meaning that you can only have 1 per machine.

If you try to define more than 1 energy component only the first will be used.

Energy component is defined with "type": "custommachinery:energy" in the json.

Properties

Capacity (Mandatory)

Description : An integer that represent the amount of energy the machine can store.

Example : "capacity": 10000 The machine will be able to store 10000FE.

maxInput (Optional)

Description : An integer that represent the max FE that can be input in the machine during a single tick.

Default : The capacity of the machine.

Example : "maxInput": 1000 The machine can accept 1000FE/tick.

maxOutput (Optional)

Description : An integer that represent the max FE that can be output in the machine during a single tick.

Default : The capacity of the machine.

Example : "maxOutput": 1000 The machine can give 1000FE/tick.

Example

An example of an Energy Component that will allow the machine to store 100000FE, input 1000FE and output 666FE.

{
    "type": "custommachinery:energy",
    "capacity": 100000,
    "maxInput": 1000,
    "maxOutput": 666
}

You just have to put that in the components array in the machine json.

Notes

The energy generated/consumed by a recipe is not counted in the maxInput/maxOutput value and will bypass it.

Only energy inserted/extracted by a cable or another machine will be counted.

Clone this wiki locally