Advertisement
_Eventful

Untitled

Oct 13th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 KB | None | 0 0
  1. on join:
  2. if {xp.%player's uuid%} is not set:
  3. set {xp.%player's uuid%} to 0
  4. if {kills::%player's uuid%} is not set:
  5. set {kills::%player's uuid%} to 0
  6. if {deaths::%player's uuid%} is not set:
  7. set {deaths::%player's uuid%} to 0
  8. if {xpc.%player's uuid%} is not set:
  9. set {xpc.%player's uuid%} to 200
  10. on death:
  11. victim is player
  12. set {kit.%victim's uuid%} to false
  13. set {_victim} to victim
  14. set {_uuid} to {_victim}'s uuid
  15. set {_attacker} to {lastdamager::%victim%}
  16. set {_auuid} to {_attacker}'s uuid
  17. send {_victim} title colored "&c&lDEATH" with subtitle colored "&7To &c%{lastdamager::%victim%}%" for 20 ticks with 0 tick fade in and 3 tick fade out
  18. add 1 to {TDeaths::%{_uuid}%}
  19. add 1 to {Tkills::%{_auuid}%}
  20. set {_rnd} to a random integer between 10 and 20
  21. add {_rnd} to {xp.%{_auuid}%}
  22. add 1 to {streak.%{lastdamager::%victim%}%}
  23. if {ksr.%{lastdamager::%victim%}%} is not set:
  24. set {ksr.%{lastdamager::%victim%}%} to 5
  25. send "&cYou got %{_rnd}% xp" to attacker
  26. set {streak.%victim%} to 0
  27. delete {ksr.%victim%}
  28. if {lastdamager::%victim%} is set:
  29. if projectile is set:
  30. set death message to "&c%{lastdamager::%victim%}% &7shot &c%victim%&7!"
  31. else:
  32. if attacker is not set:
  33. set death message to "&cunknown &7killed &c%victim%&7!"
  34. else:
  35. set death message to "&c%{lastdamager::%victim%}% &7killed &c%victim%&7!"
  36. give attacker 1 golden apple
  37. if {streak.%{lastdamager::%victim%}%} = {ksr.%{lastdamager::%victim%}%}:
  38. loop all players:
  39. play sound "entity.ender_dragon.growl" at loop-player for loop-player
  40. broadcast ""
  41. broadcast "&c%{lastdamager::%victim%}% &7is on a streak of &c%{ksr.%{lastdamager::%victim%}%}%"
  42. broadcast ""
  43. set {ksr.%{lastdamager::%victim%}%} to {streak.%{lastdamager::%victim%}%} + 5
  44. if attacker is not set:
  45. send "&c%victim% &7fell into the void!" to all players
  46. send {_victim} title colored "&c&lDEATH" with subtitle colored "&7To &cThe Void" for 20 ticks with 0 tick fade in and 3 tick fade out
  47. add 1 to {Deaths::%victim's uuid%}
  48. stop
  49. wait 5 ticks
  50. respawn victim
  51. teleport victim to {spawn}
  52. on respawn:
  53. wait 5 ticks
  54. clear player's inventory
  55. on damage:
  56. victim is player
  57. attacker is player
  58. set {lastdamager::%victim%} to attacker
  59. set {lastdamageat::%victim%} to 5
  60. on quit:
  61. if {combat.%player%} is true:
  62. kill player
  63. every second:
  64. loop all players:
  65. if {lastdamageat::%loop-player%} is 0:
  66. delete {lastdamager::%loop-player%}
  67. if {lastdamageat::%loop-player%} is set:
  68. remove 1 from {lastdamageat::%loop-player%}
  69. every 30 seconds:
  70. loop all players:
  71. set {_online} to number of all players
  72. wipe loop-player's sidebar
  73. set {diff.%loop-player's uuid%} to {xpc.%loop-player's uuid%} - {xp.%loop-player's uuid%}
  74. set name of sidebar of loop-player to "&6&lBiomeKits &7&o(%{_online}% / 15)"
  75. set score "&7" in sidebar of loop-player to 9
  76. set score "&c&lStats" in sidebar of loop-player to 8
  77. set score "&7&lLevel: &c%{level::%loop-player's uuid%}%" in sidebar of loop-player to 7
  78. set score "&7&lXp: &c%{xp.%loop-player's uuid%}%" in sidebar of loop-player to 6
  79. set score "&7&lXp Needed: &c%{diff.%loop-player's uuid%}%" in sidebar of loop-player to 5
  80. set score "&7&lKills: &c%{Tkills::%loop-player's uuid%}%" in sidebar of loop-player to 4
  81. set score "&7&lDeaths: &c%{TDeaths::%loop-player's uuid%}%" in sidebar of loop-player to 3
  82. set score "&7&1" in sidebar of loop-player to 2
  83. set score "&6&lBiomeKits.Minehut.gg" in sidebar of loop-player to 1
  84. if {xp.%loop-player's uuid%} >= {xpc.%loop-player's uuid%}:
  85. add 1 to {level::%loop-player's uuid%}
  86. send "&eYou leveled up!" to loop-player
  87. add 200 to {xpc.%loop-player's uuid%}
  88. on join:
  89. if {xp.%player's uuid%} is not set:
  90. set {xp.%player's uuid%} to 0
  91. if {kills::%player's uuid%} is not set:
  92. set {kills::%player's uuid%} to 0
  93. if {deaths::%player's uuid%} is not set:
  94. set {deaths::%player's uuid%} to 0
  95. if {xpc.%player's uuid%} is not set:
  96. set {xpc.%player's uuid%} to 200
  97. if {level::%player's uuid%} is not set:
  98. set {level::%player's uuid%} to 1
  99.  
  100. on first join:
  101. set {kit.%player's uuid%} to false
  102. add 1 to {joins}
  103. broadcast "&c%player% &7is new to &6BiomeKits&7! &c(##%{joins}%)"
  104. on join:
  105. set join message to "&c%player% &7has joined"
  106. on quit:
  107. set quit message to "&c%player% &7has left"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement