Advertisement
pz_neko

Untitled

Aug 25th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. on Rightclick on a diamond block:
  2. set {_Ranking} to location -1 meter horizontal forwards location of clicked block
  3. add 2 to y coordinate of {_Ranking}
  4. set {_Lv.count} to 0
  5. loop armor stands in radius 5 of clicked block:
  6. delete loop-entity
  7. spawn an armor stand at {_Ranking}
  8. 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
  9. remove 0.25 from y coordinate of {_Ranking}
  10. loop {lv::*}:
  11. set {_Ranking::%loop-index%} to loop-value
  12. loop 10 times:
  13. loop {_Ranking::*}:
  14. loop-value-2 > {_Lv.count}
  15. set {_Lv.count} to loop-value-2
  16. set {_Lv.name} to loop-index
  17. spawn an armor stand at {_Ranking}
  18. 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
  19. remove 0.25 from y coordinate of {_Ranking}
  20. set {_Lv.count} to 0
  21. delete {_Ranking::%{_highplayer}%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement