This tutorial is carried by wiki: https: //github.com/frinn38/modular-magic/wiki/life-essence
First you need a life source interface (added from this MOD), input or output.
Please note that you can put two types of interfaces on the same machine to consume and produce LP.
These interfaces have one item bar for binding qi and blood orb. Once the machine starts to work, it will consume/generate LP from/to the soul network of/to the soul network of the owner of qi.If the slot is empty or qi and blood orb is not binding, the machine will not be able to start.If the LP in the soul network is insufficient, the machine will not start working, but if the soul network is full, the machine will continue to work without producing more LP.
This formula uses json format, path:/config/modularmachinery/recipes
{{"Type": "LifeEssence",
"IO-TYPE": "Input",
"EssenceAmount": 1000 or "Essencepertick": 10
}
Type: Types of demand, LIFEESSENCE for LP.
IO-Type: Input/output type.input/output
Essenceamount: The number of LP consumed/produced when completing the formula each time.
Essentialpertick: Each tick will consume/generate the number of LPs per tick.
Please note that you can't use "Essenceamount" and "EssencePERTICK" at the same time!
Example:
Note: If you want to use an example, delete the note (double slash // later is the annotation)
Use 100LP/TICK to generate a recipe of 1000rf/T.
{{"Machine": "testlp", // machine name
"Registryname": "test_nergy_transformlp", // recipe registration name
"Recipetime": 100, // The time required for the formula
"Requirements": [
{{
"Type": "LifeEssence",
"IO-TYPE": "Input",
"Essencepertick": 100
},
{{
"Type": "Energy",
"IO-TYPE": "Output", "Energypertick": 1000
}
]
}
Use a steak to generate a 10LP formula.
{{"Machine": "testlp", // machine name
"Registryname": "test_steak_transformlp", // recipe registration name
"Recipetime": 100, // time required
"Requirements": [
{{
"Type": "LifeEssence",
"IO-TYPE": "OUTPUT",
"Essencepertick": 10
},
{{
"Type": "Item",
"IO-TYPE": "Input",
"Item": "Minecraft: Cooked_beef"
}
]
}