Solved TuSKe GUI isn't 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 community!

    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!

Status
Not open for further replies.
Jun 30, 2020
11
1
0
I get many errors when running this code.

Code:
on skript load:
    # Main Menu Gui
    create a gui with id "menu" with virtual chest with 3 rows named "&b&lShop":
        # Whitespace slots
        format gui slot 0 with black stained glass pane named " "
        format gui slot 1 with black stained glass pane named " "
        format gui slot 2 with black stained glass pane named " "
        format gui slot 3 with black stained glass pane named " "
        format gui slot 4 with black stained glass pane named " "
        format gui slot 5 with black stained glass pane named " "
        format gui slot 6 with black stained glass pane named " "
        format gui slot 7 with black stained glass pane named " "
        format gui slot 8 with black stained glass pane named " "
        format gui slot 9 with black stained glass pane named " "
        format gui slot 17 with black stained glass pane named " "
        format gui slot 18 with black stained glass pane named " "
        format gui slot 19 with black stained glass pane named " "
        format gui slot 20 with black stained glass pane named " "
        format gui slot 21 with black stained glass pane named " "
        format gui slot 22 with black stained glass pane named " "
        format gui slot 23 with black stained glass pane named " "
        format gui slot 24 with black stained glass pane named " "
        format gui slot 25 with black stained glass pane named " "
        format gui slot 26 with black stained glass pane named " "

        format gui slot 10 with carrot named "&6Farming":
            open gui "farming" to player
        format gui slot 11 with iron pickaxe named "&fTools":
            open gui "tools" to player
        format gui slot 12 with redstone dust named "&4Redstone":
            open gui "redstone" to player
        format gui slot 13 with grass block named "&2Blocks":
            open gui "blocks" to player
        format gui slot 14 with diamond hoe named "&bSellwand":
            open gui "sellwand" to player
        format gui slot 15 with lava bucket named "&7Miscellaneous":
            open gui "misc" to player
        format gui slot 16 with paper named "&3Ranks":
            open gui "ranks" to player

    # Farming Gui
    create a gui with id "farming" with virtual chest with 4 rows named "&6Farming":
        set {_slot} to 0
        loop 45 times:
            format gui slot {_slot} with black stained glass pane named " "
            add 1 to {_slot}
        format gui slot 10 with wheat seeds with lore "&2$100"
        format gui slot 11 with carrot with lore "&2$250"
        format gui slot 12 with potato with lore "&2$250"
        format gui slot 13 with sugar cane with lore "&2$1,000"
        format gui slot 14 with cactus with lore "&2$1,000"
        format gui slot 15 with pumpkin with lore "&2$5,000"
        format gui slot 16 with melon with lore "&2$5,000"
        format gui slot 21 with sweet berry with lore "&2$1,000"
        format gui slot 22 with spawner with lore "&2$100K"
        format gui slot 23 with ghast spawn egg named "&6Spawn Eggs":
            open gui "spawn eggs" to player

    # Tool Gui
    create a gui with id "tools" with virtual chest with 5 rows named "&fTools":
        set {_slot} to 0
        loop 45 times:
            format gui slot {_slot} with black stained glass pane named " "
            add 1 to {_slot}
        format gui slot 12 with diamond hoe with lore "&2$5,000"
        format gui slot 13 with diamond shovel with lore "&2$5,000"
        format gui slot 14 with diamond pickaxe with lore "&2$5,000"
        format gui slot 15 with diamond axe with lore "&2$5,000"
        format gui slot 21 with iron hoe with lore "&2$1,000"
        format gui slot 22 with iron shovel with lore "&2$1,000"
        format gui slot 23 with iron pickaxe with lore "&2$1,000"
        format gui slot 24 with iron axe with lore "&2$1,000"

        format gui slot 30 with stone hoe with lore "&2$250"
        format gui slot 31 with stone shovel with lore "&2$250"
        format gui slot 32 with stone pickaxe with lore "&2$250"
        format gui slot 33 with stone axe with lore "&2$250"

        format gui slot 36 with redstone named "&4Back To Menu"

command /shop:
    description: Opens a shop menu
    trigger:
        open gui "menu" to player
 
Hi,
The problem you have is that you forgot to put "of player" into each line so try again with the lines formatted like this:
Code:
format slot 10 of player with wheat seeds with lore "&e$100"
 
Status
Not open for further replies.