When i use this marker i made it adds an extra copy of the blocks position, to the list, and i can't figure out why.
so the output becomes:
as you can see the first position is added twice.
Code:
# Marker will save a right clicked blocks position
on rightclick:
if {marker} is true:
set {_new_pos} to location of clicked block
add {_new_pos} to {marker::*}
message "Marker added: (%{_new_pos}%)"
message "Current Markers:"
loop {marker::*}:
message "(%loop-value%)"
so the output becomes:
Code:
[11:30:10 INFO]: Current Markers:
[11:30:10 INFO]: (x: 11.5, y: 64.5, z: 5.5)
[11:30:10 INFO]: (x: 11.5, y: 64.5, z: 5.5)
[11:30:10 INFO]: (x: 13.5, y: 65.5, z: 5.5)
as you can see the first position is added twice.