Creating a GUI
Creating a new GUI
Creates a new GUI and puts it in the result of the expression last created GUI
create [a] [new] gui with %inventory% [(and|with) ([re]move[e]able|stealable) items] [(and|with) shape %strings%]
The last argument allows you to use prepared templates for the arrangement of interactive elements. For example, if we open the funnel inventory, we can specify the template “xxixx”, and then, when creating the element “x”, the first, second, fourth and fifth slots will be with this element.
Edit an already created GUI
Allows you to redefine interactive elements inside an already created GUI
(change|edit) [gui] %gui%
Create an interactive element
When you click on this element, the code inside the section will be executed. The expression below creates an interactive element on the next empty inventory slot.
(make|format) [the] next gui [slot] (with|to) [([re]mov[e]able|stealable)] %itemtype%
The following expression allows you to specify the value from the template or the slot number to create the element.
(make|format) gui [slot[s]] %strings/numbers% (with|to) [([re]mov[e]able|stealable)] %itemtype%
Delete an interactive element
(un(make|format)|remove) [the] next gui [slot]
(un(make|format)|remove) gui [slot[s]] %strings/numbers%
(un(make|format)|remove) all [[of] the] gui [slots]
When opening the GUI
The code inside this section will be executed after opening the GUI to the player.
run (when|while) open[ing] [[the] gui]
run (when|while) [the] gui opens
run on gui open[ing]
When closing the GUI
The code inside this section will be executed after the GUI is closed by the player.
run (when|while) clos(e|ing) [[the] gui]
run (when|while) [the] gui closes
run on gui clos(e|ing)
Last created GUI
Returns the last GUI created/modified
[the] last[ly] [(created|edited)] gui