Solved Can't get this menu working

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

Natalciuu

Member
Nov 12, 2020
20
0
1
21
I'm currently making a crate system using skript, I just can't seem to get it working, I need to make it so I loops through the items when you right click a trapped chest, then those items in the trapped chest before you are the crate items, i've done this not using something similar to skript, but I'm not the best with skript. Here's my code:

Code:
command /crates:
    trigger:
        set {_crateChoice} to a random integer between 1 and 100
        send "%{_crateChoice}%"
        loop 27 times:
            add 1 to {index}
            set metadata tag "crates" of player to chest inventory with 3 rows named "&cTest"
            set slot {index} of metadata tag "crates" of player to stone named "&6General Kenobi"
        open (metadata tag "crates" of player) to player
        set {index} to 0
 
Status
Not open for further replies.