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 if loop-block = {var} doesnt work

Discussion in 'Skript' started by Jacknug, Mar 3, 2022.

Tags:
Thread Status:
Not open for further replies.
  1. Jacknug

    Jacknug Member

    Joined:
    Mar 3, 2022
    Messages:
    1
    Likes Received:
    0
    every 15 seconds:
    set {var} to a random element of sand,red_sand
    loop all blocks in region "Area":
    set block at loop-block to a random element of sand,red_sand
    wait 5 seconds
    loop all blocks in region "Area":
    if loop-block = {var}:
    set loop-block to air

    all of this works except for

    loop all blocks in region "Area":
    if loop-block = {var}:
    set loop-block to air

    error message: There are multiple loops that match loop-block. Use loop-block-1/2/3/etc. to specify which loop's value you want.

    i cannot find any solutions to this so could i get some help?
    --- Double Post Merged, Mar 3, 2022, Original Post Date: Mar 3, 2022 ---
    nevermind i fixed it
     

    Attached Files:

Thread Status:
Not open for further replies.

Share This Page

Loading...