I'm having this strange issue where the last 2 gui related lines of my skript are throwing this error, but the rest of my skript isn't.
Skript Addons: SkBee, skript-gui, Skellet, skRayFall
Code:
Skript Addons: SkBee, skript-gui, Skellet, skRayFall
Code:
code_language.skript:
command /gui:
trigger:
create a gui with virtual chest named "&c&lCOMPACTOR" with 1 rows:
make gui slot 0 to red glass pane named " "
make gui slot 8 to red glass pane named " "
if {compactors::%player's uuid%::*} contains "stone":
make gui slot 1 to stone named "&2&lSTONE ✔"
else:
make gui slot 1 to glowing grey wool named "&4&lSTONE ❌"
if {compactors::%player's uuid%::*} contains "coal":
make gui slot 2 to coal block named "&2&lCOAL ✔"
else:
make gui slot 2 to glowing grey wool named "&4&lCOAL ❌"
if {compactors::%player's uuid%::*} contains "iron":
make gui slot 3 to iron block named "&2&lIRON ✔"
else:
make gui slot 3 to glowing grey wool named "&4&lIRON ❌"
if {compactors::%player's uuid%::*} contains "gold":
make gui slot 4 to gold block named "&2&lGOLD ✔"
else:
make gui slot 4 to glowing grey wool named "&4&lGOLD ❌"
if {compactors::%player's uuid%::*} contains "diamond":
make gui slot 5 to diamond block named "&2&lDIAMOND ✔"
else:
make gui slot 5 to glowing grey wool named "&4&lDIAMOND ❌"
if {compactors::%player's uuid%::*} contains "emerald":
make gui slot 6 to emerald block named "&2&lEMERALD ✔"
else:
make gui slot 6 to glowing grey wool named "&4&lEMERALD ❌"
if {docompact::%player's uuid%} is true:
make gui slot 7 to glowing green wool named "&2&lCOMPACTING ENABLED ✔":
set {docompact::%player's uuid%} to false
make gui slot 7 to glowing red wool named "&4&lCOMPACTING DISABLED ❌"
else:
make gui slot 7 to glowing red wool named "&4&lCOMPACTING DISABLED ❌":
set {docompact::%player's uuid%} to true
make gui slot 7 to glowing green wool named "&2&lCOMPACTING ENABLED ✔"
on inventory click:
clicked inventory isn't player's inventory
if inventory name of player's current inventory is "&c&lCOMPACTOR":
clicked slot = 7
play sound "entity.experience_orb.pickup" at volume 100 at pitch 1 to player
if {docompact::%player's uuid%} is true:
send "&cYour compactor is now disabled." to player
set {docompact::%player's uuid%} to false
make gui slot 7 to glowing red wool named "&4&lCOMPACTING DISABLED ❌"
else:
send "&2Your compactor is now enabled." to player
set {docompact::%player's uuid%} to true
make gui slot 7 to glowing green wool named "&2&lCOMPACTING ENABLED ✔"
open the last gui for the player
Attachments
Last edited: