Experience
Make the recipe consume or produce xp
Experience requirement is used to define 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 from the machine experience component.
In output mode : When starting to craft the recipe, the machine will produce the specified amount of xp and put it in the machine experience component.
The requirement type of experience requirement is : "custommachinery:experience"
.
Properties
The experience requirement has 3 mandatory properties and 2 optional properties.
Mandatory properties
"type": "custommachinery:experience" //Mandatory to define an experience requirement.
Optional properties
Example
An experience requirement that will make the recipe produce 2672xp points:
{
"type": "custommachinery:experience",
"mode": "output",
"amount": 2672
}
An experience requirement that will make the recipe consume 10xp levels with 80% chance:
{
"type": "custommachinery:experience",
"mode": "input",
"amount": 10,
"form": "level",
"chance": 0.8
}