Text element
Add text in the machine gui.
Text element is used to render a text on the Machine GUI.
Text elements are defined in json with : "type": "custommachinery:text"
.
The text must be a single string and can't have multiple lines (use multiple text elements for that).
Currently you can't change the size of the text.
Properties
The text element has 4 mandatory properties and 4 optional properties :
Mandatory properties
"type": "custommachinery:text" //Mandatory to define a text element.
Optional properties
Example
A basic text element :
{
"type": "custommachinery:text",
"x": 20,
"y": 20,
"text": "My Awesome Machine"
}
Result :

Last updated