Experience
Use the experience requirement in a KubeJS recipe
Use one of these methods to add an experience requirement to the recipe.
.requireXp(amount)
.requireXpPerTick(amount)
.produceXp(amount)
.produceXpPerTick(amount)
.requireLevel(amount)
.requireLevelPerTick(amount)
.produceLevel(amount)
.produceLevelPerTick(amount)
The
amount
param must be a positive integer.
Example
The following recipe will produce 3xp points:
ServerEvents.recipes(event => {
event.recipes.custommachinery.custom_machine("custommachinery:power_crusher", 100)
.produceXp(3)
})