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. Mr_Simba

    Selecting 1 player in a certain world that aren't already associated with a certain variable!

    A vanilla Skript solution would be: loop players in world "GameWorld": {team.blue} isn't loop-player add loop-player to {_potentials::*} set {team.green} to random element out of {_potentials::*} Like Pika said, a where filter from SkQuery would let you shorten it to one line. You can...
  2. Mr_Simba

    Selecting 1 loop-player that is in a certain gamemode

    You wouldn't want the word 'loop' in there since that's used to iterate over a list, which you're not doing. Something like this should work fine though: set {system.selectedplayer} to random element out of (players in world "BoomTag1") The parentheses are unnecessary but I like to add them in...
  3. Mr_Simba

    Parse more than one enchant?

    You'd have to manually parse the list yourself by splitting the value at commas and " and " then parsing each one you split out.
  4. Mr_Simba

    News Release of the skUnity Chrome Extension

    holy shit my dick is huge
  5. Mr_Simba

    Book

    You can just an effect command to run it in-line while you're holding the book, i.e. set {existingBook} to player's tool
  6. Mr_Simba

    Disable skript warnings

    Yeah, most of those can be disabled via the config. The main one that can't currently is the "list is missing 'and' or 'or'" warning; a proper config option to disable that will be coming in the next release version of Bensku's fork.
  7. Mr_Simba

    Help with Snow

    Yeah, what Donut linked is what you want; to clarify (since this is requests): on form of snow: cancel event But as has been said, the event has been known to be buggy in the past. Hopefully, you don't have any such issues.
  8. Mr_Simba

    Solved set blocks in chunk

    What troubles are you having exactly?
  9. Mr_Simba

    Book

    Can't you just store the already existing book in a variable and then open it to them from that variable? If not, and you need a way to transfer the pages from the other book to a "Skellett book" (not sure how Lime made it work internally), then you should be able to use this expression to loop...
  10. Mr_Simba

    Particles

    You're not going to get much support when using such an old version. You really should just update your server, there's no reason to be on 1.6.4 anymore. At least update to 1.9 so you can use bensku's fork properly.
  11. Mr_Simba

    How to Edit Health / HealthScale of a Player

    Yes, with vanilla Skript you can get a specific line of an item's lore and then parse out a specific part of it. For example, if you have a stick and line 3 of the lore is something like "Health: +5", then you could parse it with: set {_health::*} to line 3 of %itemstack%'s lore parsed as...
  12. Mr_Simba

    Skript Teleport

    ... Why not just use the vanilla teleport command? It can teleport players to each other too. Or you could just name this command something different so you don't override the vanilla one.
  13. Mr_Simba

    Replace block 10 times

    You can't put events inside of other events. I'm not sure what you're even trying to do there, maybe the formatting didn't transfer well? What are you meaning '"respawn" 10 times after breaking"? Are you saying they need to break the block ten times for it to actually break? If so, you can just...
  14. Mr_Simba

    Help with Spawn

    Listen for player damage events, store the time they were damaged in a variable (like {lastDamageTime::%player%}), then you can check the difference between that time and now when they run the command to see if they've been damaged too recently.
  15. Mr_Simba

    Solved 1.12 NBT error

    Also, make sure you're on a version of 1.12 that works with the version of SkStuff you're using. I don't believe the initial release of TuSKe's 1.12 SkStuff fork works on 1.12.2 (though there might be another version available that I'm not aware of which works on 1.12.2).
  16. Mr_Simba

    Add nbt without skstuff

    There are often different ways to do this, e.g. as Wynnevir said you could use skript-mirror to access the Bukkit API to set an entity's invulnerability, but if you specifically mean a way to merge an NBT string with an entity's NBT, no, there isn't a way without SkStuff as far as I know. Why...
  17. Mr_Simba

    TuSke Custom Enchants

    I've only experimented with them minimally but have never had that issue. @Tuke_Nuke
  18. Mr_Simba

    Trade problem

    This is an issue with how Skript handles item comparisons. When you are checking if they have "1 player head named <name>", the plugin checks for that very specifically: a plain player with that name. It can't have any other NBT data or else the statement will fail. Annoying, I know. Instead...
  19. Mr_Simba

    Solved Place block skript

    The amount of people in this thread who don't get what you're asking is nuts. Like @Snow-Pyon said, vanilla Skript has support for an 'event-direction' expression in block click events which gets the direction towards which they clicked the block (so if they clicked the north face...
  20. Mr_Simba

    Solved Drop 1-5 item

    It'd probably be better to add the bones to the drops instead of just dropping them directly, that way they get treated as proper drops by other plugins and scripts.