-
Notifications
You must be signed in to change notification settings - Fork 17
Fuel Element
Fuel Element are used to render a fuel bar on the Machine GUI.
Fuel Elements are defined in json with : "type": "custommachinery:fuel"
.
You can add as many Fuel Element as you want to the machine GUI but they will all show the same burn time and be filled the same.
By default the texture is the same as the vanilla furnace little flame but you can change it if needed.
Beside the 3 mandatory properties (type/x/y) and the 3 optional properties (width/height/priority) the Fuel Element have 2 optional properties.
Description : The Fuel bar empty texture to be rendered on the GUI defined with namespace:path/to/the/texture.png
Example : "emptytexture": "custommachinery:textures/gui/base_fuel_empty.png"
The default fuel element empty texture.
Description : The Fuel bar filled texture to be rendered on the GUI defined with namespace:path/to/the/texture.png
.
Example : "filledtexture": "custommachinery:textures/gui/base_fuel_fille.png"
The default fuel element filled texture.
A basic Fuel Element :
{
"type": "custommachinery:fuel",
"x": 20,
"y": 20
}
Result :
On the image below the Machine was given 1 coal which have a brun time of 1600 ticks and the screenshot was taken at 913 ticks of burntime remaining so the fuel bar was filled at about 55%
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