Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.09 KB | None | 0 0
  1. options:
  2. kitpvp: &a&lKitPvP &7-
  3.  
  4. on script load:
  5. set {loc::*} to 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10
  6.  
  7. on projectile hit:
  8. wait 3 seconds
  9. delete the arrow
  10.  
  11. on damage of a player:
  12. if damage is caused by fall:
  13. cancel event
  14.  
  15. on place:
  16. if event-block is fire:
  17. wait 5 seconds
  18. set event-block to air
  19. if player's gamemode is creative:
  20. stop
  21. else:
  22. cancel event
  23.  
  24. every 1 minute:
  25. loop all players:
  26. add 1 to {playtime.%uuid of loop-player%}
  27.  
  28. on first join:
  29. set {kills.%uuid of player%} to 0
  30. set {deaths.%uuid of player%} to 0
  31. set {killstreak.%uuid of player%} to 0
  32. set {playtime.%uuid of player%} to 0
  33.  
  34. on click:
  35. if name of tool of player is "&7[&aArena&7]":
  36. open virtual hopper named "&7[&aKit Selector&7]" to player
  37. format slot 2 of player with iron sword named "&aWarrior" with lore "&7[&aUnlocked&7]" to close then run [execute player command "/warrior12398"]
  38. if {kills.%uuid of player%} is more than or equal to 25:
  39. format slot 0 of player with bow named "&aArcher" with lore "&7[&aUnlocked&7]" to close then run [execute player command "/archer12398"]
  40. else:
  41. format slot 0 of player with bow named "&aArcher" with lore "&7[&cLocked&7] - &c%{kills.%uuid of player%}%&7/&c25" to close then run [execute player command "/locked12398"]
  42. if {kills.%uuid of player%} is more than or equal to 100:
  43. format slot 1 of player with blaze powder named "&aPyro" with lore "&7[&aUnlocked&7]" to close then run [execute player command "/pyro12398"]
  44. else:
  45. format slot 1 of player with blaze powder named "&aPyro" with lore "&7[&cLocked&7] - &c%{kills.%uuid of player%}%&7/&c100" to close then run [execute player command "/locked12398"]
  46. if {kills.%uuid of player%} is more than or equal to 250:
  47. format slot 3 of player with feather named "&aFlash" with lore "&7[&aUnlocked&7]" to close then run [execute player command "/flash12398"]
  48. else:
  49. format slot 3 of player with feather named "&aFlash" with lore "&7[&cLocked&7] - &c%{kills.%uuid of player%}%&7/&c200" to close then run [execute player command "/locked12398"]
  50. if {kills.%uuid of player%} is more than or equal to 50:
  51. format slot 4 of player with iron chestplate named "&aTank" with lore "&7[&aUnlocked&7]" to close then run [execute player command "/tank12398"]
  52. else:
  53. format slot 4 of player with iron chestplate named "&aTank" with lore "&7[&cLocked&7] - &c%{kills.%uuid of player%}%&7/&c50" to close then run [execute player command "/locked12398"]
  54.  
  55. on death of player:
  56. clear drops
  57. clear victim's inventory
  58. force the victim to respawn
  59. set current hotbar slot of player to 4
  60. set action bar of attacker to "{@kitpvp} &fYou killed %{color.%victim%}%%victim%&f."
  61. set action bar of victim to "{@kitpvp} &fYou were killed by %{color.%attacker%}%%attacker%&f."
  62. play "ORB_PICKUP" to attacker at volume 10
  63. play "ZOMBIE_DEATH" to victim at volume 10
  64. apply regeneration 4 to the attacker for 3 seconds
  65. add 1 to {kills.%uuid of attacker%}
  66. add 1 to {deaths.%uuid of victim%}
  67. add 1 to {killstreak.%uuid of attacker%}
  68. set {killstreak.%uuid of victim%} to 0
  69. make attacker execute command "/sb"
  70. set the death message to ""
  71. if {killstreak.%attacker%} is equal to 5:
  72. loop all players:
  73. set action bar of loop-player to "{@kitpvp} %{color.%attacker%}%%attacker% &fis on a &75 &fkillstreak!"
  74.  
  75. on respawn:
  76. teleport player to {spawn}
  77. wait 1 tick
  78. set slot 3 of player to unbreakable stone sword named "&7[&aArena&7]"
  79. set slot 5 of player to paper named "&7[&aDuels&7]"
  80. make player execute command "/sb"
  81.  
  82. command /locked12398:
  83. permission: rank.dev
  84. trigger:
  85. set action bar of player to "&cGet more kills and try again."
  86.  
  87. command /archer12398:
  88. permission: rank.dev
  89. trigger:
  90. clear player's inventory
  91. set slot 0 of player to unbreakable wood sword named "&7[&aSword&7]"
  92. set slot 1 of player to unbreakable bow named "&7[&aBow&7]"
  93. set slot 8 of player to 64 arrows named "&7[&aArrows&7]"
  94. equip player with unbreakable chain boots named "&7[&aBoots&7]"
  95. equip player with unbreakable chain leggings named "&7[&aLeggings&7]"
  96. equip player with unbreakable chain chestplate named "&7[&aChestplate&7]"
  97. equip player with unbreakable chain helmet named "&7[&aHelmet&7]"
  98. execute player command "/rtp12398"
  99.  
  100. command /pyro12398:
  101. trigger:
  102. clear player's inventory
  103. set slot 0 of player to unbreakable iron sword named "&7[&aSword&7]"
  104. enchant the player's tool with fire aspect 1
  105. set slot 8 of player to a flint and steel named "&7[&aFnS&7]"
  106. equip player with unbreakable gold boots named "&7[&aBoots&7]"
  107. equip player with unbreakable gold leggings named "&7[&aLeggings&7]"
  108. equip player with unbreakable gold chestplate named "&7[&aChestplate&7]"
  109. equip player with unbreakable gold helmet named "&7[&aHelmet&7]"
  110. execute player command "/rtp12398"
  111.  
  112. command /warrior12398:
  113. trigger:
  114. clear player's inventory
  115. set slot 0 of player to unbreakable iron sword named "&7[&aSword&7]"
  116. equip player with unbreakable iron boots named "&7[&aBoots&7]"
  117. equip player with unbreakable iron leggings named "&7[&aLeggings&7]"
  118. equip player with unbreakable iron chestplate named "&7[&aChestplate&7]"
  119. equip player with unbreakable iron helmet named "&7[&aHelmet&7]"
  120. execute player command "/rtp12398"
  121.  
  122. command /flash12398:
  123. trigger:
  124. clear player's inventory
  125. apply swiftness 3 to the player
  126. set slot 0 of player to unbreakable diamond sword named "&7[&aSword&7]"
  127. equip player with unbreakable leather boots named "&7[&aBoots&7]"
  128. equip player with unbreakable leather leggings named "&7[&aLeggings&7]"
  129. equip player with unbreakable leather chestplate named "&7[&aChestplate&7]"
  130. equip player with unbreakable leather helmet named "&7[&aHelmet&7]"
  131. execute player command "/rtp12398"
  132.  
  133. command /tank12398:
  134. trigger:
  135. clear player's inventory
  136. set slot 0 of player to unbreakable wooden sword named "&7[&aSword&7]"
  137. equip player with unbreakable diamond boots named "&7[&aBoots&7]"
  138. equip player with unbreakable diamond leggings named "&7[&aLeggings&7]"
  139. equip player with unbreakable diamond chestplate named "&7[&aChestplate&7]"
  140. equip player with unbreakable diamond helmet named "&7[&aHelmet&7]"
  141. execute player command "/rtp12398"
  142.  
  143. command /rtp12398:
  144. trigger:
  145. set {_rtp} to random object out of {loc::*}
  146. teleport player to {%{_rtp}%}
  147. set current hotbar slot of player to 0
  148. set action bar of player to "{@kitpvp} &fGOOD LUCK!"
  149. play "ENDERMAN_TELEPORT" to player at volume 10
  150.  
  151. command /stats [<offline player>]:
  152. trigger:
  153. if arg 1 is set:
  154. if arg 1 has played before:
  155. wait 1 tick
  156. open virtual hopper named "&7[%{color.%arg 1%}%%arg 1%'s Stats&7]" to player
  157. format slot 0 of player with wood sword named "&aKills" with lore "&7- &f%{kills.%uuid of arg 1%}%" to be unstealable
  158. format slot 1 of player with redstone named "&aDeaths" with lore "&7- &f%{deaths.%uuid of arg 1%}%" to be unstealable
  159. format slot 2 of player with enchantment table named "&aK/D" with lore "&7- &f%{ratio.%uuid of arg 1%}%" to be unstealable
  160. format slot 3 of player with bottle of enchanting named "&aKillstreak" with lore "&7- &f%{killstreak.%uuid of arg 1%}%" to be unstealable
  161. format slot 4 of player with paper named "&aPlaytime" with lore "&7- &f%{playtime.%uuid of arg 1%}% minutes" to be unstealable
  162. else:
  163. set action bar of player to "{@kitpvp} &cPlease enter a valid player."
  164. else:
  165. wait 1 tick
  166. open virtual hopper named "&7[%{color.%player%}%%player%'s Stats&7]" to player
  167. format slot 0 of player with wood sword named "&aKills" with lore "&7- &f%{kills.%uuid of player%}%" to be unstealable
  168. format slot 1 of player with redstone named "&aDeaths" with lore "&7- &f%{deaths.%uuid of player%}%" to be unstealable
  169. format slot 2 of player with enchantment table named "&aK/D" with lore "&7- &f%{ratio.%uuid of player%}%" to be unstealable
  170. format slot 3 of player with bottle of enchanting named "&aKillstreak" with lore "&7- &f%{killstreak.%uuid of player%}%" to be unstealable
  171. format slot 4 of player with paper named "&aPlaytime" with lore "&7- &f%{playtime.%uuid of player%}% minutes" to be unstealable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement