Experience element
Display the stored xp or add buttons to store/take xp.
The experience gui element is used to display the amount of xp stored in the machine's experience component.
It can also be used as a button that will take/give xp from/to the player when pressed.
The behavior of the experience element depends of its mode
property (see below).
Experience elements are defined in json with "type": "custommachinery:experience"
.
Properties
The experience gui element has 4 mandatory properties and 7 optional properties :
Mandatory properties
"type": "custommachinery:experience" //Mandatory to define an experience gui element.
Optional properties
Example
A series of experience gui elements to make a machine similar to EnderIO's experience obelisk :
"gui": [
{
"x": 85,
"y": 35,
"width": 86,
"type": "custommachinery:experience",
"mode": "display_bar",
"display": "both"
},
{
"x": 80,
"y": 55,
"type": "custommachinery:experience",
"mode": "input_one"
},
{
"x": 95,
"y": 55,
"type": "custommachinery:experience",
"mode": "input_ten"
},
{
"x": 110,
"y": 55,
"type": "custommachinery:experience",
"mode": "input_all"
},
{
"x": 130,
"y": 55,
"type": "custommachinery:experience",
"mode": "output_one"
},
{
"x": 145,
"y": 55,
"type": "custommachinery:experience",
"mode": "output_ten"
},
{
"x": 160,
"y": 55,
"type": "custommachinery:experience",
"mode": "output_all"
}
]

Last updated