I did this code:
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:
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?