Advertisement
pz_neko

Untitled

Aug 25th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. on Rightclick on a sign:
  2. set {_Ranking} to location of clicked block
  3. add 3 to y coordinate of {_Ranking}
  4. set {_Lv.count} to 0
  5. loop {lv::*}:
  6. set {_Ranking::%loop-index%} to loop-value
  7. loop 5 times:
  8. loop {_Ranking::*}:
  9. loop-value-2 > {_Lv.count}
  10. set {_Lv.count} to loop-value-2
  11. set {_Lv.name} to loop-index
  12. spawn an armor stand at {_Ranking}
  13. add "{CustomNameVisible:1b,NoGravity:1b,Small:1}" to nbt of last spawned armor stand
  14. set name of last spawned armor stand to "&8[&a%loop-number%&8] &7%{_Lv.name}%&8(&7%{_Lv.count}%Lv&8)"
  15. remove 0.5 from y coordinate of {_Ranking}
  16. set {_Lv.count} to 0
  17. delete {_Ranking::%{_highplayer}%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement