can someone explain to me how loops works

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


    You can always check out skUnity Downloads for downloads and any other information about Skript!

Not open for further replies.
Feb 24, 2017
Skript version:

every 5 second:
    loop {minigame::*}:
        give iron sword named "Good luck" with lore "Survive" to loop-value
what I trying here is to check the player of my mini-game and give them a emerald ore (I know I set iron sword but is an example of what im trying to do) to spawn creepers and if the creeper kill someone gives point to the owner of the creeper.

every 2 minutes:
    loop {creeper::*}:
        kill loop-entity
every 2 minutes I want to clear the map of creepers to avoid lag and I'm sure I can do that with loops.

every 5 minutes:
    loop {place_blocks::*}:
        set event-block to air
I also want to gives the players blocks so they can made their own structures but for five minutes and I need to remove the block. Again I sure I can do that with loops.

I have some other things but I wanna make sure if I'm correct first and if someone explains to me how loops works and hot looping variables works try to figure this out by my self. Thanks for reading this I really hope you can help me.

I wanna know how works loops are someone makes me a tutorial I will really appreciate.

please don't tell me to read this because I have
Not open for further replies.