Player inventory element
Customize the view of the player inventory in the machine gui.
The player inventory element is used to render the player inventory into the Machine GUI (only the 4 row of items).
Player inventory elements are defined in json with :
"type": "custommachinery:player_inventory"
.
While you can change the default texture of the player inventory element you can't change the position of it's slots. See the default texture of the player inventory to see how the slots are placed.
Properties
The player inventory element has 3 mandatory properties and 4 optional properties :
Mandatory properties
"type": "custommachinery:player_inventory" //Mandatory to define a player inventory element.
Optional properties
Example
A basic Player Inventory Element using the default texture :
{
"type": "custommachinery:player_inventory",
"x": 50,
"y": 80
}
Result :

(The diamonds are present in the Player Inventory, you can move them from the Element like in any other GUI)
Last updated