Advertisement
pz_neko

Untitled

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