Experience component
Make your machine store player xp
The experience machine component can be used to make a machine able to store xp.
This component must be unique, as there is only one "type" of xp in vanilla Minecraft it wound't make sense to have several storages of xp in the same machine.
If you try to add more than 1 experience component only the last will be used.
There are 3 ways to change the amount of xp stored in an experience component :
Using a recipe with an experience requirement.
From the machine GUI by using an experience gui element.
By setting the
"retrieve"
property (see below) to true a player will receive all the stored xp when taking an item out the specified slots (like in a vanilla furnace).
Experience component is defined with "type": "custommachinery:experience"
in the json.
Properties
The experience component has 2 mandatory properties and 2 optional properties :
Mandatory properties
Optional properties
Examples
A very basic experience component that can store 100 levels worth of xp.
An experience component that can store 100 levels worth of xp and will give all the stored xp when the player take an item from the slot with id "output".