Experience per tick
Make the recipe consume or produce xp
Experience per tick requirement is used to define per-tick xp inputs and outputs for a custom machine recipe.
To use it you just need to provide the amount of xp you want the recipe to consume/produce.
This requirement is available in both input
and output
modes.
In input mode : When starting to craft the recipe, the machine will consume the specified amount of xp each tick from the machine experience component.
In output mode : When starting to craft the recipe, the machine will produce the specified amount of xp each tick and put it in the machine experience component.
The requirement type of experience per tick requirement is : "custommachinery:experience_per_tick"
.
Properties
The experience per tick requirement has 3 mandatory properties and 2 optional properties.
Mandatory properties
"type": "custommachinery:experience_per_tick" //Mandatory to define an experience per tick requirement.
Optional properties
Example
An experience requirement that will make the recipe produce 2672xp points each tick:
{
"type": "custommachinery:experience_per_tick",
"mode": "output",
"amount": 2672
}
An experience requirement that will make the recipe consume 10xp levels each tick with 80% chance:
{
"type": "custommachinery:experience_per_tick",
"mode": "input",
"amount": 10,
"form": "level",
"chance": 0.8
}