Solved Need Help with compacting this skript

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

KoenMaster05

New Member
Jun 5, 2023
7
2
3
19
Hi everyone, I am really new to skript and I made a skript but I have no idea how to make it smaller. The skript I have right now is way too long and crashes the server (It works when its smaller)

Can someone help me?
Thanks!

I put the code in a .txt file your you guys to read.
 

Attachments

  • compressor.txt
    20 KB · Views: 142
replace every line of code where you make lists like that:
original line:
Code:
UpgradedVersion5: 1 oak button named "<##964B00>Compressed Oak Log", 1 stone button named "&7Compressed Cobblestone", 1 iron ore named "&fCompressed Iron Ingot", 1 gold ore named "&6Compressed Gold Ingot" and 1 diamond ore named "&bCompressed Diamond"
modified:
Code:
UpgradedVersion5: (1 oak button named "<##964B00>Compressed Oak Log"), (1 stone button named "&7Compressed Cobblestone"), (1 iron ore named "&fCompressed Iron Ingot"), (1 gold ore named "&6Compressed Gold Ingot") and (1 diamond ore named "&bCompressed Diamond")
Simply put in the round brackets every element. Its old parser problem
 
  • Like
Reactions: KoenMaster05