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

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

  1. C

    Snowball able to successfully shoot fireballs

    I was trying to write a Skript that's able to change snow golem's snowballs to fireballs, though I'm not too good at stuff like this. It kinda worked, but not only do I not really see the fireballs as much (I assume they phase into the ground or they go too fast), the snow golem shoots them...
  2. PixelCraft_I_D_K

    Sound Overlap

    Hi there! I'm trying to make an in-game music Skript where it loops the cat disc. I calculated the exact number of minutes the disc is (im using a texture pack) and when I play it in-game it works but the sound plays over itself. I can't figure out how this happens. Here is my code: command...
  3. T

    Loop entities with nbt data

    How do i loop entities with nbt data?
  4. DankThanos

    How to make a system that removes a specific index of list and move all indexes after that down 1 step?

    I am making a /changelog command and I am trying to make a remove system, by running the command /changelog remove 2 it should remove the 2nd row of the changelog and move the rows beneath it up one step. Although, the last row doesn't seem to correctly change position. if i would have the...
  5. D

    Issues with ending a specific loop!

    Hey! Moderately new to Skript, but loving it so far!! I'm developing a sort of 4 way Capture the Flag server, with some twists, and I've written this code to manage the flag system. Essentially, when a block is placed that isn't the flag, its canceled and the player is told. When the flag is...
  6. S

    Is it possible to Loop the world that the player is currently in??

    Is it possible to Loop the world that the player is currently in??
  7. S

    looping all bungeecord players

    I am trying to give all players on my server x coins every 10 minutes of time they play. every 10 minutes: loop all bungeecord players: message "&6+1 Coin" to loop-player add 1 to network variable {network.coin.%loop-player%} The error i get is: Can't understand this loop...
  8. J

    Item Exchanger Skript

    I have an item exchange skript where you trade lower tier protection stones for higher tier ones through the GUI Issue: it only detects one protection stone in my inventory, when im actually holding 2 of them. If I move them to another slot, the trade then works and it counts as 2. loop-slots...
  9. Circuit2006

    stopping all loops

    I've tried stopping loops with, stop loop, and stop loop-2, but neither work as it states there is no loop even though the 15min is in action.
  10. G

    Execute skript the entire time that more than 15 players are online.

    This is for a random item drop skript. I want to make sure that it only works while the server is active, with more than 15 players online, I've looked for a while but can't seem to find anything that works properly. every 3 minutes: execute console command "consolecommand" stop...
  11. P

    Solved issues with loop-entity

    This code doesnt want to work for some reason: on load: loop all entities: loop-entity is cow broadcast "%loop-entity%" addons: skbee
  12. M

    Solved Prevent duplicate "while player is online:" loops

    Some time ago, I learned that on join: while player is online: #do stuff wait 5 seconds is better than every 5 seconds: loop all players: #do stuff for that player in terms of performance, which I do see. However, I noticed that if you logged out and logged on...
  13. pokw

    No loop that matches loop-value

    Not sure why it says there's no loop here, any ideas? function removeEnch(i: item, e: enchantment): loop enchantments of {_i}: add "%loop-value% %level of loop-value of {_i}%" parsed as an enchantment type to {_e::*} disenchant {_i} loop {_e::*}: if "%loop-value%"...
  14. M

    Looping and making Gui slot with a function

    Hello there so i am trying to create a loop that create gui slots with different functions. But it cannot put the right information into the function part. format slot {_i} of player with skull of {_name} named "&r" with lore "%{_name}%&7&m-" to close then run [kauctiontest(player...
  15. S

    Many different errors involving loop-player

    Im trying to make a side bar to show the players money, and i made this test sidebar but it gives 3 errors. every 1 seconds: loop all players: #Cant understand condition/effect wipe loop-player sidebar wipe loop-player sidebar #loop-player is neither an item stack...
  16. MEGATREX4

    Furnace damage while smelting

    I want that while the furnace is melting it will deal damage to the player i tried using different triggers on smelt: - does not work on fuel burn: - does not work on join: - works all the time, even when it is not melting on smelt: wait 1 tick while player is alive: loop all...
  17. J

    Search and retrieve keyword to retrieve from list

    PLEASE DO NOT REACT TO ANYTHING BUT THE FINAL QUESTION Don't get confused by the long intro, i'm simply attempting to describe my idea, current problem and thought process. Before finally asking the one question i have deduced will allow me to succeed. INTRO BELOW Basicly what i'm imagining...
  18. Verku

    Loop players/times not working

    Hey! Ich habe seit einiger Zeit das Problem das ich keine Loop-Funktion nutzen kann. Ich benutze momentan die 1.18 Minecraft Version und dort funktioniert es nicht. In jeder anderen Version hat es funktioniert. Gab es da ein Update oder funktioniert es einfach in der Version nicht? Weil diese...
  19. ImCardiaK

    Solved Skript ne reconnais pas les Loop.

    Bonjour ! Depuis que j'utilise Skript pour la version 1.18 de Minecraft. Aucune Loop ne fonctionne. Peut-importe si la loop est: - Loop X times - loop all entities - loop all player ... Une erreur console apparaît indiquant seulement la ligne ou la loop ce situe. Pouvez-vous me dire si cela à...
  20. C

    Solved Loop blocks and players not working as expected

    I have this script set up to act as temperature using Skript, but there's an issue. If two players stand very close together next to the campfire, one of them doesn't get the variable increase. Is there anything I can do about this? every 2 ticks: loop all players: loop all blocks...