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

    random int

    You can spawn zombies in a random location on the red wool by looping the coords between that area and then setting random numbers between those coordinates as you'd wish then spawning a zombie at the coords you set.
  2. Luke_Sky_Walker

    luckperms rankup help please

    I won't spoon-feed you code to your solution, however, you can do this by checking out these places that I've linked on the docs! For stepping on blocks: https://docs.skunity.com/syntax/search/id:4849 For setting the player's rank (FYI: You can use the set effect with this expression!)...
  3. Luke_Sky_Walker

    Solved return something in function when clicked on inventory with skript-gui

    You have to set up the function to be able to return values (Could be boolean, text, an item, etc) and attach that value to the end when you create your function. Like so: function ExampleFunction(t: text) :: boolean: if {_t} is "Option1": return true else: return false
  4. Luke_Sky_Walker

    Mob Spawn

    Alright, I did a little research and I don't think there's an easy way to do this with Skript. The best thing I found you could use (If you figured out how to) would be this: https://docs.skunity.com/syntax/search/id:10555. Basically different classes for how something could spawn. Not sure how...
  5. Luke_Sky_Walker

    Solved Auto Compresser

    Check the event-item's name to make sure it isn't a compressed item.
  6. 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...
  7. 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...
  8. Luke_Sky_Walker

    .

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

    Solved super critical hit

    Try adding: while ground state of player is false: (Source: 'On Fall')
  10. 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 >=...
  11. Luke_Sky_Walker

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

    Try: item amount of player's tool
  12. 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...
  13. 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...
  14. 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...
  15. 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.
  16. 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):
  17. 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...
  18. 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...
  19. 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...
  20. 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...