Tubing XML
Last updated
Was this helpful?
Last updated
Was this helpful?
The Tubing XML is a definition how to build Below I will explain the different parts of the XML
The TubingGui is the root element of the XML file. it defines the size of the GUI and contains multiple GuiItems.
size
How big the inventory should be. Must be a multiple of 9.
true
id
id of the GUI. Only used for styling
false
class
Class of the GUI. Only used for styling
false
title
The title of the GUI
true
GuiItem
The different items you want to show in the GUI
false, but it makes sense to have at least some items in the GUI
The title of the GUI.
color
The color of the text
false
id
id of the GUI. Only used for styling
false
class
Class of the GUI. Only used for styling
false
This is the biggest part of the GUI. Every GuiItem represent an item inside the inventory.
slot
The index of the inventory slot
true
material
Material of the item
true
if
Only show the item when the value of the if attribute is true
false
permission
Only show the item if the current player has the given permission
false
onLeftClick
action to execute when the player left clicks on this item
false
onMiddleClick
action to execute when the player middle clicks on this item
false
onRightClick
action to execute when the player right clicks on this item
false
id
id of the GUI. Only used for styling
false
class
Class of the GUI. Only used for styling
false
name
The name of the element shown in the GUI
false
Lore
The lore of the item. Consists of multiple LoreLines
false
color
The color of the text
false
id
id of the GUI. Only used for styling
false
class
Class of the GUI. Only used for styling
false
if
Only show the lore when the value of the if attribute is true
false
permission
Only show the lore if the current player has the given permission
false
id
id of the GUI. Only used for styling
false
class
Class of the GUI. Only used for styling
false
List of LoreLine
Every LoreLine is one line of lore of the item inside the inventory
true
if
Only show the loreline when the value of the if attribute is true
false
permission
Only show the loreline if the current player has the given permission
false
id
id of the GUI. Only used for styling
false
class
Class of the GUI. Only used for styling
false
t is used to define a text. You can have multiple <t> tags next to each other. This is mostly useful if you want to give the user of the plugin more control over the styling of the different parts of the text.
Although the first one is much shorter, there is no way to allow Tubing to style this GUI. Using T tags we now have control over the color and label and value of the text. These can be styled separately by using Tubing styling files.
color
The color of the text part
false
if
Only show the loreline when the value of the if attribute is true
false
permission
Only show the loreline if the current player has the given permission
false
id
id of the GUI. Only used for styling
false
class
Class of the GUI. Only used for styling
false
Direct child of . It describes the name of the GuiItem.
The name is an element that has 2 possible content type. Either just a String, or multiple tags.
Direct child of . It describes the Lore of the GuiItem.
Direct child of . Describes one line of lore of one item.
The name is an element that has 2 possible content type. Either just a String, or multiple tags.