From Craftaro Originals

How to customize GUIs

How to show the keys in a GUI?

You will need to Shift + Right-click a few times in any GUI (requires the permission songoda.admin) until a chat prompt appears, saying that the keys are now shown. Once you have correctly done this step, you will now have access to view the keys in the GUI. Keys are displayed in purple text directly below the name of the item, in the lore section when you hover over an item in the GUI.

How to generate the GUI file?

You will need to run any command that opens a GUI (Example: "/uf leaderboard"). After running the command, a new folder will be generated in the main folder for that plugin called "GUI" that will hold a file for each GUI that is customizable after you open the GUI at least once in-game.

Different aspects of the file

Key types

Key Type Description File Image
__DEFAULT__ This key is used to edit the background items in a GUI.
__ROWS__ This key gives the ability to add more rows to a GUI. (Max 6 rows in total)
  __ROWS__: 6
mirrorfill_<number> This key is used for all mirrorfills (glass around the border of the GUI). This key requires a special syntax to edit.

"mirrorcol:" This option will change all the mirrorfills with that key in the column.
"mirrorrow:" This option will change all the mirrorfills with that key in the row.

    mirrorcol: true
    mirrorrow: true
custom_<name> This key will allow you to add custom items to the GUI. To add custom items, you must start the key with custom_
    item: PAPER
    row: 0
    col: 3
    title: '&6Title'
    - ''
    - '&eThis gui is meant'
    - '&eto show the leaderboard'
    - '&eabout player fishing'
<key> This is for any keys that you see in the GUI.In the example below, the item in the GUI with the "weight" key is being edited.
    item: SIGN
    row: 5
    col: 4

How to use the disable function

In this section of the file, you can disable keys. When a key is disabled, all items in the GUI with that key will be removed.

- disablekey1
- disablekey2
- disablekey3

How to define the slot position in GUIs

There are two ways to define the position of and item in the GUI.
The first way is by using the position variable.
The second way is by using the row and col variables.

Some examples of how you can customize GUIs

In this section, you can find a few examples of what you can do with customization.

Frequently Asked Questions