Sort strings in a list

  • 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 community!

    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.

Hyao

Active Member
Apr 1, 2017
73
4
8
So, I'm recreating Tekkit Classic and I'm currently making the Equivalent Exchange loot balls. Basically, something destroys some blocks -> an ender pearl pops out with a list stored inside it of each block destroyed.

As of current, it's all saved - in strings - like so:

code_language.skript:
dirt, dirt, dirt, stone, dirt, stone, andesite, andesite, dirt and stone

How can I change this to say

code_language.skript:
5 dirt, 3 stone and 2 andesite

?
 
Could you show us how you're saving the objects in your list exactly?
 
Could you show us how you're saving the objects in your list exactly?

It just loops some blocks and adds them to a list. The blocks are all parsed as strings, so
add "%block%" to VARLIST

sorry, on a mac and using brackets will probably give me some sort of disease.
 
Status
Not open for further replies.