szumielxd

Untitled

Mar 28th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.39 KB | None | 0 0
  1. at 7am:
  2. {evjajko.startevent} is true:
  3. loop all players:
  4. add 1 to {_iloscG}
  5. {_iloscG} > 4:
  6. difference between {evjajko.time.%world%} and now is bigger than 20 minutes:
  7.  
  8. set {evjajko.time.%world%} to now
  9. loop {evjajko.areny.%world%::*}:
  10. loop 10 times:
  11. set {_cordX1} to x coord of {evjajko.loc.%world%.%loop-value%.1}
  12. set {_cordY1} to y coord of {evjajko.loc.%world%.%loop-value%.1}
  13. set {_cordZ1} to z coord of {evjajko.loc.%world%.%loop-value%.1}
  14. set {_cordX2} to x coord of {evjajko.loc.%world%.%loop-value%.2}
  15. set {_cordY2} to y coord of {evjajko.loc.%world%.%loop-value%.2}
  16. set {_cordZ2} to z coord of {evjajko.loc.%world%.%loop-value%.2}
  17. set {_RandCordX} to random integer between {_cordX1} and {_cordX2}
  18. set {_RandCordY} to random integer between {_cordY1} and {_cordY2}
  19. set {_RandCordZ} to random integer between {_cordZ1} and {_cordZ2}
  20. set {_loc} to location at {_RandCordX} + 0.5, {_RandCordY}, {_RandCordZ} + 0.5
  21. loop 200 times:
  22. block at {_loc} is not air:
  23. set {_loc} to location 1 meter behind {_loc}
  24. else:
  25. exit 2 sections
  26. loop 200 times:
  27. block below {_loc} is air:
  28. set {_loc} to location 1 meter below {_loc}
  29. else:
  30. exit 2 sections
  31. spawn 1 chicken at {_loc}
  32. set name of spawned entity to "&eZajaczek wielkanocny"
  33. apply speed 3 to spawned entity for 2 hours
  34. {evjajko.areny.%world%::*} is set:
  35. broadcast "&e[Wielkanoc] &aNa mapie zrespily sie Wielkanocne zajaczki!"
  36. broadcast "&aNie radze ich zabijac bez dobrego seta"
  37.  
  38. {evjajko.time.%world%} is not set:
  39. set {evjajko.time.%world%} to now
  40. loop {evjajko.areny.%world%::*}:
  41. loop 10 times:
  42. set {_cordX1} to x coord of {evjajko.loc.%world%.%loop-value%.1}
  43. set {_cordY1} to y coord of {evjajko.loc.%world%.%loop-value%.1}
  44. set {_cordZ1} to z coord of {evjajko.loc.%world%.%loop-value%.1}
  45. set {_cordX2} to x coord of {evjajko.loc.%world%.%loop-value%.2}
  46. set {_cordY2} to y coord of {evjajko.loc.%world%.%loop-value%.2}
  47. set {_cordZ2} to z coord of {evjajko.loc.%world%.%loop-value%.2}
  48. set {_RandCordX} to random integer between {_cordX1} and {_cordX2}
  49. set {_RandCordY} to random integer between {_cordY1} and {_cordY2}
  50. set {_RandCordZ} to random integer between {_cordZ1} and {_cordZ2}
  51. set {_loc} to location at {_RandCordX} + 0.5, {_RandCordY}, {_RandCordZ} + 0.5
  52. loop 200 times:
  53. block at {_loc} is not air:
  54. set {_loc} to location 1 meter behind {_loc}
  55. else:
  56. exit 2 sections
  57. loop 200 times:
  58. block below {_loc} is air:
  59. set {_loc} to location 1 meter below {_loc}
  60. else:
  61. exit 2 sections
  62. spawn 1 chicken at {_loc}
  63. set name of spawned entity to "&eZajaczek wielkanocny"
  64. apply speed 3 to spawned entity for 2 hours
  65. {evjajko.areny.%world%::*} is set:
  66. broadcast "&e[Wielkanoc] &aNa mapie zrespily sie Wielkanocne zajaczki!"
  67. broadcast "&aNie radze ich zabijac bez dobrego seta"
  68. else:
  69. stop
  70.  
  71.  
  72.  
  73. # ----------KOMENDY----------
  74.  
  75. command /evjajko [<text>] [<text>] [<text>] [<text>]:
  76. permission: evjajko.admin
  77. trigger:
  78. arg 1 is not set:
  79. send "&cUzyj /evjajko set|del|list|event"
  80. stop
  81.  
  82. # USTAWIANIE OBSZARU SPAWNU KROLICZKOW
  83. arg 1 is "set":
  84. arg 2 is set:
  85. {evjajko.areny.%world%::%arg 2%} is not set:
  86. arg 3 is "1" or "2":
  87. set {evjajko.loc.%world%.%arg 2%.%arg 3%} to player's location
  88. send "&aUstawiono %arg 3% pozycje obszaru %arg 2% w swiecie %world%"
  89. {evjajko.loc.%world%.%arg 2%.%3 - arg 3 parsed as integer%} is not set:
  90. send "&cNalezy ustawic jeszcze pozycje %3 - arg 3 parsed as integer% tego regionu"
  91. else:
  92. set {evjajko.areny.%world%::%arg 2%} to arg 2
  93. send "&b&lUstawiono region!"
  94. send "&eAktywne obszary w swiecie %world%: %size of {evjajko.areny::*}%"
  95. stop
  96. send "&cpodaj numer pozycji (1 lub 2)"
  97. send "&cUzyj /evjajko set <obszar> <numer>"
  98. stop
  99. send "juz istnieje obszar o takiej nazwie"
  100. stop
  101. send "&cPodaj nazwe obszaru"
  102. send "&cUzyj /evjajko set <obszar> <numer>"
  103. stop
  104.  
  105. # USUWANIE OBSZARU SPAWNU KROLICZKOW
  106. arg 1 is "del":
  107. arg 2 is set:
  108. arg 3 is set:
  109. {evjajko.areny.%arg 3%::%arg 2%} is not set:
  110. send "&cNie ma takiego obszaru w tym swiecie"
  111. stop
  112. delete {evjajko.areny.%arg 3%::%arg 2%}
  113. delete {evjajko.loc.%arg 3%.%arg 2%.1}
  114. delete {evjajko.loc.%arg 3%.%arg 2%.2}
  115. send "&aUsunieto obszar %arg 2% w swiecie %arg 3%"
  116. stop
  117. send "&cUzyj /evjajko del <obszar> <swiat>"
  118. stop
  119. send "&cUzyj /evjajko del <obszar> <swiat>"
  120. stop
  121.  
  122. # LISTA OBSZAROW DOSTEPNYCH W DANYM SWIECIE
  123. arg 1 is "list":
  124. send "&aAktywne obszary w swiecie %world%(&6%size of {evjajko.areny.%arg 3%::*}%&a): &e%{evjajko.areny.%world%::*}%"
  125. stop
  126.  
  127.  
  128. # WLACZANIE/WYLACZANIE EVENTU WIELKANOCNEGO (PRZYDATNE PO SWIETACH)
  129. arg 1 is "event":
  130. arg 2 is "on":
  131. set {evjajko.startevent} to true
  132. send "&eUstawiono status Eventu Wielkanocnego na &awlaczony&e!"
  133. stop
  134. arg 2 is "off":
  135. delete {evjajko.startevent}
  136. send "&eUstawiono status Eventu Wielkanocnego na &4wylaczony&e!"
  137. stop
  138. send "&cUzyj /evjajko event on|off"
  139. stop
  140. send "&cUzyj /evjajko set|del|list|event"
  141. stop
  142.  
  143.  
  144.  
  145. # -----DROP Z KROLICZKA-----
  146.  
  147. on death of chicken:
  148. victim's name is "&eZajaczek wielkanocny":
  149. set {_liczba} to random integer between 0.1 and 10
  150. {_liczba} is 1:
  151. set {_boski} to random integer between 0.1 and 10
  152. {_boski} is 1:
  153. #MIECZ DUSZ
  154. add diamond sword of sharpness 3, efficiency 2, unbreaking 2, fire aspect 2, fortune 2 with name "&5&l☣Miecz Dusz☣" to drops
  155. stop
  156. {_boski} is 2:
  157. #LUK ZAGLADY
  158. add bow of punch 3, infinity 10, unbreaking 10 with name "&b&lLuk Zaglady" to drops
  159. add arrow with name "&bStrzala Smierci" to drops
  160. stop
  161. {_boski} is 3:
  162. #BOSKI ROG MOCY
  163. add 351:10 of unbreaking 10 with name "&e&lBoski Rog Mocy" to drops
  164. stop
  165. {_boski} is 4:
  166. #VORTEX
  167. add 351:8 of knockback 10 with name "&e&lVortex" to drops
  168. stop
  169. {_boski} is 5:
  170. #INFERNO
  171. add 351:9 of fire aspect 2 with name "&4&lInferno" to drops
  172. stop
  173. {_boski} is 6:
  174. #ROZDZKA BLOGOSLAWIENSTWA
  175. add golden hoe with name "&6Blogoslawienstwo &f(&bRozdzka Fenix&f)" to drops
  176. stop
  177. {_boski} is 7:
  178. #TOKSYCZNA ROZDZKA
  179. add iron hoe with name "&6Klatwa &f(&bToksyczna Rozdzka&f)" to drops
  180. stop
  181. {_boski} is 8:
  182. #SPEED III NA 3 MINUTY + SILA I NA MINUTE (MOZNA ZNERFIC JAK ZBYT OP)
  183. apply speed 3 to attacker for 3 minutes
  184. apply strength 1 to attacker for 1 minute
  185. send "&aBogowie ci blogoslawia!" to attacker
  186. #2 STAKI PATYKOW
  187. add 128 sticks with name "&f:)" to drops
  188. stop
  189. {_liczba} is 2:
  190. #DIAX HELM
  191. add diamond helmet to drops
  192. stop
  193. {_liczba} is 3:
  194. #DIAX KLATA
  195. add diamond chestplate to drops
  196. stop
  197. {_liczba} is 4:
  198. #DIAX SPODNIE
  199. add diamond leggings to drops
  200. stop
  201. {_liczba} is 5:
  202. #KOLEJNY ZAJACZEK WIELKANOCNY Z DODATKOWYM SPEEDEM
  203. spawn 1 chicken at location of attacker
  204. set name of spawned entity to "&eZajaczek wielkanocny"
  205. apply speed 5 to spawned entity for 4 days
  206. send "&a&lBerek!" to attacker
  207. send "&2Teraz ty gonisz!" to attacker
  208. stop
  209. {_liczba} is 6:
  210. #CALE EQ KWIATOW (MOZNA ZMIENIC NA COS INNEGO ROWNIE NIE PRZYDATNEGO
  211. add 2880 flowers named "&7( ͡° ͜ʖ ͡°)" to inventory of attacker
  212. send "&2Otrzymales prezent! otworz ekwipunek, aby zobaczyc zawartosc!" to attacker
  213. stop
  214. {_liczba} is 7:
  215. #NIEZBIERALNE DIAMENTY
  216. send "&b&lZbierz przedmioty z ziemi zanim twoj bonus przepadnie!" to attacker
  217. loop 20 times:
  218. set {_locP} to location infront attacker
  219. drop 20 diamonds named "&9apems8329f&aji3" above {_locP}
  220. wait 10 ticks
  221. stop
  222.  
  223. {_liczba} is 8:
  224. #WYBUCH O MOCY CREEPERA
  225. loop all players in radius 5 around victim:
  226. send "&a&lTu napewno nie stanie sie nic niebezpiecznego&4&l!!!" to loop-player
  227. send "&4-------------------------------------------------------" to loop-player
  228. wait 2 seconds
  229. make safe explosion with power 4 above location of victim
  230. loop all players in radius 5 around victim:
  231. send "&2&lPrima Aprilis!" to loop-player
  232. stop
  233. {_liczba} is 9:
  234. #128 JAJEK
  235. add 128 egg named "&4Jajko totalnej anihilacji" to drops
  236. send "&2Dzisiaj bedzie duza jajecznica" to attacker
  237. stop
  238. {_liczba} is 10:
  239. set {_RandNag} to random integer between 0.1 and 2
  240. {_RandNag} is 1:
  241. #OD 100 DO 200 MONET
  242. set {_pieniadze} to random integer between 99.1 and 200.1
  243. execute console command "/fe grant %attacker% %{_pieniadze}%"
  244. send "&aDodano &e%{_pieniadze}%&a monet do konta!" to attacker
  245. stop
  246. {_RandNag} is 2:
  247. #64 BUTELKI EXPA
  248. add 64 bottle o' enchanting to drops
  249. send "&aMagia Swiat!" to attacker
  250. stop
  251.  
  252.  
  253.  
  254. # -----OBNIZENIE DAMAGE DLA EVENTOWEGO KROLICZKA-----
  255. on damage of chicken:
  256. victim's name is "&eZajaczek wielkanocny":
  257. extinguish victim
  258. set damage to 0.05
  259.  
  260.  
  261.  
  262.  
  263.  
  264. # -----BLOK PODNOSZENIA DIAMENTOW-----
  265. on pick up diamond:
  266. item is diamond named "&9apems8329f&aji3":
  267. cancel event
Advertisement
Add Comment
Please, Sign In to add comment