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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

TuskeGUI skript

Discussion in 'Skript' started by Mads Bille, Mar 11, 2021.

Thread Status:
Not open for further replies.
  1. Mads Bille

    Mads Bille Member

    Joined:
    Oct 15, 2018
    Messages:
    10
    Likes Received:
    0
    Tuske: 1.8.3
    Skriptdev-36
    Mc version 1.8.9 paper


    Code (Text):
    1. function Server(p: player):
    2.     set {_u} to uuid of {_p}
    3.     close {_p}'s inventory
    4.     play sound "note.pling" with volume 1 and pitch 1 at {_p} for {_p}
    5.     open chest with 5 rows named "&6&lServer &7&l- &aPRISON" to {_p}
    6.     format gui slot (integers from 0 to 9) of {_p}'s current inventory to yellow window glass named " "
    7.            
    8. on inventory click:
    9.     if inventory name of player's current inventory is "&6&lServer &7&l- &aPRISON":
    10.         if clicked item is yellow window glass:
    11.             play sound "note.bass" with volume 0.5 and pitch 1 at player for player
    12.             cancel event
    13.         if clicked item is barrier:
    14.             play sound "random.anvil_land" with volume 0.5 and pitch 1 at player for player
    15.             cancel event
    16.             close player's inventory  
    17.         if clicked item is air:
    18.             play sound "note.bass" with volume 0.5 and pitch 1 at player for player
    19.             cancel event
    20.            
    21. Command /Server [<text>]:
    22.     trigger:
    23.         if arg-1 is not set:
    24.             Server(Player)
    25.         else:
    26.             Server(Player)
     
Thread Status:
Not open for further replies.

Share This Page

Loading...