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 out 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.

Solved Loop blocks between locations.

Discussion in 'Skript' started by uGim, May 7, 2018.

Thread Status:
Not open for further replies.
  1. uGim

    uGim Member

    Joined:
    Jan 19, 2018
    Messages:
    25
    Likes Received:
    0
    Is it possible to loop a straight line of blocks between two locations like this:

    Code (Skript):
    1. Loop blocks between {_location1} and {_location2}:
    2.     set block at location of loop-block to air
    3.  
    I find it difficult to make such a thing with my brains.
     
  2. Best Answer:
    Post #2 by TPGamesNL, May 8, 2018
  3. TPGamesNL

    Moderator Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,501
    Likes Received:
    108
    Medals:
    Diclo likes this.
  4. Tinkot

    Tinkot Active Member

    Joined:
    Feb 10, 2018
    Messages:
    57
    Likes Received:
    1
    i think this is the correct syntax. not tested but i am pretty sure you need to use "all"

    loop all blocks between {_loc1} and {_loc2}.
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    ive tested it, and it works with or without "all" :emoji_slight_smile:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...