I can't seem to figure out, how to read if an item is clicked in the gui how to change something in it (like close it in this example). I use skript-gui
Error:
Code:
command /opengui:
trigger:
create a gui with virtual chest inventory with 3 rows named "GUI" and shape "xxxxxxxxx", "xx-xxx-xx", and "xxxxcxxxx":
make gui slot "x" with gray stained glass pane named "&8&l---"
make gui slot "c" with barrier named "&c&lClose"
open the last gui to player
on inventory click:
if item is barrier named "&8&lClose":
close gui of player
Error:
Code:
Line 9: (gui.sk)
You can't use 'gui' outside of a GUI make or open/close section.
Line: close gui of player
Last edited: