Experience

Use the experience requirement in a Crafttweaker 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:

<recipetype:custommachinery:custom_machine>.create("custommachinery:power_crusher", 20)
.produceXp(3)
.build();