Loop Blocks Issue

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

    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.

jackass

Member
Nov 8, 2017
16
0
0
Hello. This skript is meant to set the block below any lapiz block in a 3 radius to sand, but the skript seems to set the block below 1 to sand, wait a second, then move on to the next block in the radius. The issue is I need the block below all lapiz blocks to turn to sand at the same time, not separate.

Code:
on place:
    if name of held item is "&7Sand Bot":
        if event-block is a chest:
            loop blocks in radius 3 around the event-block:
                if loop-blocks is lapis_lazuli_block:
                    loop 10 times:
                        set block below loop-blocks to sand
                        wait 1 second
 
Try this:

Code:
on place:
    if name of held item is "&7Sand Bot":
        if event-block is a chest:
            loop blocks in radius 3 around the event-block:
                if loop-blocks is lapis_lazuli_block:
                    loop 10 times:
                        set block below loop-blocks to sand

If it didn't work, send me the errors.
 
Status
Not open for further replies.