Hello, so I am trying to make an envoy skript but something is wrong.
Everything works in the gui, but when I click on a crate it shows the coords of the last crate set. I don't know if I explained this right, so I'll upload a video to youtube to explain it.
Code:
if arg-1 is set:
if arg-1 is "add":
add "%player's location%" to {envoys::*}
send "&6&lEnvoy &8» &f'%player's location%'"
if arg-1 is "gui":
set {_num} to -1
open chest with 1 row named "&8Crate-uri envoy" to player
loop {envoys::*}:
add 1 to {_num}
if loop-value is set:
format slot {_num} of player with player head named "&6&lCrate ##%{_num}%" with lore "&e%loop-value%" to close then run [send "%loop-value%"]
Everything works in the gui, but when I click on a crate it shows the coords of the last crate set. I don't know if I explained this right, so I'll upload a video to youtube to explain it.