Hi,
I have a problem.
I have a variable {cookieclicker::%player's uuid%:oints}.
How would I make a top GUI list with it?
I mean like:
There is code online to do it, but it's just with {cookieclicker::%player%:oints} and im using UUID's
Example of that code:
I know this is not a GUI, but i could change this.
Anyone know how to solve this issue? The code above would probably just give me 1. [MyUuid] instead of 1. senge1337.
Thanks,
senge1337.
I have a problem.
I have a variable {cookieclicker::%player's uuid%:oints}.
How would I make a top GUI list with it?
I mean like:
Code:
open virtual chest inventory with size 6 named "&b&lTOP" to player
format gui slot 0 of player with 1 of skull of ("senge1337" parsed as offlineplayer) named "&61. senge1337" with lore "&63 cookies."
Example of that code:
Code:
command /test:
trigger:
set {_s} to size of {cookieclicker::*::points}
loop {cookieclicker::*::points}:
set {_list::%loop-index%} to loop-value
loop {_s} times:
loop {_list::*}:
if {_v.%loop-number%} is not set:
set {_v.%loop-number%} to loop-value-2
set {_n.%loop-number%} to loop-index
if loop-value-2 is larger than {_v.%loop-number%}:
set {_v.%loop-number%} to loop-value-2
set {_n.%loop-number%} to loop-index
remove {_v.%loop-number%} from {_list::*}
loop {_s} times:
if loop-number is smaller than or equal to 5:
send "%loop-number%. %{_n.%loop-number%}% -> %{_v.%loop-number%}%"
I know this is not a GUI, but i could change this.
Anyone know how to solve this issue? The code above would probably just give me 1. [MyUuid] instead of 1. senge1337.
Thanks,
senge1337.