Solved How to place blocks on variable list's locations?

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

PantherBoy

Active Member
Jul 20, 2017
74
0
6
24
I did this code:
code_language.skript:
variables:
    {edit} = false
   
on skript start:
    loop 10000 times:
        wait 3600 seconds
        execute command "/magusfelho"

command /magusfelho [<text>] [<int>]:
    trigger:
        if arg 1 is "edit":
            if {edit} is false:
                set {edit} to true
                loop {magusfelhok::*}:
                    replace blocks on looped-locations to air
                broadcast "Edit started"
            else if {edit} is true:
                set {edit} to false
                set {magusfelhok::*} to air
                broadcast "Edit stopped"
        if arg 1 is "list":
            broadcast "%{magusfelhok::*}%"
        if arg 1 is "del":
            delete {magusfelhok::%arg 2%}
            broadcast "%arg 2% item deleted from the list"
       
on place of bedrock:
    if {edit} = true:
        broadcast "Block placed"
        set event-block to bedrock
        add location of event-blocks to {magusfelhok::*} 
       
on break of bedrock:
    if {edit} = true:
        broadcast "Block removed"
        set event-block to air
        remove location of event-blocks from {magusfelhok::*}

But I have a problem:
"Can' understand this condition/effect: replace blocks on looped-locations to air (line:15)"
How can I fix it?
 
code_language.skript:
loop {magusfelhok::*}:
    set block at loop-value to air
 
Status
Not open for further replies.