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

    drawSphere question

    It's possible, but it's not an inherent skDragon feature. You'd want to store a location that your "ball" is at, have the sphere draw at that variable's location, and then do logic yourself to damage players within (sphere's radius) of that location. You could even do stuff like storing a...
  2. Mr_Simba

    Random words

    Or, in one line set {nick::%player%} to random element out of ("Tini", "Best" and "Ailumi")
  3. Mr_Simba

    Solved How to do this.

    Yes, it's possible, though it would be a bit time-consuming. There isn't much you can do with plugins that you can't do with Skript with the right addons.
  4. Mr_Simba

    2 types of arguments at same time?

    Ideally instead of 'if arg-2 is parsed as a player' you'd do 'if arg-2 parsed as a player is set'. Also look up what an 'else if' statement is. Will make your code smarter and probably marginally faster (you're checking unnecessary if statements in three places here).
  5. Mr_Simba

    How can I save a entity for another code?

    You can store entities in variables, it just doesn't persist over server restarts. Set the player's variable to the entity itself then you should be able to see its name by referencing the variable. Also, you should be deleting the askquestion variable instead of setting it to 0. It's better to...
  6. Mr_Simba

    How to check any item lore

    @DieHollander_ has the correct solution, but note that looping all items in all players' inventories every tick is a bad idea. Not lag friendly at all.
  7. Mr_Simba

    How to check if clicked block is at specific coordinates?

    You should be able to rewrite this: if "%location of event-block%" is "x: 100.5, y: 100.5, z: 100.5" as this: if location of event-block is location(100.5, 100.5, 100.5): The location of a block is stored at the center of the block. For any location value (such as the value you see when looking...
  8. Mr_Simba

    how do i add this?

    This entire thing isn't coded very well. It sounds like you just want something to clear all non-player entities every five minutes with a command to allow you to let you know how long until the next clear is, right? If so, you should do something like this: every 5 minutes: set {_cleared}...
  9. Mr_Simba

    Solved Parse as time period

    Try parsing it as a 'timespan'. Also, what errors are you getting?
  10. Mr_Simba

    Solved Help with skript

    Np, glad that fixed it!
  11. Mr_Simba

    Solved Help with skript

    I mean, one thing is that your pasted version has the 'else' block indented one too many levels. Not sure if that's your problem since you didn't mention any reload errors but that's the first & most obvious issue with the code as it's pasted.
  12. Mr_Simba

    Float Value

    Parse it as a number instead.
  13. Mr_Simba

    String to item type

    Yeah, just parse it as an item/material. Parsing is how you convert a string into another type.
  14. Mr_Simba

    execute a command when there is "x" player?

    amount of players in world "worldname" That should get you the number of players in the world, which you can use to check if it has as many as you want to run the minigame.
  15. Mr_Simba

    Other Custom effects and expressions with skript-mirror

    As for creating our own types, enums which support your standard bit mask logic could be cool. Or just bitwise operators in general. This looks awesome, though.
  16. Mr_Simba

    Chest refill

    How do you expect that math to work out? A 90% chance, a 40% chance, and a 10% chance? Those add up to 140%, there's no way to do that as if you've worded it.
  17. Mr_Simba

    lore

    set player's tool's lore to "%player's tool's lore%||Whatever you want to add goes here"
  18. Mr_Simba

    NBT of an item and adding to an array.

    As in to get all of the tags of the item at once, like "set {_list::*} to nbt tags of item"? No, there's no way. You could possibly turn NBT into a string and parse it manually with some sort of splitting at commas, but that would be pretty difficult to do properly. If you mean just to get NBT...
  19. Mr_Simba

    Need help with nbt

    Part of this is just understanding how Skript handles stuff; specifying a name and lore will likely override the custom NBT since they're both separately taking the base item ("diamond_hoe") and modifying it. That being said, you should be able to just add the name and lore directly in the NBT...
  20. Mr_Simba

    Skript Teleport

    If you want the exact functionality of the vanilla command but with a cooldown, you should just detect when they run the vanilla command with 'on command' and then wrap your own behavior around that to control whether they can execute the command or not.