Display a list stacked

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

Mattllama987

Active Member
Aug 5, 2018
225
7
18
24
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:
    loop {kit::%{_k}%::items::*}:
        set {_i} to loop-value
        if {_k} is set:
            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
 
Status
Not open for further replies.