SHARE
TWEET

Untitled

pz_neko Aug 25th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on Rightclick on a sign:
  2.     line 2 of clicked block is "&b&l[&f&lRanking&b&l]"
  3.     line 3 of clicked block is "&a&lRight Click"
  4.     set {_Ranking} to location -1 meter horizontal forwards location of clicked block
  5.     add 2 to y coordinate of {_Ranking}
  6.     set {_Lv.count} to 0
  7.     loop armor stands in radius 5 of clicked block:
  8.         delete loop-entity
  9.     spawn an armor stand at {_Ranking}
  10.     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
  11.     remove 0.25 from y coordinate of {_Ranking}
  12.     loop {lv::*}:
  13.         set {_Ranking::%loop-index%} to loop-value
  14.     loop 10 times:
  15.         loop {_Ranking::*}:
  16.             loop-value-2 > {_Lv.count}
  17.             set {_Lv.count} to loop-value-2
  18.             set {_Lv.name} to loop-index
  19.         spawn an armor stand at {_Ranking}
  20.         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
  21.         remove 0.25 from y coordinate of {_Ranking}
  22.         set {_Lv.count} to 0
  23.         delete {_Ranking::%{_highplayer}%}
  24.  
  25. on sign change:
  26.     replace "&" with "§" in line 1
  27.     replace "&" with "§" in line 2
  28.     replace "&" with "§" in line 3
  29.     replace "&" with "§" in line 4
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top