Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on Rightclick on a sign:
- set {_Ranking} to location of clicked block
- add 3 to y coordinate of {_Ranking}
- set {_Lv.count} to 0
- loop {lv::*}:
- set {_Ranking::%loop-index%} to loop-value
- loop 5 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}" to nbt of last spawned armor stand remove 0.5 from y coordinate of {_Ranking}
- set {_Lv.count} to 0
- delete {_Ranking::%{_highplayer}%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement