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 Can't get this menu working

Discussion in 'Skript' started by Natalciuu, Apr 12, 2021.

Thread Status:
Not open for further replies.
  1. Natalciuu

    Natalciuu Member

    Joined:
    Nov 12, 2020
    Messages:
    20
    Likes Received:
    0
    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 (Text):
    1. command /crates:
    2.     trigger:
    3.         set {_crateChoice} to a random integer between 1 and 100
    4.         send "%{_crateChoice}%"
    5.         loop 27 times:
    6.             add 1 to {index}
    7.             set metadata tag "crates" of player to chest inventory with 3 rows named "&cTest"
    8.             set slot {index} of metadata tag "crates" of player to stone named "&6General Kenobi"
    9.         open (metadata tag "crates" of player) to player
    10.         set {index} to 0
     
Thread Status:
Not open for further replies.

Share This Page

Loading...