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.

Display a list stacked

Discussion in 'Skript' started by Mattllama987, Mar 21, 2021.

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

    Mattllama987 Active Member

    Joined:
    Aug 5, 2018
    Messages:
    225
    Likes Received:
    7
    Hello, i have a question at lists. There isnt a whole lot to say. But how can i get a list to show the items in it stacked? Here is what i mean.
    Im trying to show my lists like this:
    dirt
    stone
    gold
    diamond

    When i display the list now, it looks like this: "dirt stone gold and diamond

    Im trying to loop the list, and set a var to the value of the list. But its not working. This is the code here to loop the list and display it in the lore of the slot.

    Code (Text):
    1.     loop {kit::%{_k}%::items::*}:
    2.         set {_i} to loop-value
    3.         if {_k} is set:
    4.             set slot {_f} of {_P}'s current inventory to glowing obsidian named "&c&l%{_k}%" with lore "&8&m--+---------------------+--", "&8* &bKit name: &c&l%{_k}%", "&8* &aCooldown: &c%{kits::cooldown::%{_k}%}%", "&8* &d&lItems: &5%{_i}%"
    {_i} is the items in the list

    If anyone knows how to make this work, please let me know asap.
    Thanks!
    ~Matt
     
Thread Status:
Not open for further replies.

Share This Page

Loading...