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 text component and can't have multiple lines (use multiple text elements for that).
You can change the size of text using width
and height
property.
Properties
The text element has 4 mandatory properties and 7 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