Skip to content

Fuel Requirement

Frinn38 edited this page Sep 12, 2021 · 4 revisions

Fuel Requirement is used to make the recipe need a fuel to be processed (like a furnace).

The fuel item must be provided with an Item Component with the "variant": "custommachinery:fuel" property.

This requirement will only check if the machine is burning fuel. The check occurs every tick so if the machine run out of fuel during a process it will stop and wait for the player to add some fuel.

The Requirement type of Fuel Requirement is : "type": "custommachinery:fuel" Put this in the requirement json to define a Fuel Requirement.

The fuel requirement have 2 optional property.

Properties

amount (Optional)

Description : A positive integer that define the amount of fuel burn each tick of the recipe process. If the machine don't have enough burn time remaining a fuel item will be consumed and it's corresponding burntime will be added. If no fuel item is found the machine will stop and error.

Default : 1 The requirement will consume 1 burn time each recipe process tick (same as the vanilla furnace).

Example : "amount": 2 The requirement will consume 2 burn time each tick, meaning the fuel will be consumed 2 times faster than in a vanilla furnace.

jei (Optional)

Description : A boolean, if false the requirement will not display in jei, if true it will display as a little green "+" below the recipe.

Default : true (The requirement will display)

Example : "jei": false (The requirement will not display)

Example

How to define a Fuel Requirement:

{
    "type": "custommachinery:fuel"
}
Clone this wiki locally