Hi,
I've got this code,
The problem with this skript is that it doesn't loop through the blocks, any ideas to make this work?
I've got this code,
code_language.skript:
on place of iron block:
set {_h} to location of block 5 north of event-block
set {_h2} to location of block 5 east of {_h}
set {_xmax} to rounded up x-coordinate of {_h2}
set {_zmax} to rounded up z-coordinate of {_h2}
set {_ymax} to 255
set {_h3} to location at {_xmax}, 255, {_zmax}
set block at {_h3} to diamond block
set {_g} to location of block 5 south of event-block
set {_g2} to location of block 5 west of {_g}
set {_xmin} to rounded up x-coordinate of {_g2}
set {_zmin} to rounded up z-coordinate of {_g2}
set {_ymin} to 0
set {_h4} to location at {_xmin}, 0, {_zmin}
set block at {_h4} to diamond block
loop blocks from {_h3} to {_h4}:
set {_final} to location of loop-block
add {_final} to {we.sel.%player%::*}
add {_final} to {claim.%player%.%{claims.%player%}%::*}
add {_final} to {claimed.all::*}
send "%{_final}%"
send "done"
add 1 to {claims.%player%}
set {claim.%player%.%{claims.%player%}%.name} to player