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

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

  1. M

    Skript command not working

    I was trying to make a factions skript, but when I loaded it it returned no errors but the command didn't work, minecraft didn't recognize that command at all. Here is my code command /factions <text> [<text>]: trigger: if arg-1 is "help": send "help message here"...
  2. M

    Programming techniques

    Hello fellow skripters, As i came back to skript after a couple of time spent learning python i was wondering if some of the features like list comprehension and OOP that are considered basic in plenty of programming languages were also present in skript. I'm asking because I can't seem to find...
  3. M

    Every 1 tick event

    Your problem is that in the last 2 lines you used 'player' instead of 'loop-player', here is the fixed code also following oToghty's suggestion: every 1 tick: loop all players: if {%loop-player%::frzd} = 1: if location of block below location of loop-player is not...
  4. M

    Solved aliases of a plugin with 2 args

    # here you can use <player> which is just online players and <integer> command /bounty <player> <integer>: # here usage means that if for example the second argument is a text, this message will display usage: Correct usage:&6 KitPvP&8 > &7Usage: /bounty <Player> <Amount> trigger...
  5. M

    Solved aliases of a plugin with 2 args

    Use colour codes like &6, &8, &7...
  6. M

    Solved aliases of a plugin with 2 args

    Just replace "wrong usage message here" with the message you want
  7. M

    King of the hill skript: pls help

    Just try replacing everything after every second to this every second: loop all players: if {winner} = true: if "%region at loop-player%" contains "koth": send "{@P} &c%loop-player% &eis the King of the Hill!" to all players execute console...
  8. M

    King of the hill skript: pls help

    Just put every second or something before loop all players and replace region at player with region at loop-player
  9. M

    Solved aliases of a plugin with 2 args

    command /bounty <player> <integer>: usage: wrong usage message here trigger: make player execute command "/kitbattle bounty %arg-1% %arg-2%" Just put a usage: and then the message that will display if the player enters a wrong usage
  10. M

    it wont subtract from my variable?

    try doing damage the player by 2
  11. M

    King of the hill skript: pls help

    because you have to put a command/event try something like this: every second: loop all players:
  12. M

    Identifying a Spawn

    every second: loop all zombies: if loop-entity's name is "name": # Do stuff depending on how many mobs there are it can be laggy, but it should work
  13. M

    Solved aliases of a plugin with 2 args

    command /bounty <player> <integer>: trigger: make player execute command "/kitbattle bounty %arg-1% %arg-2%" is this what you want?
  14. M

    Solved parsed as a item type

    No problem
  15. M

    Solved Crates skript not working

    So for what you want to do the chances aren't good, try adding all the items to a list and giving the player a random element from the list
  16. M

    Solved parsed as a item type

    You want to remove an item with a name from a player's inventory? set {_tool} to player's tool set name of {_tool} to name of player's tool if player's inventory contains {_tool}: Anyway I think this is what you want
  17. M

    Solved Adding / Subtracting Numbers From Variables

    on break of wool: remove 1 from {%player%.gens} send "&aYou removed a gen" Maybe try doing something like this?
  18. M

    Solved Click on a player with an item and make something

    send "Message" to clicked player Just this
  19. M

    Solved Click on a player with an item and make something

    on right click on player: if player is holding a blaze rod: if {%clicked player%.hasslowness} is 1: apply slowness 2 to clicked player set {%clicked player%.hasslowness} to 0 else: remove slowness from clicked player set {%clicked player%.hasslowness} to 1...