Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on Rightclick on a sign:
- set {_Ranking} to location -1 meter horizontal forwards location of clicked block
- add 2 to y coordinate of {_Ranking}
- set {_Lv.count} to 0
- spawn an armor stand at {_Ranking}
- add "{CustomName:""&b&l&m=*=*=&f &f&lRanking &b&l&m=*=*="",CustomNameVisible:1,NoGravity:1b,Small:1,Invisible:1}" to nbt of last spawned armor stand
- remove 0.25 from y coordinate of {_Ranking}
- loop {lv::*}:
- set {_Ranking::%loop-index%} to loop-value
- loop 10 times:
- loop {_Ranking::*}:
- loop-value-2 > {_Lv.count}
- set {_Lv.count} to loop-value-2
- set {_Lv.name} to loop-index
- spawn an armor stand at {_Ranking}
- add "{CustomName:""&8[&a%loop-number%&8] &7%{_Lv.name}%&8(&7%{_Lv.count}%Lv&8)"",CustomNameVisible:1,NoGravity:1b,Small:1,Invisible:1}" to nbt of last spawned armor stand
- remove 0.25 from y coordinate of {_Ranking}
- set {_Lv.count} to 0
- delete {_Ranking::%{_highplayer}%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement