SkMenus

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

Pexien

New Member
Aug 10, 2017
2
3
3
View attachment 3462
Welcome to SkMenus
SkMenus is a little skript api which lets you open custom chest guis and then simply set the slots inside them. You can set a slot to a specific item, with a custom name, lore (with multiple lines), and even make them execute player commands (when clicked), as well as close the gui, do nothing, or even wait a certain amount of time (in seconds).

openChest()
Usage: openChest(player, rows, title)
This opens a chest view with the stated rows, with the title you specify to the provided player.

Example:
Code:
command /trash:
    trigger:
        openChest(player, 3, "&6&lTrash Can")
        setSlot(player, 3, cauldron, "&6Trash Can", "&6Put items in to this gui||&6that you no longer want.||||&6Then click close.", "nothing")
        setSlot(player, 5, barrier, "&cClose", "&cI will close this gui.", "close")

setSlot():
setSlot(player, slot, item, name of item, lore, commands)
This sets the defined slot of the player's open inventory to the item you specify, with the defined name, lore, and commands. Lores can have multiple lines, you just have to split them with '||' The commands are executed from the player, these are all normal commands, except for some special ones which are on skMenus side for additional features, those can be seen here.

  • nothing, makes the item do nothing, same as making it unstealable
  • wait:seconds, adds in a delay before executing the next command, usage example: wait:10 that will make it wait 10 seconds
  • close, closes the gui