Solved Name/Lore requirements

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Oct 3, 2017
19
2
3
25
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
 
Last edited:
code_language.skript:
if name of player's tool is "stuff":
    if lore of player's tool is "stuff":
 
Status
Not open for further replies.