Make GUI Slot (Section) — skript-gui
Addon: skript-gui · Category: Section · Since: 1.0.0, 1.2.0 (making specific slots stealable)
Syntax
(make|format) [the] next gui [slot] (with|to) [([re]mov[e]able|stealable)] %itemtype%Description
A section for making GUI slots that run code, or clearing them entirely.
Examples
create a gui with virtual chest inventory with 3 rows named "My GUI":
# Formats the next available GUI slot with dirt.
# Doesn't do anything when clicked on.
make next gui with dirt
make gui 10 with water bucket:
# Code here is run when the GUI slot is clicked
send "Splash!" to the player
edit the player's gui:
unformat gui slot 10 # Removes the item in slot 10
unformat the last gui slot # Removes the item in the last filled slot