Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.31 KB | None | 0 0
  1.  
  2. #Wedka Rybaka
  3.  
  4. on player fishing:
  5. if "%fishing state%" is "CAUGHT_FISH":
  6. set {_player} to player
  7. set {_exp} to random number between 15 and 50
  8. set {_poziom} to yaml value "poziom" from file "zmienne/%uuid of {_player}%.yml"
  9. set {_poziom} to {_poziom} parsed as number
  10. set {_req.stone} to "%rounded {_poziom} ^ {curve} * {mod} + {base}%" parsed as number
  11.  
  12. set {_exp.%{_player}%} to metadata value "exp" of {_player}
  13. set {_exp.%{_player}%} to {_exp.%{_player}%} parsed as number
  14. add {_exp} to {_exp.%{_player}%}
  15. set metadata value "exp" of {_player} to "%{_exp.%{_player}%}%"
  16.  
  17. # SPRAWDZANIE CZY GRACZ MA POZIOM
  18. if {_exp.%{_player}%} is greater than or equal to {_req.stone}:
  19. set {_poziom} to {_poziom} + 1
  20. set yaml value "poziom" from file "zmienne/%uuid of {_player}%.yml" to "%{_poziom}%"
  21. send "&e&lPoziom &6» &7Awansowałeś! Twój poziom wynosi teraz &6%{_poziom}%&7!" to {_player}
  22. broadcast "&e&lPoziom &6» &e%{_player}% &7awansował! Jego poziom to &6%{_poziom}%&7!"
  23. set metadata value "exp" of {_player} to "0"
  24.  
  25.  
  26. chance of 5%:
  27. give 1 diamond to player
  28. send "&6[+] &7 Wylowiles/as diament!"
  29. chance of 10%:
  30. give 1 emerald to player's inventory
  31. send "&6[+] &7 Wylowiles/as emerald!"
  32. chance of 30%:
  33. give player iron ingot
  34. send "&6[+] &7 Wylowiles/as zelazo!"
  35. chance of 30%:
  36. give player gold ingot
  37. send "&6[+] &7 Wylowiles/as zloto!"
  38. chance of 0.5%:
  39. give 1 beacon named "&bLatarnia" to player's inventory
  40. send "&6[+] &7 Wylowiles/as Latarnie!"
  41. chance of 0.2%:
  42. give 1 paper named "&c* &eZwĂłj kasy &a[+1000$] &c*" to player's inventory
  43. send "&6[+] &7 Wylowiles/as &aZwoj Kasy!"
  44.  
  45.  
  46. on entering of region "niespadaj":
  47. teleport player to spawn of world "SkyBlockSP"
  48. send player title " " with subtitle "&aTeleportacja na spawn..." for 2 seconds
  49.  
  50.  
  51. command kosz:
  52. aliases: smietnik, smieci, koszyk, kos
  53. trigger:
  54. wait 1 ticks
  55. play "BLOCK_CHEST_OPEN" specifically to player with pitch 2 and volume 1
  56. open chest with 3 rows named " &c* &9Super Smietnik &c*" to player
  57.  
  58.  
  59.  
  60. # ZWOJE VIP I SUPERVIP
  61. command /zwoj [<text>] [<text>] [<text>]:
  62. permission: zwoj.perm
  63. trigger:
  64. if arg 1 is not set:
  65. send "/zwoj <NAZWA RANGI> - daje zwoj danej rangi z PEXA"
  66. send "/zwoj kasa <ilosc> - daje zwoj kasy iles tam"
  67. send "/zwoj czasowy <dd/mm/rr> <ranga> - daje zwĂłj czasowy"
  68. stop
  69. if arg 1 is "czasowy":
  70. if arg 2 is set:
  71. if arg 3 is set:
  72. give 1 paper of infinity 1 named "&a* &eZwĂłj rangi &a[%arg 3%] &a*" with lore "||&3Po uĹĽyciu otrzymasz||&3rangÄ™ &a%arg 3% &3na &a3 dni&3!||&4ZwĂłj waĹĽny do &c%arg 2%&4!" to player
  73. stop
  74. if arg 1 is "kasa":
  75. if arg 2 is set:
  76. give 1 paper of infinity 1 named "&c* &eZwĂłj kasy &a[+%arg 2%$] &c*" with lore "||&3Po uĹĽyciu otrzymasz %arg 2%$" to player
  77. stop
  78. if arg 1 is set:
  79. give 1 paper of infinity 1 named "&c* &eZwĂłj rangi &a[%arg 1%] &c*" with lore "||&3Po uĹĽyciu otrzymasz||&3rangÄ™ &a%arg 1% &3na &a3 dni&3!" to player
  80. stop
  81.  
  82.  
  83. # command prezent:
  84. # trigger:
  85. # set {_jakizwoj} to "Hero" or "Elita"
  86. # set {_ranga} to yaml value "UzycieZwoju" from file "zmienne/%uuid of player%.yml"
  87. # if {_ranga} is not set:
  88. # set yaml value "UzycieZwoju" from file "zmienne/%uuid of player%.yml" to "true"
  89. # broadcast " "
  90. # broadcast " &8»&8&M---------&f&8✧ &b&l» &b&lSky&f&lBlock &c&lP&f&lr&c&le&f&lz&c&le&f&ln&c&lt! &b&l« &8✧&8&m--------&r&8-&8«"
  91. # broadcast " "
  92. # broadcast " &7Gracz &b%player% &7otworzył prezent świąteczny"
  93. # broadcast " &7i wylosował rangę &a[%{_jakizwoj}%] &7na &b3 dni&7!"
  94. # broadcast " "
  95. # broadcast " &8&m----------------------------------------------------"
  96. # broadcast " "
  97. # execute console command "pex user %player% group add %{_jakizwoj}% """" 259200"
  98. # give random number between 30 and 60 of diamond to player
  99. # give random number between 30 and 60 of emerald to player
  100. # give 64 of dirt to player
  101. # give 5 of orange dye named "&f&l- &6Bursztyn &f&l-" to player
  102. # give 1 diamond pickaxe of unbreaking 3 and efficiency 4 and fortune 1 named "&cK&fi&cl&fo&cf &c S&fw&ci&fa&ct&fe&cc&fz&cn&fy" to player
  103. # loop 20 times:
  104. # wait 3 ticks
  105. # launch burst firework colored red or blue or orange or green or yellow at block under location of player timed 0
  106. # else:
  107. # send "&f&lMC&c&lPL &6» &cOdebrałeś już swój prezent!" to player
  108.  
  109.  
  110.  
  111.  
  112. on rightclick with a paper:
  113. if name of player's tool contains "&c* &eZwĂłj rangi":
  114. set {_ranga} to "%name of player's tool%"
  115. replace all "&c* &eZwĂłj rangi &a[" with "" in {_ranga}
  116. replace all "] &c*" with "" in {_ranga}
  117. loop all items in player's inventory:
  118. if name of loop-item is "&c* &eZwĂłj rangi &a[%{_ranga}%] &c*":
  119. remove 1 of loop-item from player's inventory
  120. stop loop
  121. broadcast " "
  122. broadcast " &8&m------------------&r &f&lMinecraf&c&lPolska &8&m------------------"
  123. broadcast " "
  124. broadcast " &7Gracz &b%player% &7uzyl zwoju &a[%{_ranga}%]&7!"
  125. broadcast " &7Otrzymal on range &a[%{_ranga}%] &7na &b3 dni&7!"
  126. broadcast " "
  127. broadcast " &8&m----------------------------------------------------"
  128. broadcast " "
  129. execute console command "pex user %player% group add %{_ranga}% """" 259200"
  130. loop 10 times:
  131. wait 3 ticks
  132. launch burst firework colored red or blue or orange or green or yellow at block under location of player timed 0
  133.  
  134.  
  135. on rightclick with a paper:
  136. if name of player's tool contains "&c* &eZwĂłj kasy":
  137. set {_kasa} to "%name of player's tool%"
  138. replace all "&c* &eZwĂłj kasy &a[+" with "" in {_kasa}
  139. replace all "$] &c*" with "" in {_kasa}
  140. loop all items in player's inventory:
  141. if name of loop-item is "&c* &eZwĂłj kasy &a[+%{_kasa}%$] &c*":
  142. remove 1 of loop-item from player's inventory
  143. stop loop
  144. execute console command "eco give %player% %{_kasa}%"
  145. send " "
  146. send " &8&m------------------&r &f&lMinecraf&c&lPolska &8&m------------------"
  147. send " "
  148. send " &7Gracz &b%player% &7uzyles zwoju kasy &a+%{_kasa}%$&7!"
  149. send " "
  150. send " &8&m----------------------------------------------------"
  151. send " "
  152. loop 10 times:
  153. wait 3 ticks
  154. launch burst firework colored red or blue or orange or green or yellow at block under location of player timed 0
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163. command losowanie2 [<player>]:
  164. permission: op.admin
  165. trigger:
  166. set {_losowanie} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8
  167. if {_losowanie} is equal to 1:
  168. execute console command "ss give %arg 1% Spider 1"
  169. if {_losowanie} is equal to 2:
  170. execute console command "ss give %arg 1% Villager 1"
  171. if {_losowanie} is equal to 3:
  172. execute console command "ss give %arg 1% ZombiePigman 1"
  173. if {_losowanie} is equal to 4:
  174. execute console command "ss give %arg 1% IronGolem 1"
  175. if {_losowanie} is equal to 5:
  176. execute console command "ss give %arg 1% Zombie 1"
  177. if {_losowanie} is equal to 6:
  178. execute console command "ss give %arg 1% Skeleton 1"
  179. if {_losowanie} is equal to 7:
  180. execute console command "ss give %arg 1% IronGolem 1"
  181. if {_losowanie} is equal to 7:
  182. execute console command "ss give %arg 1% Chicken 1"
  183.  
  184.  
  185. command losowanie3 [<player>]:
  186. permission: op.admin
  187. trigger:
  188. set {_losowanie} to 1 or 2 or 3 or 4 or 5 or 6 or 7
  189. if {_losowanie} is equal to 1:
  190. give 25 emerald of unbreaking 10 named "&a&lGem" to arg 1
  191. if {_losowanie} is equal to 2:
  192. give 42 emerald of unbreaking 10 named "&a&lGem" to arg 1
  193. if {_losowanie} is equal to 3:
  194. give 34 emerald of unbreaking 10 named "&a&lGem" to arg 1
  195. if {_losowanie} is equal to 4:
  196. give 13 emerald of unbreaking 10 named "&a&lGem" to arg 1
  197. if {_losowanie} is equal to 5:
  198. give 48 emerald of unbreaking 10 named "&a&lGem" to arg 1
  199. if {_losowanie} is equal to 6:
  200. give 36 emerald of unbreaking 10 named "&a&lGem" to arg 1
  201. if {_losowanie} is equal to 7:
  202. give 22 emerald of unbreaking 10 named "&a&lGem" to arg 1
  203.  
  204.  
  205.  
  206. #BLOCKED
  207.  
  208.  
  209.  
  210.  
  211. on explode:
  212. cancel event
  213.  
  214. on rightclick with fishing rod:
  215. if player is in world "zima":
  216. remove fishing rod from player's inventory
  217. send "&4Nie mozesz uzywac wedki na tym swiecie!"
  218. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement