1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

API Rev Gui Manager 0.5

easy way to create gui multi action

Tags:
  1. a
    Supported Minecraft Versions:
    • 1.7, 1.8, 1.9, 1.10, 1.11, 1.12
    Rev Gui Manager
    easy way to create gui multi action



    it's a small api i made cos i am bored
    i hobe you enjoy it


    Requirements
    Skript
    skript-mirror
    SkQuery

    Code (Skript):
    1. Rev Create new menu id %integer%
    2.  
    3. Rev set menu id %integer% name to %text%
    4.  
    5. Rev set menu id %integer% rows to %integer%
    6.  
    7. Rev open menu id %integer% to %player%
    8.  
    9. Rev set slot %integer% of menu id %integer% to %item% [named %-text%] [with lore %-text%]
    10.  
    11. Rev set slot %integer% of menu id %integer% to execute cmd %text% as op on (1¦left|2¦right|3¦middle|4¦shift left|5¦shift right|6¦ ) click
    12.  
    13. Rev set slot %integer% of menu id %object% permission to %text% on (1¦left|2¦right|3¦middle|4¦shift left|5¦shift right|6¦ ) click
    14.  
    15. Rev set slot %integer% of menu id %object% to send %text% on (1¦left|2¦right|3¦middle|4¦shift left|5¦shift right|6¦ ) click
    16.  
    17. Rev set slot %integer% of menu id %object% to Cooldown %text% on (1¦left|2¦right|3¦middle|4¦shift left|5¦shift right|6¦ ) click
    18.  
    19. Rev set slot %integer% of menu id %object% to give %items% on (1¦left|2¦right|3¦middle|4¦shift left|5¦shift right|6¦ ) click
    20.  
    21. Rev set slot %integer% of menu id %object% to Close on (1¦left|2¦right|3¦middle|4¦shift left|5¦shift right|6¦ ) click
    22.  
    23. Rev set slot %integer% of menu id %object% to use %object% and cost %number% on (1¦left|2¦right|3¦middle|4¦shift left|5¦shift right|6¦ ) click
    24.  
    25. Rev set slot %integer% of menu id %object% to run [[function] [effect]] %object% on (1¦left|2¦right|3¦middle|4¦shift left|5¦shift right|6¦ ) click

    Code (Skript):
    1. on load:
    2.     Rev Create new menu id 1
    3.     Rev set menu id 1 name to "&ctest"
    4.     Rev set menu id 1 rows to 2
    5.     Rev set slot 1 of menu id 1 to stone with lore "&clore"
    6.     Rev set slot 2 of menu id 1 to stone
    7.     Rev set slot 3 of menu id 1 to stone
    8.     set {_item} to stone of power 1
    9.     Rev set slot 4 of menu id 1 to {_item} named "&chello" with lore "&cworld"
    10.     Rev set slot 5 of menu id 1 to stone named "&cname" with lore "&clore"
    11.     Rev set slot 1 of menu id 1 permission to "slot.1" on click
    12.     Rev set slot 1 of menu id 1 to execute cmd "/day" on shift left click
    13.     Rev set slot 2 of menu id 1 to execute cmd "/day" as op on middle click
    14.     Rev set slot 3 of menu id 1 to send "&chello" on click
    15.     Rev set slot 3 of menu id 1 to use "{Coins.%%{_p}%%}" and cost 100 on left click
    16.     Rev set slot 2 of menu id 1 to use "{Token.%%{_uuid}%%}" and cost 100 on left click
    17.     Rev set slot 5 of menu id 1 to Cooldown "1 day" on click
    18.     Rev set slot 4 of menu id 1 to Cooldown "1 day" on left click
    19.     Rev set slot 1 of menu id 1 to Close on click
    20.     Rev set slot 2 of menu id 1 to Close on left click
    21.     add 10 stone named "kit" to {_kit::*}
    22.     add 20 coal ore to {_kit::*}
    23.     Rev set slot 5 of menu id 1 to give {_kit::*} on left click
    24.     Rev set slot 8 of menu id 1 to stone
    25.     Rev set slot 8 of menu id 1 to run function "test({_p}, {Coins.%%{_p}%%})" on left click
    26.     Rev set slot 9 of menu id 1 to stone
    27.     Rev set slot 9 of menu id 1 to run effect "send ""hello"" to {_p}" on left click
    28.  
    29.     Rev set slot 10 of menu id 1 to stone
    30.     Rev set slot 10 of menu id 1 to run "give 1 of stone to {_p}" on left click
    31.  
    32.     Rev set slot 11 of menu id 1 to stone
    33.     Rev set slot 11 of menu id 1 to run "broadcast ""&c&lhello world""" on click
    34.    
    35.     Rev set slot 12 of menu id 1 to stone
    36.     Rev set slot 12 of menu id 1 to run "set {StartGame} to true" on left click
    37.     Rev set slot 12 of menu id 1 to run "set {StartGame} to false" on right click
    38.     Rev set slot 12 of menu id 1 to send "%%{StartGame}%%" on left click
    39.     Rev set slot 12 of menu id 1 to send "%%{StartGame}%%" on right click
    40.    
    41.     Rev set slot 13 of menu id 1 to stone named "&ccoins"
    42.     Rev set slot 13 of menu id 1 to send "%%{Coins.%%{_p}%%}%%" on click
    43.     Rev set slot 14 of menu id 1 to stone named "&cmy uuid"
    44.     Rev set slot 14 of menu id 1 to send "%%{_uuid}%%" on click
    45. command /test:
    46.     description: &cgui command !
    47.     trigger:
    48.         Rev open menu id 1 to player
    49.  
    Terms:
    You can not can not claim it as your own
    You can't edit the skript and upload it as yours
    • You can't sell this resource or give it to anyone for money.

Recent Updates

  1. removed debug
  2. fix bugs