#GUI Close

1 messages · Page 1 of 1 (latest)

drifting eagle
#

im really dumb and idk wtf im doing, theres no error but it doesnt work

command /clickeropen:
trigger:
create a gui with id "{gui-%player's uuid%}" with virtual chest inventory with 3 rows named "Ranks":
make gui slot 22 with barrier named "&c&lClose"
open gui with id "{gui-%player's uuid%}" to player

on inventory click:
if name of event-inventory is "Ranks":
if event-slot is 22:
close player's inventory

subtle trout
#

Should be index of event-slot

#

If that doesnt fix, debug

plain imp
#

Also why not use the skript-gui way of detecting inventory clicks?

#
  # code for click here```
wintry bronze
#

just use skript gui

#

holy cow

#

then add : at the end of make slot and spacer and then close player's inventory