1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

can someone explain to me how loops works

Discussion in 'Skript' started by ELROMPEDIENTES, Apr 15, 2019.

  1. ELROMPEDIENTES

    Joined:
    Feb 24, 2017
    Messages:
    188
    Likes Received:
    7
    Skript version:

    code:
    Code (Text):
    1. every 5 second:
    2.     loop {minigame::*}:
    3.         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.

    Code (Text):
    1. every 2 minutes:
    2.     loop {creeper::*}:
    3.         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.


    Code (Text):
    1. every 5 minutes:
    2.     loop {place_blocks::*}:
    3.         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
     
  2. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    219
    Likes Received:
    7
Loading...