Solved Giving player a item from a variable

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

ImKingGolden

Member
Aug 11, 2020
21
1
3
23
I made a Crate skript and im trying to get it so they can get a reward from the variable instead of making a long list. Any help

on right click on barrier:
if player's held item is tripwire hook:
if name of tool is "&aMiner Key":
cancel event
open virtual chest inventory with size 5 named "&aMiner Crates..." to player
format gui slot integers between 0 and 45 of player with purple stained glass pane named " " to do nothing
set {MinerCrate::%player's uuid%} to random text of "32 Cobblestone", "32 Stone", and "64 Stone"
send "&aYou got %{MinerCrate::%player's uuid%}%"
set {_reward} to {MinerCrate::%player's uuid%}
give player {_reward}
 
Status
Not open for further replies.