loop

  • 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. Jonathan Cohen

    Solved loop-value error

    Skript version: 2.2-dev36 Error: [20:55:37 ERROR]: There's no loop that matches 'loop-value' (crackskywars.sk, line 1098: set {_lvalue} to "%loop-value-3%"') Code: https://pastebin.com/Jj3ggWAL
  2. acai

    Skript Using "Loops"

    Hello! Welcome to my second tutorial. This is a very simple lesson, but I am using it in a way some people would not. We will be using loops to count players, entities, and blocks today! How do I use loops, you may ask? After an event and the correct syntax, you can use a loop. Let's start with...
  3. C

    For 40 seconds, set all arrows fired to have effects

    Hello all, I've recently started using Skript and am really stuck with how to do a few things. I'd like to have a script that does the following. (Note that this uses a custom item/handle in the first part which triggers when the item is just right clicked. This works fine and my query isn't...
  4. U

    loop items from GUI and add only items to list variable, not air

    i've been trying to find a solution for a few hours now, and i can't find anything. this is the part that generates the list variable from the GUI inventory loop 54 times: set {_loop} to loop-value - 1 set {bingo.%{_loop}%} to slot {_loop} of player's current inventory...
  5. L

    loop all players - it doesn't work

    Hey, I have a Problem with the "loop all Players" If i want to loop all Players, it only choose 1 random Player. command /forcemap [<text>]: permission: mlgffa.forcemap permission message: &cDu hast keine Rechte dafür! trigger: if {jetzt.forcemap} is false: if player's world is "FFA01"...
  6. C

    Making a cuboid with 2 variables.

    This is the code I am using: every second: loop blocks between block at {Wood.1} and block at {Wood.2}: set loop-block to jungle wood bark block Here is what happens: https://gyazo.com/4ad849d30acae72353079b6ff8ab61c8 Here is what I want to happen...
  7. B

    Solved Help with some characters can't replaced.

    Can someone help me with color format isn't replaced Method 1: #looping command /acac [<text>]: trigger: if arg is not set: set {_arg} to "null" set {_name} to "null" if arg is set: set {_arg} to "%arg%" set {_name} to "%arg%"...
  8. T

    Solved help with loop of players inventory

    So the code below is meant to check if the player is wearing the correct armor (which is does properly) then again check if the player is still wearing that armor every 5 seconds (just for testing purposes for now) the problem is that it does detect that the player has taken the armor of. The...
  9. TenToTu Sho

    Loop Variable Problem

    hi, im making a code, but i have this following problem: command /test123: permission: admin.test trigger: loop {pvp.elo.*}: loop-value is greater than 1999 set {seasonglory} to loop-value - 2000 set {seasonglory} to {seasonglory} / 2...
  10. L

    Message repeat in a loop

    every 5 seconds: loop all players: loop blocks in radius 5 around loop-player: loop-block is a fire or lava: add player to {temperatura.fuego::*} add 0.25 to {temperatura.actual.%loop-player%} if {temperatura.actual.%loop-player%} < 37.4...
  11. F

    Solved Infinity Loop?

    Hey guys, command /test: trigger: if {test.%player%} is true: set {test.%player%} to false send "Test = False" else: set {test.%player%} to true loop 1 times: broadcast "Test in on true!!!" wait...
  12. J

    Need help with some Timed Loop Stuff

    Skript Version: 2.4 Minecraft Version: 1.15.1 So, I'm making a thing called Class. So when a player first joins, the player will be prompted with a GUI Menu, and to choose one of the 2 classes: One is Warrior and the other is Builder. The player cannot close the GUI. Once the player has chosen...
  13. J

    Stop loop if taken damage

    Hey bois and girls. Im in the making of a drug lab skript. And i wanna make it so if u take damage the loop stops. This is what i have a this point in time. on rightclick on dropper: if "%region at event-block%" contains "Druglaborken": cancel event if {drugcooldown.%uuid...
  14. XSKRIPTX

    loop and give player items

    Hello i have set {test.lvl.1::*} to items in the player's inventory set player's inventory to {test.lvl.1::*} but i will have loop {mw.lvl.%player's level%::*} and give player all looped items of {mw.lvl.%player's level%::*} can anybody make a Example or help me NEWS: my test code but it...
  15. Z

    Can't loop because its only a single value

    Ok so I saw this skript that was a command log and I wanted to try to make it so each player had their own logs. For example, you could do /logs Player Commands and all of those players command would be listed. Heres the code: on command: if sender is a player: set {_time} to now...
  16. G

    Loop file names

    How can i loop file names in directory? ~ Sorry for this bad english.
  17. C

    Problem With Variables

    i am trying to recreate parts of skyfactory like silkworms and i have tried to do it but i can't get it to work properly on right click: if {Running} is equal to 1: if targeted block is oak leaves: if distance between targeted block and player is less than or equal to 5...
  18. A

    Loop all players in a list ? HELP !

    Hello everyone ! I have a problem while making a Skript.. I made a list which is called {rtf.kit.tank::*} and I have some players added in this list. I want to loop all players who are in the list. How can I do ? Here is a code for example of using the loop all players in a list. Should I use...
  19. A

    Solved Loop-player help

    Hello, I using a latest version of the minecraft skript plugin and I have got a problem with.... There's no loop that matches 'loop-player has not permission "vanish2.sk" ' I usig some addons, but I not thing it's that. This is CODE in file core.sk: command /vanishsk: trigger: if...
  20. B

    Solved Loop between blocks

    Hey is there a way to loop all blocks between 2 cords in a square selection? I tried loop blocks between block at x and x: but that only loops the blocks between the 2 cords, I'm trying to loop the blocks in a square like matter like /fill, can anyone help? bump Solved, I did blocks within...