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
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: