code_language.skript:
command /ssg [<string>]:
permission: perms.guiedit
permission message: Unknown command. Type "/help" for help.
trigger:
loop {shopgui::*}:
loop 72 times:
set {sshopgui::%loop-value-1%::normal::%loop-value-2 - 1%} to slot (loop-value-2) - 1 of {shopgui}
set {sshopgui::%loop-value-1%::underground::%loop-value-2 - 1%} to slot (loop-value-2) - 1 of {shopgui}
send "&6&lSuccesfully saved all of shop gui!" to player
command /lsg [<string>]:
permission: perms.guiedit
permission message: Unknown command. Type "/help" for help.
trigger:
loop {shopgui::*}:
loop 72 times:
set slot (loop-value-2) - 1 of {shopgui::%loop-value-1%::normal} to {sshopgui::%loop-value%::normal::%loop-value-2%}
set slot (loop-value-2) - 1 of {shopgui::%loop-value-1%::underground} to {sshopgui::%loop-value%::underground::%loop-value-2%}
send "&6&lSuccesfully loaded all of shop gui!" to player
on inventory click:
if event-inventory's name is "&9&l/shop":
if {guiedit::%player%} is 0:
cancel event
command /shop [<string>]:
trigger:
open {shopgui} for player
on load:
set {shopgui::conveyors::normal} to chest inventory with 5 rows named "&9&l/shop"
set {shopgui::droppers::normal} to chest inventory with 5 rows named "&9&l/shop"
set {shopgui::upgraders::normal} to chest inventory with 5 rows named "&9&l/shop"
set {shopgui::furnaces::underground} to chest inventory with 5 rows named "&9&l/shop"
set {shopgui::conveyors::underground} to chest inventory with 5 rows named "&9&l/shop"
set {shopgui::droppers::underground} to chest inventory with 5 rows named "&9&l/shop"
set {shopgui::upgraders::underground} to chest inventory with 5 rows named "&9&l/shop"
set {shopgui::furnaces::underground} to chest inventory with 5 rows named "&9&l/shop"
it gives me an error when i use loop-value-2 please help
i also cant put the image of the error it says "We ran into a problem."