Solved No awnser problem

  • 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!

Status
Not open for further replies.
Dec 19, 2019
31
2
8
19
Can someone help me with my skript because when clicking on the items in the GUI it doesn't give me an output.

Code:
on rightclick on entity:
    if name of entity is "&lJerry":
        open chest with 6 rows named "&8&lMenu" to player
        format slot 9 of player with iron sword named "&8&lClan" with lore "&7Start a clan with friends!" to close then run [execute player command "clan"]
        format slot 18 of player with comparator named "&e&lSettings" with lore "&7Chance the settings to the way you like the best!" and "" to close then run [execute player command "settings"]
        format slot 20 of player with enchanting table named "&5&lEnchanting" with lore "&7Enchant your unique items!" to close then run [execute player command "help"]
        format slot 21 of player with crafting table named "&6&lCrafting" with lore "&7Craft unique items!" to close then run [execute player command "help"]
        format slot 22 of player with paper named "&d&lHelp" with lore "&7If you need help with anything..." and "&7Click me!" to close then run [execute player command "help"]
        format slot 23 of player with grass block named "&9&lParkours" with lore "&7Look what maps you have already completed!" to close then run [execute player command "help"]
        format slot 24 of player with ender eye named "&a&lQuick Teleportation" with lore "&7Teleport quick to other location" to close then run [execute player command "help"]
        format slot 27 of player with written book named "&b&lInfo" with lore "&7Look what maps you have already completed!" to close then run [execute player command "info"]
        format slot 31 of player with barrier named "&4&lTutorial" with lore "&7Coming soon..." to close then run [execute player command "tutorial"]
        GUIunder(player, 45)
        stop
    if name of entity is "&6&lOverworld":
        open chest with 4 rows named "&6&lOverworld" to player
        format slot 11 of player with red concrete named "&8&lWonderfull World" with lore "&7Finish → Wood Planks" and "&4&lLOCKED" to close then run [execute player command "clan"]
        format slot 12 of player with red concrete named "&8&lFlower Paradise" with lore "&7Finish → Wood Planks" and "&4&lLOCKED" to close then run [execute player command "clan"]
        format slot 13 of player with red concrete named "&8&lOak Forest" with lore "&7Finish → Wood Planks" and "&4&lLOCKED" to close then run [execute player command "clan"]
        format slot 14 of player with red concrete named "&8&lBirch Forest" with lore "&7Finish → Wood Planks" and "&4&lLOCKED" to close then run [execute player command "clan"]
        format slot 15 of player with red concrete named "&8&lDark Forest" with lore "&7Finish → Wood Planks" and "&4&lLOCKED" to close then run [execute player command "clan"]
        GUIunder(player, 27)
        stop
    if name of entity is "&b&lSnow":
        open chest with 4 rows named "&b&lSnow" to player
        GUIunder(player, 27)
        stop
    if name of entity is "&9&lOcean":
        open chest with 4 rows named "&9&lOcean" to player
        GUIunder(player, 27)
        stop
    if name of entity is "&4&lNether":
        open chest with 4 rows named "&4&lNether" to player
        GUIunder(player, 27)
        stop
    if name of entity is "&e&lDesert":
        open chest with 4 rows named "&e&lDesert" to player
        GUIunder(player, 27)
        stop
    if name of entity is "&5&lEnd":
        open chest with 4 rows named "&5&lEnd" to player
        GUIunder(player, 27)
        stop
    if name of entity is "&7&lVillage":
        open chest with 4 rows named "&7&lVillage" to player
        GUIunder(player, 27)
        stop
    if name of entity is "&d&lSpace":
        open chest with 4 rows named "&d&lSpace" to player
        GUIunder(player, 27)
        stop
    if name of entity is "&8&lGlitched":
        open chest with 4 rows named "&8&lGlitched" to player
        GUIunder(player, 27)
        stop

function GUIunder(p: player, n: number):
        format slot {_n} of {_p} with gray glass pane named " " to close
        add 1 to {_n}
        format slot {_n} of {_p} with gray glass pane named " " to close
        add 1 to {_n}
        format slot {_n} of {_p} with gray glass pane named " " to close
        add 1 to {_n}
        format slot {_n} of {_p} with gray glass pane named " " to close
        add 1 to {_n}
        format slot {_n} of {_p} with arrow named "&7&lClose" to close
        add 1 to {_n}
        format slot {_n} of {_p} with gray glass pane named " " to close
        add 1 to {_n}
        format slot {_n} of {_p} with gray glass pane named " " to close
        add 1 to {_n}
        format slot {_n} of {_p} with gray glass pane named " " to close
        add 1 to {_n}
        format slot {_n} of {_p} with gray glass pane named " " to close
 
You need to put
wait 1 tick
before the format

If your server is laggy i suggest using wait 3 tick
 
Status
Not open for further replies.