-
Notifications
You must be signed in to change notification settings - Fork 17
Text Element
Text Element are 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.
Beside the 3 mandatory properties (type/x/y) and the 3 optional properties (width/height/priority) the Text Element have 1 mandatory property and 2 optional properties.
Description : The Text to be rendered on the GUI.
Example : "text": "An Awesome Title For My Machine GUI !"
Description : How the text is aligned compared to the Element position. Available values are left/center/right
Default : left
The left of the text string will be at the Element position.
Example : "alignment": "center"
The center of the text string will be at the Element position.
Description : An integer value that define the color of the text. The value must be an integer encoded like 0xRRGGBB.
Default : 0
Black text.
Example : "color": 16711680
Full red.
A basic Text Element :
{
"type": "custommachinery:text",
"x": 20,
"y": 20,
"text": "My Awesome Machine"
}
Result :
3. Machine GUI
- Dump Element
- Energy Element
- Fluid Element
- Fuel Element
- Player Inventory Element
- Progress Bar Element
- Reset Element
- Slot Element
- Status Element
- Text Element
- Texture Element
5. Catalysts
- Biome Requirement
- Block Requirement
- Command Requirement
- Dimension Requirement
- Drop Requirement
- Durability Requirement
- Effect Requirement
- Energy Requirement
- Energy Per Tick Requirement
- Entity Requirement
- Fluid Requirement
- Fluid Per Tick Requirement
- Fuel Requirement
- Item Requirement
- Light Requirement
- Loot Table Requirement
- Position Requirement
- Structure Requirement
- Redstone Requirement
- Time Requirement
- Weather Requirement