Pressure element (PNC)
Add a pressure gauge in the machine gui
This gui element requires Custom Machinery Pneumaticcraft to be installed.
The pressure gui element is used to display the content of a pressure component present in the machine.
Pressure elements are defined in json with : "type": "custommachinery:pressure"
.
Note that if you didn't set a pressure component in the machine json the pressure element will still work but will always show a value of 0.
Properties
The pressure element has 3 mandatory properties and 5 optional properties :
Mandatory properties
"type": "custommachinery:pressure"
Optional properties
Example
A typical pressure gui element :
{
"type": "custommachinery:pressure",
"x": 20,
"y": 20
}
Result :

Last updated