Solved if loop-block = {var} doesnt work

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

  • LOOKING FOR A VERSION OF SKRIPT?

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

Status
Not open for further replies.

Jacknug

Member
Mar 3, 2022
1
0
1
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?
[doublepost=1646334125,1646330578][/doublepost]nevermind i fixed it
 

Attachments

  • image_2022-03-03_190300.png
    image_2022-03-03_190300.png
    22.9 KB · Views: 95
Status
Not open for further replies.