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

    Solved Auto Compresser

    I've mentioned this in other posts before, but you don't want to have events/loops running every second or so as that can be hard for the server to handle if it has a lot of players. If you can get emeralds from picking them up, simply use a 'on pick up' event instead. Also, the proper syntax...
  2. Luke_Sky_Walker

    golden apple cap

    It would probably be best not to loop every player's inventory every 5 ticks (Could be laggy). When it comes to testing events like this, it's easier to only call upon them when needed. In this case, I made a check for when a player consumes an apple. Then without doing much math, you can simply...
  3. Luke_Sky_Walker

    .

    This is more a request than Skript Help, thus you should post this in: https://forums.skunity.com/forums/requests/
  4. Luke_Sky_Walker

    Solved super critical hit

    Try adding: while ground state of player is false: (Source: 'On Fall')
  5. Luke_Sky_Walker

    Solved Checking if a player is holding 1 or multiple items.

    Mb, the solution I previously offered didn't work. After a bit of testing, simply set the player's held item to a variable then check if the number of that variable in the player's inventory is greater than a specified number. set {_n} to player's tool if number of {_n} in player's inventory >=...
  6. Luke_Sky_Walker

    Solved Checking if a player is holding 1 or multiple items.

    Try: item amount of player's tool
  7. Luke_Sky_Walker

    Execute a command if 2 players are in a worldguard region

    The code you attempted to write for that functionality has major issues. I'll address them and give you links to the Docs which would help tremendously. It would also help to learn more basic Skript functionalities before attempting something more complicated. Firstly, you cannot check right off...
  8. Luke_Sky_Walker

    Can't Compare a slot with 'named "Warden Sword"'

    Your issue is on the second line you posted. It should be: if name of attacker's tool is "Example": Another example of this: Here (Sorry, couldn't find an exact copy of it in the Docs. The general format of the expression is something you can refer to on line #86 of this Skript, notice how...
  9. Luke_Sky_Walker

    luckperms voucher help

    Firstly, you'll wanna format your code just so it's easier to read (In a code block). Also, you'll need to make sure that the name of the item and the name of the item you put in the code are identical. If there's one thing that isn't accurate with either, (Ie: If the name of actual item is...
  10. Luke_Sky_Walker

    identify where the player is looking

    Not sure if this is too helpful, but you could maybe get the player's selected block (Here) and use that coordinate to adjust the particles to be right in front of the player.
  11. Luke_Sky_Walker

    Convert

    Try using this resource (Keep in mind you can use variables to store data like items too!): Custom Model Data Expression Solution (PS: Don't spoon feed code :P):
  12. Luke_Sky_Walker

    Block's UUID in a variable

    Just FYI for the OP and for future reference; that's not the most efficient code. The commands at the bottom can be shortened a ton (You could use both variables and functions to cut their length down by at least half, maybe more). You could also likely shorten the code for checking if a player...
  13. Luke_Sky_Walker

    Help with tiers/lp group skript

    You could just do something like: on load: set {pg} to player's group send "&9%player% tier is &6%{pg}%" to player The expression 'player's group' can be used regardless of your permission or group plugin (So long you have at least Vault) due to it being already included with Vanilla...
  14. Luke_Sky_Walker

    10 player joins

    Yep, that would work. Just replace subtract with remove. However; this would be a note to whoever wants to use this for their server; you'd want to make sure that you have a way to reset/modify the code for the function to CheckPlayers. This is because of the possibility of their being 9 players...
  15. Luke_Sky_Walker

    10 player joins

    There's a couple reasons that wouldn't work. For one, the type of variable you're using wouldn't save. If it has an underscore before, the value is reset per block of code so yes, {_playersJoined} will be zero on load, but only for that section of code. Also, the request is that they want it to...
  16. Luke_Sky_Walker

    Issue With args

    You don't have your first argument formatted properly. You also have to use angle brackets around your argument (Before using square brackets). Example: command test [<text>]: trigger: # code here
  17. Luke_Sky_Walker

    10 player joins

    You can achieve this by looping all players and checking how many times the loop ran. Then, if it's 10 or greater, it'll run a key all command.
  18. Luke_Sky_Walker

    Help with Kill-Rewards Self-Kill Protection

    Simply add a condition to make sure that the player the other player killed is not themselves. on death: victim is a player victim is not player attacker is a player This may look confusing on line two and you may think that that'll break your code but the difference is that it's not...
  19. Luke_Sky_Walker

    Cooldown

    The issue with it being in a decimal format can be fixed if you use the round() function. It shouldn't need a separate function to be created and you'd just replace {_c} with round({_c}).
  20. Luke_Sky_Walker

    increase a variable for all players

    Try: {Tokens::%loop-player's uuid%}. You will need to use loop-player regardless for it to potentially work because otherwise it doesn't register that it's for all looped players. Also, just FYI but you'll want to avoid looping/doing things every second via Skript as that can bring down...