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.

Looping specific block?

Discussion in 'Skript' started by bebeli555, May 8, 2020.

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

    bebeli555 Member

    Joined:
    Feb 6, 2020
    Messages:
    28
    Likes Received:
    0
    Is there a way to loop a specific block only because loop all blocks: just crashes the server if theres more than 20 people on
     
  2. AROD2003

    AROD2003 Member

    Joined:
    Feb 14, 2017
    Messages:
    29
    Likes Received:
    1
    i'd need more info but looping all blocks is just a bad idea. you could loop all blocks around a player, that would be better though still not great. what are you trying to do?
     
  3. bebeli555

    bebeli555 Member

    Joined:
    Feb 6, 2020
    Messages:
    28
    Likes Received:
    0
    im using loop all blocks in radius 50 around loop-players rn but it just crashes the server so like loop all grass in radius 50 around loop-player would be much better but that wont work
     
  4. AROD2003

    AROD2003 Member

    Joined:
    Feb 14, 2017
    Messages:
    29
    Likes Received:
    1
    oh, in that case, just do:
    Code (Text):
    1. loop all blocks in radius 50 of loop-player:
    2.     if loop-block is grass block:
    3.         # code here
     
Thread Status:
Not open for further replies.

Share This Page

Loading...