KiwoPL

PokeBalls By KiwoPL

Sep 4th, 2016
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.76 KB | None | 0 0
  1. # Autor Skryptu: KiwoPL #
  2. # =-=-=-=-=-=-=-=-=-=-= #
  3. # Nie zezwalam na: #
  4. # - Podszywanie się pod autora #
  5. # - Edytowanie Kodu #
  6. # - Usuwanie informacji o autorze #
  7. # - Publikowanie skryptu #
  8. # - Zarabianie na skrypcie #
  9.  
  10. on script load:
  11. register new shaped recipe for 1 sunflower of unbreaking 10 named "&bPokeBall" with lore "&aNacisnij PPM aby zamknac moba" using tnt, diamond, tnt, diamond, redstone, diamond, tnt, diamond, tnt
  12. variables:
  13. {poke::krowa} = "&aWlaczony"
  14. {poke::swinia} = "&aWlaczony"
  15. {poke::owca} = "&aWlaczony"
  16. {poke::kurczak} = "&aWlaczony"
  17. command /poke [<text>]:
  18. trigger:
  19. if arg 1 is "daj":
  20. if player has permission "kiwi.poke.daj" or "kiwi.poke.*":
  21. give 1 sunflower of unbreaking 10 named "&bPokeBall" with lore "&aNacisnij PPM aby zamknac moba" to player
  22. stop
  23. else:
  24. send "&cNie masz uprawnien &7(kiwi.poke.daj)"
  25. if arg 1 is "crafting":
  26. open chest with 5 rows named "&6Crafting PokeBalla" to player
  27. wait 2 tick
  28. format slot 10 of player with 1 of tnt named "&cTNT" to be unstealable
  29. format slot 11 of player with 1 of diamond named "&bDIAMENT" to be unstealable
  30. format slot 12 of player with 1 of tnt named "&cTNT" to be unstealable
  31. format slot 19 of player with 1 of diamond named "&bDIAMENT" to be unstealable
  32. format slot 20 of player with 1 of redstone named "&4REDSTONE" to be unstealable
  33. format slot 21 of player with 1 of diamond named "&bDIAMENT" to be unstealable
  34. format slot 24 of player with 1 of sunflower named "&bPokeBall" with lore "&aNacisnij PPM aby zamknac moba" to be unstealable
  35. format slot 28 of player with 1 of tnt named "&cTNT" to be unstealable
  36. format slot 29 of player with 1 of diamond named "&bDIAMENT" to be unstealable
  37. format slot 30 of player with 1 of tnt named "&cTNT" to be unstealable
  38. stop
  39. if arg 1 is "admin":
  40. if player has permission "kiwi.poke.admin" or "kiwi.poke.*":
  41. wait 2 tick
  42. open chest with 5 rows named "&6Ustawienia PokeBalla" to player
  43. wait 2 tick
  44. format slot 0 of player with 1 of cow spawn egg named "&bKrowa" with lore "&fSTATUS: %{poke::krowa}%" to close then run [execute player command "pokeball krowa" and "poke admin"]
  45. format slot 1 of player with 1 of pig spawn egg named "&bSwinia" with lore "&fSTATUS: %{poke::swinia}%" to close then run [execute player command "pokeball swinia" and "poke admin"]
  46. format slot 2 of player with 1 of sheep spawn egg named "&bOwca" with lore "&fSTATUS: %{poke::owca}%" to close then run [execute player command "pokeball owca" and "poke admin"]
  47. format slot 3 of player with 1 of chicken spawn egg named "&bKurczak" with lore "&fSTATUS: %{poke::kurczak}%" to close then run [execute player command "pokeball kurczak" and "poke admin"]
  48. stop
  49. else:
  50. send "&cNie masz uprawnien &7(kiwi.poke.admin)"
  51. if arg 1 is "info":
  52. wait 2 tick
  53. open chest with 5 rows named "&6Info PokeBallow" to player
  54. wait 2 tick
  55. format slot 0 of player with 1 of cow spawn egg named "&bKrowa" with lore "&fSTATUS: %{poke::krowa}%" to close then run [execute player command "poke info"]
  56. format slot 1 of player with 1 of pig spawn egg named "&bSwinia" with lore "&fSTATUS: %{poke::swinia}%" to close then run [execute player command "poke info"]
  57. format slot 2 of player with 1 of sheep spawn egg named "&bOwca" with lore "&fSTATUS: %{poke::owca}%" to close then run [execute player command "poke info"]
  58. format slot 3 of player with 1 of chicken spawn egg named "&bKurczak" with lore "&fSTATUS: %{poke::kurczak}%" to close then run [execute player command "poke kurczak"]
  59. stop
  60. else:
  61. if player has permission "kiwi.poke.pomoc.admin" or "kiwi.poke.*":
  62. send " "
  63. send "&b/Poke Daj &a- Daje PokeBalla"
  64. send "&b/Poke Crafting &a- Crafting PokeBalla"
  65. send "&b/Poke INFO &a- Otwiera GUI pokeballow"
  66. send "&b/Poke Admin &a- Otwiera GUI pokeballow"
  67. stop
  68. else:
  69. send " "
  70. send "&b/Poke Crafting &a- Crafting PokeBalla"
  71. send "&b/Poke INFO &a- Otwiera GUI pokeballow"
  72. command /pokeball [<text>]:
  73. trigger:
  74. if player has permission "kiwi.poke.admin" or "kiwi.poke.*":
  75. if arg 1 is "krowa":
  76. if {poke::krowa} is "&aWlaczony":
  77. set {poke::krowa} to "&cWylaczony"
  78. broadcast "&bAdministrator &c%player% &bWYLACZYL dzialanie pokeballow na &akrowy"
  79. stop
  80. if {poke::krowa} is "&cWylaczony":
  81. set {poke::krowa} to "&aWlaczony"
  82. broadcast "&bAdministrator &c%player% &bWLACZYL dzialanie pokeballow na &akrowy"
  83. stop
  84. if arg 1 is "swinia":
  85. if {poke::swinia} is "&aWlaczony":
  86. set {poke::swinia} to "&cWylaczony"
  87. broadcast "&bAdministrator &c%player% &bWYLACZYL dzialanie pokeballow na &aswinie"
  88. stop
  89. if {poke::swinia} is "&cWylaczony":
  90. set {poke::swinia} to "&aWlaczony"
  91. broadcast "&bAdministrator &c%player% &bWLACZYL dzialanie pokeballow na &aswinie"
  92. stop
  93. if arg 1 is "owca":
  94. if {poke::owca} is "&cWylaczony":
  95. set {poke::owca} to "&aWlaczony"
  96. broadcast "&bAdministrator &c%player% &bWLACZYL dzialanie pokeballow na &aowce"
  97. stop
  98. if {poke::owca} is "&aWlaczony":
  99. set {poke::owca} to "&cWylaczony"
  100. broadcast "&bAdministrator &c%player% &bWYLACZYL dzialanie pokeballow na &aowce"
  101. stop
  102. if arg 1 is "kurczak":
  103. if {poke::kurczak} is "&cWylaczony":
  104. set {poke::kurczak} to "&aWlaczony"
  105. broadcast "&bAdministrator &c%player% &bWLACZYL dzialanie pokeballow na &akurczaki"
  106. stop
  107. if {poke::kurczak} is "&aWlaczony":
  108. set {poke::kurczak} to "&cWylaczony"
  109. broadcast "&bAdministrator &c%player% &bWYLACZYL dzialanie pokeballow na &akurczaki"
  110. stop
  111.  
  112. on right click on cow:
  113. if player's tool's name is "&bPokeBall":
  114. if player's tool's lore is "&aNacisnij PPM aby zamknac moba":
  115. if {poke::krowa} is "&aWlaczony":
  116. clear cow
  117. remove 1 sunflower named "&bPokeBall" with lore "&aNacisnij PPM aby zamknac moba" from player
  118. wait 1 second
  119. drop 1 sunflower of unbreaking 10 named "&bPokeBall" with lore "&aW srodku ukryta jest &6krowa"
  120. send "&aUkryles w srodku &6krowe"
  121. else:
  122. cancel event
  123. send "&cDzialanie pokeballa na tego moba jest wylaczone przez administratora!"
  124. on right click on sheep:
  125. if player's tool's name is "&bPokeBall":
  126. if player's tool's lore is "&aNacisnij PPM aby zamknac moba":
  127. if {poke::owca} is "&aWlaczony":
  128. clear sheep
  129. remove 1 sunflower named "&bPokeBall" with lore "&aNacisnij PPM aby zamknac moba" from player
  130. wait 1 second
  131. drop 1 sunflower of unbreaking 10 named "&bPokeBall" with lore "&aW srodku ukryta jest &6owca"
  132. send "&aUkryles w srodku &6owce"
  133. else:
  134. cancel event
  135. send "&cDzialanie pokeballa na tego moba jest wylaczone przez administratora!"
  136. on right click on pig:
  137. if player's tool's name is "&bPokeBall":
  138. if player's tool's lore is "&aNacisnij PPM aby zamknac moba":
  139. if {poke::swinia} is "&aWlaczony":
  140. clear pig
  141. remove 1 sunflower named "&bPokeBall" with lore "&aNacisnij PPM aby zamknac moba" from player
  142. wait 1 second
  143. drop 1 sunflower of unbreaking 10 named "&bPokeBall" with lore "&aW srodku ukryta jest &6swinia"
  144. send "&aUkryles w srodku &6swinie"
  145. else:
  146. cancel event
  147. send "&cDzialanie pokeballa na tego moba jest wylaczone przez administratora!"
  148. on right click on chicken:
  149. if player's tool's name is "&bPokeBall":
  150. if player's tool's lore is "&aNacisnij PPM aby zamknac moba":
  151. if {poke::kurczak} is "&aWlaczony":
  152. clear entity
  153. remove 1 sunflower named "&bPokeBall" with lore "&aNacisnij PPM aby zamknac moba" from player
  154. wait 1 second
  155. drop 1 sunflower of unbreaking 10 named "&bPokeBall" with lore "&aW srodku ukryty jest &6kurczak"
  156. send "&aUkryles w srodku &6kurczaka"
  157. else:
  158. cancel event
  159. send "&cDzialanie pokeballa na tego moba jest wylaczone przez administratora!"
  160. on right click:
  161. if player's tool's name is "&bPokeBall":
  162. if player's tool's lore is "&aW srodku ukryty jest &6kurczak":
  163. if {poke::kurczak} is "&aWlaczony":
  164. cancel event
  165. remove 1 sunflower named "&bPokeBall" with lore "&aW srodku ukryty jest &6kurczak" from player
  166. spawn 1 chicken at player's location
  167. send "&aZespawnowales &6kurczaka"
  168. else:
  169. cancel event
  170. send "&cDzialanie pokeballa na tego moba jest wylaczone przez administratora!"
  171. if player's tool's name is "&bPokeBall":
  172. if player's tool's lore is "&aW srodku ukryta jest &6krowa":
  173. if {poke::krowa} is "&aWlaczony":
  174. cancel event
  175. remove 1 sunflower named "&bPokeBall" with lore "&aW srodku ukryta jest &6krowa" from player
  176. spawn 1 cow at player's location
  177. send "&aZespawnowales &6krowe"
  178. else:
  179. cancel event
  180. send "&cDzialanie pokeballa na tego moba jest wylaczone przez administratora!"
  181. if player's tool's name is "&bPokeBall":
  182. if player's tool's lore is "&aW srodku ukryta jest &6owca":
  183. if {poke::owca} is "&aWlaczony":
  184. cancel event
  185. remove 1 sunflower named "&bPokeBall" with lore "&aW srodku ukryta jest &6owca" from player
  186. spawn 1 sheep at player's location
  187. send "&aZespawnowales &6owce"
  188. else:
  189. cancel event
  190. send "&cDzialanie pokeballa na tego moba jest wylaczone przez administratora!"
  191. if player's tool's name is "&bPokeBall":
  192. if player's tool's lore is "&aW srodku ukryta jest &6swinia":
  193. if {poke::swinia} is "&aWlaczony":
  194. cancel event
  195. remove 1 sunflower named "&bPokeBall" with lore "&aW srodku ukryta jest &6swinia" from player
  196. spawn 1 pig at player's location
  197. send "&aZespawnowales &6swinie"
  198. else:
  199. cancel event
  200. send "&cDzialanie pokeballa na tego moba jest wylaczone przez administratora!"
  201. if player's tool's name is "&bPokeBall":
  202. if player's tool's lore is "&aNacisnij PPM aby zamknac moba":
  203. cancel event
  204. send "&aMozesz zamykac tylko niektore moby"
  205. stop
Advertisement
Add Comment
Please, Sign In to add comment