ShooterowyPL

Efekty

Mar 30th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.35 KB | None | 0 0
  1. command /efekty:
  2. trigger:
  3. execute console command "sklep-efekty %player% strona-1"
  4.  
  5. command /sklep-efekty [<player>] [<text>]:
  6. trigger:
  7. if sender is console:
  8. if arg 2 is "strona-1":
  9. wait 2 tick
  10. open chest with 3 rows named "&e&lSklep Efekty" to player-arg
  11. wait 1 tick
  12. format slot 11 of player-arg with 1 of potion of:8258 named "&cPotki Szybkosci" to run "sklep-efekty %player-arg% strona-2-szybkosc"
  13. format slot 12 of player-arg with 1 of potion of:8259 named "&cPotki Odpornosci Na Ogien" to run "sklep-efekty %player-arg% strona-3-ogien"
  14. format slot 13 of player-arg with 1 of potion of:8193 named "&cPotki Regeneracji" to run "sklep-efekty %player-arg% strona-4-regeneracja"
  15. format slot 14 of player-arg with 1 of potion of:8262 named "&cPotki Widzenia W Ciemnosci" to run "sklep-efekty %player-arg% strona-5-widzenie"
  16. format slot 15 of player-arg with 1 of enchanted golden apple named "&cEfekt Koxa" to run "sklep-efekty %player-arg% kox"
  17. format slot 22 of player-arg with 1 of beacon named "&cEfekt Haste" to run "sklep-efekty %player-arg% strona-6-haste"
  18. format slot 26 of player-arg with 1 of book named "&cAutor" with lore "&6mati770ka" to be unstealable
  19. if arg 2 is "strona-2-szybkosc":
  20. wait 2 tick
  21. open chest with 3 rows named "&e&lSzybkosc I-III" to player-arg
  22. wait 1 tick
  23. format slot 12 of player-arg with 1 of water bottle named "&cSpeed I" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% speed1"
  24. format slot 13 of player-arg with 1 of water bottle named "&cSpeed II" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% speed2"
  25. format slot 14 of player-arg with 1 water bottle named "&cSpeed III" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% speed3"
  26. format slot 26 of player-arg with 1 of arrow named "&aPowrot" to run "sklep-efekty %player-arg% strona-1"
  27. if arg 2 is "strona-3-ogien":
  28. wait 2 tick
  29. open chest with 3 rows named "&e&lOdpornosc Ogien I-III" to player-arg
  30. wait 1 tick
  31. format slot 12 of player-arg with 1 of water bottle named "&cFire Resistance I" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% fire1"
  32. format slot 13 of player-arg with 1 of water bottle named "&cFire Resistance II" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% fire2"
  33. format slot 14 of player-arg with 1 of water bottle named "&cFire Resistance III" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% fire3"
  34. format slot 26 of player-arg with 1 of arrow named "&aPowrot" to run "sklep-efekty %player-arg% strona-1"
  35. if arg 2 is "strona-4-regeneracja":
  36. wait 2 tick
  37. open chest with 3 rows named "&e&lRegeneracja I-III" to player-arg
  38. wait 1 tick
  39. format slot 12 of player-arg with 1 of water bottle named "&cRegeneration I" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% regeneration1"
  40. format slot 13 of player-arg with 1 of water bottle named "&cRegeneration II" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% regeneration2"
  41. format slot 14 of player-arg with 1 of water bottle named "&cRegeneration III" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% regeneration3"
  42. format slot 26 of player-arg with 1 of arrow named "&aPowrot" to run "sklep-efekty %player-arg% strona-1"
  43. if arg 2 is "strona-5-widzenie":
  44. wait 2 tick
  45. open chest with 3 rows named "&e&lWidzenie W Ciemnosci I-III" to player-arg
  46. wait 1 tick
  47. format slot 12 of player-arg with 1 of water bottle named "&cNight Vision I" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% night1"
  48. format slot 13 of player-arg with 1 of water bottle named "&cNight Vision II" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% night2"
  49. format slot 14 of player-arg with 1 of water bottle named "&cNight Vision III" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% night3"
  50. format slot 26 of player-arg with 1 of arrow named "&aPowrot" to run "sklep-efekty %player-arg% strona-1"
  51. if arg 2 is "strona-6-haste":
  52. wait 2 tick
  53. open chest with 3 rows named "&e&lHaste I-III" to player-arg
  54. wait 1 tick
  55. format slot 12 of player-arg with 1 of water bottle named "&cHaste I" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% haste1"
  56. format slot 13 of player-arg with 1 of water bottle named "&cHaste II" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% haste2"
  57. format slot 14 of player-arg with 1 of water bottle named "&cHaste III" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% haste3"
  58. format slot 26 of player-arg with 1 of arrow named "&aPowrot" to run "sklep-efekty %player-arg% strona-1"
  59. if arg 2 is "speed1":
  60. if player-arg doesn't have diamond block:
  61. send "&cNie posiadasz bloku diamentu." to player-arg
  62. stop
  63. remove speed from player-arg
  64. apply speed 1 to player-arg for 5 minutes
  65. remove 1 diamond block from player-arg
  66. send "&cZakupiles Efekt: &eSpeed I" to player-arg
  67. if arg 2 is "speed2":
  68. if player-arg doesn't have diamond block:
  69. send "&cNie posiadasz bloku diamentu." to player-arg
  70. stop
  71. remove speed from player-arg
  72. apply speed 2 to player-arg for 5 minutes
  73. remove 1 diamond block from player-arg
  74. send "&cZakupiles Efekt: &eSpeed II" to player-arg
  75. if arg 2 is "speed3":
  76. if player-arg doesn't have diamond block:
  77. send "&cNie posiadasz bloku diamentu." to player-arg
  78. stop
  79. remove speed from player-arg
  80. apply speed 3 to player-arg for 5 minutes
  81. remove 1 diamond block from player-arg
  82. send "&cZakupiles Efekt: &eSpeed III" to player-arg
  83. if arg 2 is "fire1":
  84. if player-arg doesn't have diamond block:
  85. send "&cNie posiadasz bloku diamentu." to player-arg
  86. stop
  87. remove fire resistance from player-arg
  88. apply fire resistance 1 to player-arg for 5 minutes
  89. remove 1 diamond block from player-arg
  90. send "&cZakupiles Efekt: &eFire Resistance I" to player-arg
  91. if arg 2 is "fire2":
  92. if player-arg doesn't have diamond block:
  93. send "&cNie posiadasz bloku diamentu." to player-arg
  94. stop
  95. remove fire resistance from player-arg
  96. apply fire resistance 2 to player-arg for 5 minutes
  97. remove 1 diamond block from player-arg
  98. send "&cZakupiles Efekt: &eFire Resistance II" to player-arg
  99. if arg 2 is "fire3":
  100. if player-arg doesn't have diamond block:
  101. send "&cNie posiadasz bloku diamentu." to player-arg
  102. stop
  103. remove fire resistance from player-arg
  104. apply fire resistance 3 to player-arg for 5 minutes
  105. remove 1 diamond block from player-arg
  106. send "&cZakupiles Efekt: &eFire Resistance III" to player-arg
  107. if arg 2 is "regeneration1":
  108. if player-arg doesn't have diamond block:
  109. send "&cNie posiadasz bloku diamentu." to player-arg
  110. stop
  111. remove regeneration from player-arg
  112. apply regeneration 1 to player-arg for 5 minutes
  113. remove 1 diamond block from player-arg
  114. send "&cZakupiles Efekt: &eRegeneration I" to player-arg
  115. if arg 2 is "regeneration2":
  116. if player-arg doesn't have diamond block:
  117. send "&cNie posiadasz bloku diamentu." to player-arg
  118. stop
  119. remove regeneration from player-arg
  120. apply regeneration 2 to player-arg for 5 minutes
  121. remove 1 diamond block from player-arg
  122. send "&cZakupiles Efekt: &eRegeneration II" to player-arg
  123. if arg 2 is "regeneration3":
  124. if player-arg doesn't have diamond block:
  125. send "&cNie posiadasz bloku diamentu." to player-arg
  126. stop
  127. remove regeneration from player-arg
  128. apply regeneration 3 to player-arg for 5 minutes
  129. remove 1 diamond block from player-arg
  130. send "&cZakupiles Efekt: &eRegeneration III" to player-arg
  131. if arg 2 is "night1":
  132. if player-arg doesn't have diamond block:
  133. send "&cNie posiadasz bloku diamentu." to player-arg
  134. stop
  135. remove night vision from player-arg
  136. apply night vision 1 to player-arg for 5 minutes
  137. remove 1 diamond block from player-arg
  138. send "&cZakupiles Efekt: &eNight Vision I" to player-arg
  139. if arg 2 is "night2":
  140. if player-arg doesn't have diamond block:
  141. send "&cNie posiadasz bloku diamentu." to player-arg
  142. stop
  143. remove night vision from player-arg
  144. apply night vision 2 to player-arg for 5 minutes
  145. remove 1 diamond block from player-arg
  146. send "&cZakupiles Efekt: &eNight Vision II" to player-arg
  147. if arg 2 is "night3":
  148. if player-arg doesn't have diamond block:
  149. send "&cNie posiadasz bloku diamentu." to player-arg
  150. stop
  151. remove night vision from player-arg
  152. apply night vision 3 to player-arg for 5 minutes
  153. remove 1 diamond block from player-arg
  154. send "&cZakupiles Efekt: &eNight Vision III" to player-arg
  155. if arg 2 is "kox":
  156. if player-arg doesn't have diamond block:
  157. send "&cNie posiadasz bloku diamentu." to player-arg
  158. stop
  159. remove absorption and regeneration and resistance and fire resistance from player-arg
  160. apply absorption to player-arg for 2 minutes
  161. apply regeneration to player-arg for 30 seconds
  162. apply resistance to player-arg for 5 minutes
  163. apply fire resistance to player-arg for 5 minutes
  164. remove 1 diamond block from player-arg
  165. send "&cZakupiles Efekt: &eKox" to player-arg
  166. create timed bar with text "&e%player-arg% &cZakupil Efekt &b&lKoxa" to all players for 7 seconds
  167. if arg 2 is "haste1":
  168. if player-arg doesn't have diamond block:
  169. send "&cNie posiadasz bloku diamentu." to player-arg
  170. stop
  171. remove haste from player-arg
  172. apply haste 1 to player-arg for 5 minutes
  173. remove 1 diamond block from player-arg
  174. send "&cZakupiles Efekt: &eHaste I" to player-arg
  175. if arg 2 is "haste2":
  176. if player-arg doesn't have diamond block:
  177. send "&cNie posiadasz bloku diamentu." to player-arg
  178. stop
  179. remove haste from player-arg
  180. apply haste 2 to player-arg for 5 minutes
  181. remove 1 diamond block from player-arg
  182. send "&cZakupiles Efekt: &eHaste II" to player-arg
  183. if arg 2 is "haste3":
  184. if player-arg doesn't have diamond block:
  185. send "&cNie posiadasz bloku diamentu." to player-arg
  186. stop
  187. remove haste from player-arg
  188. apply haste 3 to player-arg for 5 minutes
  189. remove 1 diamond block from player-arg
  190. send "&cZakupiles Efekt: &eHaste III" to player-arg
  191. else:
  192. send "&cKomenda wykonywalna tylko w Consoli"
Add Comment
Please, Sign In to add comment