Guest User

Untitled

a guest
Apr 19th, 2019
441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. on death:
  2. if attacker is a player:
  3. add 1 to {Kills::%attacker%}
  4. add 1 to {deaths::%victim%}
  5.  
  6. Command /topkills:
  7. aliases: /kills
  8. trigger:
  9. loop {Kills::*}:
  10. add 1 to {_size2}
  11. if {_low.to.high.list::%loop-value%} is not set:
  12. set {_low.to.high.list::%loop-value%} to loop-index
  13. else:
  14. set {_n} to 0
  15. loop {_size2} times:
  16. set {_n} to {_n}+1
  17. {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
  18. set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
  19. stop loop
  20. wait 1 tick
  21. set {_n} to size of {_low.to.high.list::*}
  22. loop {_low.to.high.list::*}:
  23. set {_high.to.low.list::%{_n}%} to loop-value
  24. set {_n} to {_n}-1
  25. send "&4&m----&c&m----&4&m----&8( &c&lTOPKILLS &8)&4&m----&c&m----&4&m----"
  26. send " "
  27. loop {_high.to.low.list::*}:
  28. add 1 to {_result}
  29. send " &8&l[&4&l%{_result}%&c&l&8&l] &f&l%loop-value% &c&l- &8&l(&4&l%{Kills::%loop-value%}% &4&lKills&8&l)" to player
  30. if {_result} is 10:
  31. stop
  32.  
  33. on right click on sign:
  34. if line 2 is "&4&l&nSe listen":
  35. if line 4 is "(Højre-klik)":
  36. execute player command "/Top"
  37.  
  38. command /top:
  39. trigger:
  40. wait 3 ticks
  41. open chest with 3 rows named "&c&lTopKills" to player
  42. wait 3 ticks
  43. format slot 0 of player with black stained glass pane named "" with lore "" to be unstealable
  44. format slot 1 of player with black stained glass pane named "" with lore "" to be unstealable
  45. format slot 2 of player with black stained glass pane named "" with lore "" to be unstealable
  46. format slot 3 of player with black stained glass pane named "" with lore "" to be unstealable
  47. format slot 4 of player with black stained glass pane named "" with lore "" to be unstealable
  48. format slot 5 of player with black stained glass pane named "" with lore "" to be unstealable
  49. format slot 6 of player with black stained glass pane named "" with lore "" to be unstealable
  50. format slot 7 of player with black stained glass pane named "" with lore "" to be unstealable
  51. format slot 8 of player with black stained glass pane named "" with lore "" to be unstealable
  52. format slot 9 of player with black stained glass pane named "" with lore "" to be unstealable
  53. format slot 17 of player with black stained glass pane named "" with lore "" to be unstealable
  54. format slot 18 of player with black stained glass pane named "" with lore "" to be unstealable
  55. format slot 19 of player with black stained glass pane named "" with lore "" to be unstealable
  56. format slot 20 of player with black stained glass pane named "" with lore "" to be unstealable
  57. format slot 21 of player with black stained glass pane named "" with lore "" to be unstealable
  58. format slot 22 of player with black stained glass pane named "" with lore "" to be unstealable
  59. format slot 23 of player with black stained glass pane named "" with lore "" to be unstealable
  60. format slot 24 of player with black stained glass pane named "" with lore "" to be unstealable
  61. format slot 25 of player with black stained glass pane named "" with lore "" to be unstealable
  62. format slot 26 of player with black stained glass pane named "" with lore "" to be unstealable
  63. format slot 13 of player with shiny diamond sword named "&4&lTOPKILLS" with lore "&7||&7Klik her for at se." to close then run [make player execute command "topkills"]
Advertisement
Add Comment
Please, Sign In to add comment