LordziaK

Untitled

May 7th, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.43 KB | None | 0 0
  1. options:
  2. hard: hardcore
  3. knock: knockback
  4. kohi: kohi
  5. standard: standard
  6. combo: combo
  7. spawn: world
  8.  
  9. online.hardcore: on
  10. online.knockback: on
  11. online.standard: off
  12. online.kohi: on
  13. online.xvsx: off
  14. on load:
  15. set {online::hard} to "{@online.hardcore}"
  16. set {online::knock} to "{@online.knockback}"
  17. set {online::kohi} to "{@online.kohi}"
  18. set {online::standard} to "{@online.standard}"
  19. set {online::xvsx} to "{@online.xvsx}"
  20. command /arenapivipi [<player>] [<text>]:
  21. executable by: console
  22. trigger:
  23. arg 1 is set:
  24. arg 2 is "hard":
  25. if {online::hard} is "on":
  26. set {last::%arg-1%} to "hard"
  27. teleport arg-1 to {hardcore}
  28. clear arg-1's inventory
  29. add diamond sword of sharpness 5 and unbreaking 3 and fire aspect 2 to the arg-1
  30. add diamond helmet of protection 4 and unbreaking 3 to the arg-1's helmet
  31. add diamond chestplate of protection 4 and unbreaking 3 to the arg-1's chestplate
  32. add diamond leggings of protection 4 and unbreaking 3 to the arg-1's leggings
  33. add diamond boots of protection 4 and unbreaking 3 to the arg-1's boots
  34. add 2 golden apple:1 to arg-1
  35. add 8 golden apple to arg-1
  36. if arg-1 is op:
  37. send "&7Jako osoba &eVIP&7, dostajesz dodatkowe itemy." to arg-1
  38. add bow of punch 2 and infinity 1 named "" to arg-1
  39. add 1 golden apple:1 to arg-1
  40. add 4 golden apple to arg-1
  41. add diamond helmet of protection 4 and unbreaking 3 to arg-1
  42. add diamond chestplate of protection 4 and unbreaking 3 to arg-1
  43. add diamond leggings of protection 4 and unbreaking 3 to arg-1
  44. add diamond boots of protection 4 and unbreaking 3 to arg-1
  45. add arrow to arg-1
  46. stop
  47. else:
  48. send "&cBlad: &7Tryb wylaczony." to arg-1
  49. stop
  50. arg 2 is "knock":
  51. if {online::knock} is "on":
  52. set {last::%arg-1%} to "knock"
  53. teleport arg-1 to {knockback}
  54. clear arg-1's inventory
  55. add diamond sword of sharpness 5 and unbreaking 3 to the arg-1
  56. add diamond sword of knockback 2 to the arg-1
  57. add diamond helmet of protection 4 and unbreaking 3 to the arg-1's helmet
  58. add diamond chestplate of protection 4 and unbreaking 3 to the arg-1's chestplate
  59. add diamond leggings of protection 4 and unbreaking 3 to the arg-1's leggings
  60. add diamond boots of protection 4 and unbreaking 3 to the arg-1's boots
  61. add 2 golden apple:1 to arg-1
  62. add 10 golden apple to arg-1
  63. add bow of punch 2 and infinity 1 named "" to arg-1
  64. add 1 water bucket to arg-1
  65. add 2 ender pearl to arg-1
  66. add 256 cobblestone to arg-1
  67. add arrow to arg-1
  68. if arg-1 is op:
  69. send "&7Jako osoba &eVIP&7, dostajesz dodatkowe itemy." to arg-1
  70. add 1 golden apple:1 to arg-1
  71. add 5 golden apple to arg-1
  72. add 2 ender pearl to arg-1
  73. stop
  74. else:
  75. send "&cBlad: &7Tryb wylaczony." to arg-1
  76. stop
  77. arg 2 is "standard":
  78. if {online::standard} is "on":
  79. set {last::%arg-1%} to "standard"
  80. teleport arg-1 to {standard}
  81. clear arg-1's inventory
  82. add diamond helmet of protection 4 and unbreaking 3 to the arg-1's helmet
  83. add diamond chestplate of protection 4 and unbreaking 3 to the arg-1's chestplate
  84. add diamond leggings of protection 4 and unbreaking 3 to the arg-1's leggings
  85. add diamond boots of protection 4 and unbreaking 3 to the arg-1's boots
  86. add diamond sword of sharpness 5 and unbreaking 3 to arg-1
  87. stop
  88. else:
  89. send "&cBlad: &7Tryb wylaczony." to arg-1
  90. stop
  91. arg 2 is "kohi":
  92. if {online::kohi} is "on":
  93. set {last::%arg-1%} to "kohi"
  94. teleport arg-1 to {poty}
  95. clear arg-1's inventory
  96. add diamond helmet of protection 2 and unbreaking 2 to the arg-1's helmet
  97. add diamond chestplate of protection 2 and unbreaking 2 to the arg-1's chestplate
  98. add diamond leggings of protection 2 and unbreaking 2 to the arg-1's leggings
  99. add diamond boots of protection 2 and unbreaking 2 to the arg-1's boots
  100. add diamond sword of sharpness 5 and unbreaking 3 and fire aspect 2 to arg-1
  101. add 16 ender pearl to arg-1
  102. add 5 Splash Potion of Healing 2 to arg-1
  103. add potion of:8259 to arg-1
  104. add potion of:8226 to arg-1
  105. add 8 Splash Potion of Healing 2 to arg-1
  106. add potion of:8226 to arg-1
  107. add 8 Splash Potion of Healing 2 to arg-1
  108. add potion of:8226 to arg-1
  109. add 8 Splash Potion of Healing 2 to arg-1
  110. add potion of:8226 to arg-1
  111. stop
  112. else:
  113. send "&cBlad: &7Tryb wylaczony." to arg-1
  114. stop
  115. arg 2 is "xvsx":
  116. if {online::xvsx} is "on":
  117. stop
  118. else:
  119. send "&cBlad: &7Tryb wylaczony." to arg-1
  120. stop
  121. on join:
  122. set {last::%player%} to "world"
  123. on rightclick with compass:
  124. open chest with 5 rows named "" to player
  125. if {online::hard} is "on":
  126. set {_} to "&awlaczona"
  127. else:
  128. set {_} to "&cwylaczona"
  129. if {online::knock} is "on":
  130. set {_2} to "&awlaczona"
  131. else:
  132. set {_2} to "&cwylaczona"
  133. if {online::kohi} is "on":
  134. set {_3} to "&awlaczona"
  135. else:
  136. set {_3} to "&cwylaczona"
  137. if {online::standard} is "on":
  138. set {_4} to "&awlaczona"
  139. else:
  140. set {_4} to "&cwylaczona"
  141. if {online::xvsx} is "on":
  142. set {_5} to "&awlaczona"
  143. else:
  144. set {_5} to "&cwylaczona"
  145. wait 1 ticks
  146. format slot 20 of player with golden apple:1 named "&6&lHARDCORE" with lore "||&9» &7INFORMACJE:|| &9• &7Nazwa: &ehardcore|| &9• &7Aktualnie: %{_}%" to close then run [execute console command "arenapivipi %player% hard"]
  147. format slot 21 of player with golden apple:0 named "&6&lSTANDARD" with lore "||&9» &7INFORMACJE:|| &9• &7Nazwa: &estandard|| &9• &7Aktualnie: %{_4}%||" to close then run [execute console command "arenapivipi %player% standard"]
  148. format slot 22 of player with diamond sword named "&6&lKNOCKBACK" with lore "||&9» &7INFORMACJE:|| &9• &7Nazwa: &eknockback|| &9• &7Aktualnie: %{_2}%||" to close then run [execute console command "arenapivipi %player% knock"]
  149. format slot 23 of player with Water Bottle named "&6&lKOHI" with lore "||&9» &7INFORMACJE:|| &9• &7Nazwa: &ekohi|| &9• &7Aktualnie: %{_3}%" to close then run [execute console command "arenapivipi %player% kohi"]
  150. format slot 24 of player with Player Head named "&6&lXvsX" with lore "||&9» &7INFORMACJE:|| &9• &7Nazwa: &exvsx|| &9• &7Aktualnie: %{_5}%" to close then run [execute console command "arenapivipi %player% xvsx"]
  151. command /setspawn [<text>]:
  152. trigger:
  153. if player is op:
  154. set {spawn} to location of player
  155. send "&7Ustawiles: &espawn&7."
  156. else:
  157. send "&cBlad: &7Nie masz uprawnien."
  158. command /spawn [<offlineplayer>] [<text>]:
  159. trigger:
  160. if arg-1 is not set:
  161. if {spawn} is set:
  162. if player is op:
  163. teleport player to {spawn}
  164. clear player's inventory
  165. send "&9• &7Teleportacja na &espawn&7."
  166. send "&9• &7Szybsza teleportacja dzieki &euprawnieniu&7."
  167. give compass named "&a&l✖ &2WYBIERZ TRYB &a&l✖" to player
  168. set {last::%player%} to "world"
  169. stop
  170. set {_posx} to x-location of player
  171. set {_posz} to z-location of player
  172. set {_posy} to y-location of player
  173. send "&9• &7Teleportacja na &espawn&7. &4&nNie ruszaj sie."
  174. loop 10 times:
  175. wait 1 second
  176. difference between x-location of player and {_posx} is bigger than 0.5:
  177. send "&9• &cTeleportacja nie powiodla sie."
  178. stop
  179. difference between z-location of player and {_posz} is bigger than 0.5:
  180. send "&9• &cTeleportacja nie powiodla sie."
  181. stop
  182. difference between y-location of player and {_posy} is bigger than 0.5:
  183. send "&9• &cTeleportacja nie powiodla sie."
  184. stop
  185. set {last::%player%} to "world"
  186. teleport player to {spawn}
  187. clear player's inventory
  188. give compass named "&a&l✖ &2WYBIERZ TRYB &a&l✖" to player
  189. send "&9• &7Teleportacja na &espawn&7."
  190. stop
  191. else:
  192. send "&cBlad: &7Nie odnaleziono spawnu."
  193. if arg-1 is set:
  194. if player is op:
  195. if arg-1 is online:
  196. if {spawn} is set:
  197. teleport arg-1 to {spawn}
  198. send "&9• &7Teleportacja gracza &e%arg-1% &7na &espawn&7."
  199. send "&9• &7Zostales przeteleportowany na &espawn&7." to arg-1
  200. else:
  201. send "&cBlad: &7Nie odnaleziono spawnu."
  202. else:
  203. send "&cBlad: &7Ten gracz jest offline."
  204. on respawn:
  205. if {last::%player%} is "hard" or "knock" or "standard" or "kohi" or "combo":
  206. wait 5 tick
  207. execute console command "arenapivipi %player% %{last::%player%}%"
  208. stop
  209. wait 8 tick
  210. set {last::%player%} to "world"
  211. teleport player to {spawn}
  212. clear player's inventory
  213. give compass named "&a&l✖ &2WYBIERZ TRYB &a&l✖" to player
  214. on join:
  215. wait 8 ticks
  216. clear player's inventory
  217. teleport player to {spawn}
  218. wait 2 ticks
  219. give compass named "&a&l✖ &2WYBIERZ TRYB &a&l✖" to player
  220. command /setarena [<text>]:
  221. trigger:
  222. if player is op:
  223. arg 1 is not set:
  224. send "&9• &7Uzyj: &e/setarena <knock/hard/standard/kohi/combo>&7."
  225. arg 1 is "hardcore":
  226. set {hardcore} to location of player
  227. send "&cUstawiono arene hardcore!"
  228. arg 1 is "knockback":
  229. set {knockback} to location of player
  230. send "&cUstawiono arene knockback!"
  231. arg 1 is "standard":
  232. set {standard} to location of player
  233. send "&cUstawiono arene standard!"
  234. arg 1 is "kohi":
  235. set {kohi} to location of player
  236. send "&cUstawiono arene kohi!"
  237. arg 1 is "combo":
  238. set {combo} to location of player
  239. send "&cUstawiono arene combo!"
  240. else:
  241. send "&cBlad: &7Nie masz uprawnien."
Advertisement
Add Comment
Please, Sign In to add comment