Search results

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

  1. Tewahh

    Custom Enchants

    Being late is fine, but, now its my time to be a little late, how would I shorten my code and use functions, loops etc. any tips/sites/information is greatly appreciated.
  2. Tewahh

    Custom Enchants

    function GetLoreSize(p: player) :: integer:# :: integer : set {_Lore::*} to lore of {_p}'s tool loop {_Lore::*}: return size of {_Lore::*} # TO-DO LIST # make commands that will disable enchants/messages # finish the actual enchanter gui # figure out how to shorten and optimzie...
  3. Tewahh

    JustADev's Snippits

    I dont think the "Lines of Lore:" part works. I put it in the skunity parser, and it gave me errors.
  4. Tewahh

    Custom Enchants Request & Help

    Alright, I'll have to add that, i know about using Functions to make code shorter and cleaner, but im not good at making them. I really dont know how to make it all work in functions. I just want my code to be as organized/neat/optimized as possible.
  5. Tewahh

    Custom Enchants Request & Help

    # TO-DO LIST # make commands that will disable enchants/messages # finish the actual enchanter gui # figure out how to shorten and optimzie the code so that it looks cleaner command /ce: aliases: /customenchants, /customenchant, /enchants trigger: set {_item} to gray stained...
  6. Tewahh

    Custom Enchants Request & Help

    oh yeah, completely forgot that we could do that. thank you!
  7. Tewahh

    Custom Enchants Request & Help

    so, what about the long lines of code near the middle ish. where the actual enchants are obtained using the right click method?
  8. Tewahh

    Custom Enchants Request & Help

    bump
  9. Tewahh

    Custom Enchants Request & Help

    command /ce: aliases: /customenchants, /customenchant, /enchants trigger: set {_item} to gray stained glass pane set {_enchantmentsList} to book named "&eList Of All The Enchants" set line 1 of lore of {_enchantmentsList} to "" set {_commonEnchant} to book...
  10. Tewahh

    Custom Enchants

    where is the file?
  11. Tewahh

    Skript Review/Optimze/Shorten

    So, I made custom enchants like 2 months ago, and I haven't updated anything, it shows no errors. but it has a lot of lines. I want to turn it into functions and stuff that would make it better and more optimized. I also have an idea for a custom enchant but have no idea how to implement it. It...
  12. Tewahh

    Skript Review/Optimze/Shorten

    Thank you! You are helping me out a ton!
  13. Tewahh

    Skript Review/Optimze/Shorten

    You also said something about loops. I have a keyall skript but i have no idea how to use functions/loops to make it more optimized. options: keyallPermission: SupremeCore.Staff.Crates.Keyall noPermissionMessage: &cYou don't have the required permissions to use this command. Please...
  14. Tewahh

    Skript Review/Optimze/Shorten

    function openCrateInventory(p: player): open chest inventory with 4 rows named "&b&lCrates" to {_p} set slot 0 of {_p}'s current inventory to stone named "&b&lCustom Crate" function openRewardsInventory(p: player): set {_gui} to a new chest inventory with 2 row named "&a&lCustom...
  15. Tewahh

    Skript Review/Optimze/Shorten

    Alright, Thank you for your help. Ill look into making functions and loops.
  16. Tewahh

    Skript Review/Optimze/Shorten

    command /crates: description: The laziest best way of doing something. trigger: open chest inventory with 4 rows named "&b&lCrates" to player set slot 0 of player's current inventory to stone named "&b&lCustom Crate" on inventory click: #check if the clicked...