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

    Now, what are you waiting for? Join the community now!

  1. Luke_Sky_Walker

    not work skript random money

    One of the biggest issues I see with that code right away is that it’s not consistent. {player.randommoney} is not defined because it doesn’t match the variable you set a random number to on the previous line. Same with the line after.
  2. Luke_Sky_Walker

    Solved How to send a variable in chat?

    Add percents around variables if you plan to use them in text. Example: send “%{Example}%” to player.
  3. Luke_Sky_Walker

    Optimization of item-replacer script

    Functions. Functions can run multiple similar lines using only one line which makes them useful for Skripts that have many repetitive or similar lines. Example of optimization using a function and your code: Keep in mind, the code is untested and you may need to change a bit to fit your needs.
  4. Luke_Sky_Walker

    Disable anvil renaming for paper

    Not sure if this would be super helpful but maybe you can do a few conditional statements to check if the player's inventory is an Anvil GUI (This would be used for an on click event), then after that, check if the event item is paper then cancel that event.
  5. Luke_Sky_Walker

    colour codes just dont want to work anymore

    Firstly, provide errors/code. Secondly, if the issue is due to usage of gradients (Ie: <#084cfb>), simple double the hashtag(s) (A singular hashtag in any piece of Skript that isn't doubled can cause tons of issues especially if the hashtag is meant for colors/solely text and not code notes).
  6. Luke_Sky_Walker

    Enchantment Fix

    Behold, a piece of code I used for my server. This code is not an immediate fix to your problem but should lead you to the right direction! It sets a custom damage regardless of the weapon used. I'll leave it to you to add conditional statements that will make the damage be much greater/lower...
  7. Luke_Sky_Walker

    Need help with skript

    This should be what you're looking for! Click on the spoiler I provided below to see what I wrote & explanations of the line I added in the notes.
  8. Luke_Sky_Walker

    Click 50 times for open iron door

    I figured out a solution and a few fixes to your current code. See the spoiler below for the code (With notes for stuff I added/changed):
  9. Luke_Sky_Walker

    Skript Review/Optimze/Shorten

    You can use a function for the key all and use options. Here‘s what I was able to write as an example (No errors but untested in game):
  10. Luke_Sky_Walker

    Loop-Entity issue

    Your variable, {_PEL} can only store a singular value. Like any number or text. You’re trying to store an entire location into that variable which includes at least three different numbers. Which is why you should use a list variable, that can save as much info as you want.
  11. Luke_Sky_Walker

    Loop-Entity issue

    Hello! I've ran into this issue before too. The easiest way to fix this is to consider different script variables and what a location is. The variable you're currently using to try and set the location can only hold one value. A location in script contains at least three values, the X, Y and Z...
  12. Luke_Sky_Walker

    Skript Review/Optimze/Shorten

    That's definitely a step in the right direction. Your code is now shorter than the original version and imo is a bit easier to read.
  13. Luke_Sky_Walker

    Solved Disable comments

    No prob.
  14. Luke_Sky_Walker

    Skript Review/Optimze/Shorten

    One of the best ways to shorten/optimize code is with functions! In my opinion, functions are extremely helpful and honestly extremely convenient to use if you wanna optimize your code. You should also look into loops too. If you have multiple lines of code doing pretty similar things, you can...
  15. Luke_Sky_Walker

    Solved Disable comments

    Check Skript's main config.
  16. Luke_Sky_Walker

    Solved How to hide enchant flag of item

    Just wanna add onto this briefly, you’ll need the SkBee add on to use all flags hidden.
  17. Luke_Sky_Walker

    Anvil lore change help

    Try rearranging the slot numbers in the code I wrote, I think one is setting up the lore's line improperly. It should be a relatively easy fix.
  18. Luke_Sky_Walker

    How can I use a variable in a command line.

    You only use percents around variables if they're in a text. If they are not in a text, there's no percents. So, change %{typeofparticles}% to {typeofparticles}.
  19. Luke_Sky_Walker

    first join with any move

    Just a suggestion to make your code more effective, try not to use "execute console command" if you can help it. There's lots of expressions already in Skript that allow you to add/remove permissions from players and longer lines can mean slower code. Below I've provided a couple replacements...
  20. Luke_Sky_Walker

    Anvil lore change help

    Quite a few issues with your code. For the biggest issue, you don't have to check every single slot for the same item super long. You can set it as a separate variable. Also, since two pieces of your code check for the same item, you can check both slots at the same time. Finally, there's a much...