-
Notifications
You must be signed in to change notification settings - Fork 17
Energy Per Tick Requirement
Energy Per Tick Requirement is used to define per-tick energy inputs and outputs for a Custom Machine Recipe.
To use it you just need to provide the amount of energy (Forge Energy aka FE) you want the recipe to consume/produce each tick.
This requirement is available in both input
and output
modes.
In input mode : While crafting the recipe, the machine will consume the specified amount of energy each tick from the machine Energy Component.
In output mode : While crafting the recipe, the machine will produce the specified amount of energy each tick and put it in the machine Energy Component.
The Requirement type of Energy Per Tick Requirement is : "type": "custommachinery:energy_per_tick"
Put this in the requirement json to define an Energy Per Tick Requirement.
Beside the 2 common mandatory properties ("type" and "mode") the Energy Per Tick Requirement only have 1 other mandatory property and 1 optional property.
Description : An integer value that define the amount of energy the recipe will consume/produce each tick. It can be any positive number but remember that the machine Energy Component must be able to store at least this amount of energy.
Example : "amount": 1000
The recipe will consume/produce 1000FE per tick.
Description : A double between 0.0 and 1.0 that define the chance of the energy to be consumed if input or produced if output, the chance is applied for the whole energy amount defined in this requirement. The chance will be applied each tick, meaning that an Energy Requirement with 0.5 chance will consume/produce it's energy amount every 2 ticks (depending of the randomness).
Default : 1.0 (The energy will always be consumed/produced)
Example : "chance": 0.7
The energy will have 70% chance to be consumed/produced.
An Energy Requirement that will make the recipe produce 2672FE per tick:
{
"type": "custommachinery:energy_per_tick",
"mode": "output",
"amount": 2672
}
An Energy Requirement that will make the recipe consume 20FE per tick with 50% chance:
{
"type": "custommachinery:energy_per_tick",
"mode": "input",
"amount": 20,
"chance": 0.5
}
3. Machine GUI
- Dump Element
- Energy Element
- Fluid Element
- Fuel Element
- Player Inventory Element
- Progress Bar Element
- Reset Element
- Slot Element
- Status Element
- Text Element
- Texture Element
5. Catalysts
- Biome Requirement
- Block Requirement
- Command Requirement
- Dimension Requirement
- Drop Requirement
- Durability Requirement
- Effect Requirement
- Energy Requirement
- Energy Per Tick Requirement
- Entity Requirement
- Fluid Requirement
- Fluid Per Tick Requirement
- Fuel Requirement
- Item Requirement
- Light Requirement
- Loot Table Requirement
- Position Requirement
- Structure Requirement
- Redstone Requirement
- Time Requirement
- Weather Requirement