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.

Solved Name/Lore requirements

Discussion in 'Skript' started by SuperEpps22556, Oct 3, 2017.

Tags:
Thread Status:
Not open for further replies.
  1. SuperEpps22556

    Joined:
    Oct 3, 2017
    Messages:
    17
    Likes Received:
    2
    I'm trying to code a skript where if someone right clicks a nether star named "&c&lParty Star" with the lore "&5&lRight-Click for a reward". I had this coded but not sure exactly where to go from there:

    on right click holding nether star:
    chance of 33%:
    execute console command "/crate key %player% rewards 1"
    remove 1 nether star from the player
    stop
    chance of 33%:
    execute console command "/eco give %player% 10000000000"
    remove 1 nether star from the player
    stop

    The way this is coded its where you can right click any nether star and get the reward. I want to be able to right click with only the requirements and get a reward.
    Thank You.

    addons: skellet, skquery, randomsk
     
    #1 SuperEpps22556, Oct 3, 2017
    Last edited: Oct 3, 2017
  2. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,336
    Likes Received:
    176
    Medals:
    Code (Skript):
    1. if name of player's tool is "stuff":
    2.     if lore of player's tool is "stuff":
     
  3. SuperEpps22556

    Joined:
    Oct 3, 2017
    Messages:
    17
    Likes Received:
    2
    Thank you, got it to work how I wanted. Cheers.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...