Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.78 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 3 mushroom stew
  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 "&d&lSakuraKits &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 "&d&lSakuraKits.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. command /kit [<text>]:
  100. trigger:
  101. if arg-1 is not set:
  102. wait 5 ticks
  103. open chest with 6 rows named "&c&lKits" to player
  104. format slot 12 of player with stone sword named "&7&lKit Fighter" with lore "&7Stone Sword" and "&734 Mushroom Stew" and "&7Chain Helmet" and "&7Iron Chestplate" and "&7Chain Leggings" and "&7Chain Boots" and "&7Fishing Rod" to close then run [Execute player command "/kit fighter"]
  105. format slot 14 of player with bow named "&7&lKit Archer" with lore "&7Wooden Sword" and "&733 Mushroom Stew" and "&7Chain Helmet" and "&7Chain Chestplate" and "&7Chain Leggings" and "&7Chain Boots" and "&7Bow" and "&71 Arrow" to close then run [Execute player command "/kit archer"]
  106. if player has permission "VIP":
  107. format slot 36 of player with wooden sword named "&a&lKit VIP" with lore "&7Stone Sword" and "&7Bow" and "&71 arrow" and "&716 Golden Apples" and "&7Chain Helmet" and "&7Iron Chestplate" and "&7Chain Leggings" and "&7Chain Boots" to close then run [Execute player command "/kit VIP"]
  108. if player has permission "VIP+":
  109. format slot 38 of player with golden sword named "&a&lKit VIP+" with lore "&7Stone Sword" and "&78 Golden Apples" and "&7Chain Helmet" and "&7Chain Chestplate" and "&7Chain Leggings" and "&7Chain Boots" and "&7Bow" and "&7A arrow" to close then run [Execute player command "/kit vip+"]
  110. if player has permission "MVP":
  111. format slot 40 of player with stone sword named "&b&lKit MVP" with lore "&7Stone Sword" and "&78 Golden Apples" and "&7Chain Helmet" and "&7Chain Chestplate" and "&7Chain Leggings" and "&7Chain Boots" and "&7Bow" and "&7A arrow" to close then run [Execute player command "/kit mvp"]
  112. if player has permission "MVP+":
  113. format slot 42 of player with iron sword named "&b&lKit MVP+" with lore "&7Stone Sword" and "&78 Golden Apples" and "&7Chain Helmet" and "&7Chain Chestplate" and "&7Chain Leggings" and "&7Chain Boots" and "&7Bow" and "&7A arrow" to close then run [Execute player command "/kit mvp+"]
  114. if player has permission "MVP++":
  115. format slot 44 of player with diamond sword named "&6&lKit MVP++" with lore "&7Stone Sword" and "&78 Golden Apples" and "&7Chain Helmet" and "&7Chain Chestplate" and "&7Chain Leggings" and "&7Chain Boots" and "&7Bow" and "&7A arrow" to close then run [Execute player command "/kit mvp++"]
  116. else:
  117. if arg-1 is "fighter":
  118. if {kit.%Player's uuid%} is false:
  119. set player's helmet to chain helmet
  120. set player's chestplate to iron chestplate
  121. set player's leggings to chain leggings
  122. set player's boots to chain boots
  123. give player a stone sword
  124. give player fishing rod of unbreaking 3
  125. give player 34 mushroom stew
  126. send "&7Kit Fighter Recived!"
  127. set {kit.%player's uuid%} to true
  128. else:
  129. send "&cYou already have a kit!"
  130. else:
  131. if arg-1 is "archer":
  132. if {kit.%Player's uuid%} is false:
  133. set player's helmet to chain helmet
  134. set player's chestplate to chain chestplate
  135. set player's leggings to chain leggings
  136. set player's boots to chain boots
  137. give player a wooden sword
  138. give player a bow of power 1 and punch 1 and infinity 1
  139. give player 1 arrow
  140. give player 33 mushroom stew
  141. send "&7Kit Archer Recived!"
  142. set {kit.%player's uuid%} to true
  143. else:
  144. send "&cYou already have a kit!"
  145. else:
  146. if {kit.%player's uuid%} is false:
  147. if arg-1 is "VIP":
  148. if {kit.%Player's uuid%} is false:
  149. if player has permission "VIP":
  150. set player's helmet to chain helmet
  151. set player's chestplate to iron chestplate of protection 1
  152. set player's leggings to chain leggings
  153. set player's boots to chain boots
  154. give player a stone sword
  155. give player bow of power 1 and punch 1 and infinity 1
  156. give player 1 arrow
  157. give player 16 golden apple
  158. give player 32 mushroom stew
  159. send "&7Kit VIP Recived!"
  160. set {kit.%player's uuid%} to true
  161. else:
  162. send "&cYou must be a vip!"
  163.  
  164. on first join:
  165. set {kit.%player's uuid%} to false
  166. add 1 to {joins}
  167. broadcast "&c%player% &7is new to &cSakuraKits&7! &c(##%{joins}%)"
  168. on join:
  169. set join message to "&c%player% &7has joined"
  170. on quit:
  171. set quit message to "&c%player% &7has left"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement