#Looping blocks in a line gives me a skript illegal block line error

1 messages ยท Page 1 of 1 (latest)

wary prism
#
                set {_loc1} to location(-1, 75, -9, world of player)
                set {_loc2} to location(-1, 66, 6, world of player)
                add all blocks between {_loc1} and {_loc2} to {_list::*}

                set {_loc3} to location(1, 75, -9, world of player)
                set {_loc4} to location(1, 66, 6, world of player)
                add all blocks between {_loc3} and {_loc4} to {_list2::*}

                loop {_list::*}:
                    if loop-value's type is not "tinted glass", "bedrock", or "black concrete":
                        remove loop-value from {_list::*}
                    set block at loop-value to barrier    
                loop {_list2::*}:
                    if loop-value's type is not "tinted glass", "bedrock", or "black concrete":
                        remove loop-value from {_list2::*}
                    set block at loop-value to barrier

its because skript cant determine where it ends but that should not be the case and idk whats wrong??

soft ruin
#

Not just tinted glass, bedrock and concrete

wary prism
#

oh i forgot to mark this as solved thank you though ๐Ÿ™‚ i figured it out

soft ruin
#

๐Ÿ‘๐Ÿผ

soft ruin
#

could you tell me how you solved it?

#

wait nvm