gui with skript-gui not working

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

NickQr

New Member
Oct 2, 2023
8
0
1
24
So i created a gui with skript-gui but there is a error that "5 rows named "&8&lRANGOK" is not an entity type (rangok.sk, line8:create a gui with virtual chest inventory with 5 rows named "&8&lRANGOK and shape "zxxxxxxxz", "zhhhhhhhz", "zh1h2h3hz", "zhhhhhhhz" and "zxxxxxxxz":")
i am on 1.8.9 and the Skript version is the latest for 1.8.9 and i have 1.2 skript-gui version
here is the whole skript
Code:
options:
  p: &7[&c&lSky&4&lMC]

command /rangok:
  aliases: rang
  usage: {@p} &7Helyes használata: &8/rangok
  trigger:
    create a gui with virtual chest inventory with 5 rows named "&8&lRANGOK" and shape "zxxxxxxxz", "zhhhhhhhz", "zh1h2h3hz", "zhhhhhhhz" and "zxxxxxxxz":
      format gui slot "x" with gray stained glass pane named "&f"
      format gui slot "z" with gray stained glass pane named "&f"
      format gui slot "1" with paper named "&8[&a&lVIP&8] &fRang" with lore "&7Saját kit &650.000$":
        if player's balance is more than 49999:
          execute console command "/eco take %player% 50000"
          execute console command "/lp user %player% parent set vip"
          wait 5 ticks
        else:
          send "{@p} &cNincs elég pénzed"
          close player's inventory
      make gui slot "2" with paper named "&8[&a&lVIP&e&l+&8] &fRang" with lore "&7Saját kit + Előző rang jogai &6150.000$":
        if player's balance is more than 149999:
          execute console command "/eco take %player% 150000"
          execute console command "/lp user %player% parent set vip+"
          wait 5 ticks
        else:
          send "{@p} &cNincs elég pénzed"
          close player's inventory
      format gui slot "3" with paper named "&8[&3&lBoos&8] &fRang" with lore "&7Saját kit, AFK jog + Előző rangok jogai &6500.000$":
        if player's balance is more than 499999:
          execute console command "/eco take %player% 500000"
          execute console command "/lp user %player% parent set boss"
          wait 5 ticks
        else:
          send "{@p} &cNincs elég pénzed"
          close player's inventory
      open the last gui for the player
 
Code:
command /rangok:
    aliases: /rang
    trigger:
#make the GUI
        set metadata tag "rangok-gui" of player to chest inventory with 5 rows named "&8&lRANGOK"

#format the GUI slots
        set slot (slot) of metadata tag "rangok-gui" of player to (item eg. clock) (of [enchant][level]) (named "[name]") (with lore "[lore]")

#open the GUI
        open (metadata tag "rangok-gui" of player) to player

The Chest slots are attached
 

Attachments

  • mc chest slots.png
    mc chest slots.png
    63.2 KB · Views: 78