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.

WELP

Discussion in 'Skript' started by dxcf, May 2, 2020.

Thread Status:
Not open for further replies.
  1. dxcf

    dxcf Member

    Joined:
    Apr 8, 2020
    Messages:
    26
    Likes Received:
    0
    Code (Skript):
    1.  
    2. command /levelup:
    3.     trigger:
    4.         open virtual chest inventory with size 6 named "&6&lLevel &a&lUp" to player
    5.         format gui slot 0 of player with coal block named "&8[&a1✩&8]" with lore "&6Price: &a1 XP" and "&6Click to levelup!" to close then run:
    6.             if {level::%player's uuid%} is greater than to 0:
    7.                 send "&c&l[!] &cYou have already leveled up higher than this level. Please choose a higher level to levelup." to player
    8.             if {level::%player's uuid%} is less than 1:
    9.                 send "&c&l[!] &cYou have insufficient funds to level up here. Please choose a lower level to levelup first." to player
    10.             else:
    11.                 if player's level is higher than to 0:
    12.                     make console execute command "announcement &6%player% &ajust &bleveled up &ato their &bvery first level! &5&lGG"
    13.                     remove 1 from player's level
    14.                     set {level::%player's uuid%} to 1
    15.                 else:
    16.                     send "&8&l(&b&l!&8&l) &bYou have insufficient funds to levelup." to player
    Can someone fix it?
    It says coal block is not a vaild type of rescpie
     
  2. IDuckz_

    IDuckz_ Active Member

    Joined:
    Jul 25, 2019
    Messages:
    106
    Likes Received:
    2
    Do you have TuSKe installed?
     
  3. dxcf

    dxcf Member

    Joined:
    Apr 8, 2020
    Messages:
    26
    Likes Received:
    0
    Yes, The 1.8.1 one
     
Thread Status:
Not open for further replies.

Share This Page

Loading...