Guest User

OtherDrops Advced by NewStyleGG

a guest
Jan 11th, 2014
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.46 KB | None | 0 0
  1. options:
  2. # blok z ktorego beda lecialy surowce
  3. blok : stone
  4. variables:
  5. {other.fortuna} = true
  6. {other.drops} = false
  7. {kopanie.rudy} = false
  8. {szansa.diament} = 0%
  9. {szansa.zelazo} = 0%
  10. {szansa.emerald} = 0%
  11. {szansa.zloto} = 0%
  12. {szansa.perla} = 0%
  13.  
  14. every 600 second:
  15. broadcast "&e[OtherDrops] &2Serwer Korzysta z &4OtherDrops Advanced by NewStyleGG"
  16.  
  17. # Ustawienie Fortuny DONE
  18. command /fortuna [<text>]:
  19. permission: other.control
  20. trigger:
  21. if arg 1 is not set:
  22. send "&4/fortuna [ON/OFF] &f- Wlaczenie lub wylaczenie fortuny"
  23. if arg 1 is "on" or "ON":
  24. set {other.fortuna} to true
  25. broadcast "&2&l%player% &cWlaczyl Fortune w OtherDrops"
  26. if arg 1 is "off" or "OFF":
  27. set {other.fortuna} to false
  28. broadcast "&2&l%player% &cWylaczyl Fortune w OtherDrops"
  29.  
  30.  
  31.  
  32.  
  33. # Wlaczenie Wydobyia z Rud
  34. command /rudy [<text>]:
  35. permission: other.control
  36. trigger:
  37. if arg 1 is not set:
  38. send "&4/rudy [ON/OFF] &f- Wlaczenie lub Wylaczenie dropu surowcow z rud"
  39. stop
  40. if arg 1 is "on" or "ON":
  41. set {kopanie.rudy} to true
  42. broadcast "&2&l%player% &cWlaczyl Drop Surowcow z Rud"
  43. stop
  44. if arg 1 is "off" or "OFF":
  45. set {kopanie.rudy} to false
  46. broadcast "&2&l%player% &cWylaczyl Drop Surowcow z Rud"
  47. stop
  48.  
  49. # Wlaczanie OtherDrops DONE
  50. command /otherdrops [<text>]:
  51. permission: other.control
  52. trigger:
  53. if arg 1 is not set:
  54. send "&4/otherdrops [ON/OFF] &f- wlaczenie lub wylaczenie OtherDrops"
  55. stop
  56. if arg 1 is "on" or "ON":
  57. set {other.drops} to true
  58. broadcast "&2&l%player% &cWlaczyl OtherDrops"
  59. if arg 1 is "off" or "OFF":
  60. set {other.drops} to false
  61. broadcast "&2&l%player% &cWylaczyl OtherDrops"
  62. # Ustawianie Szansy Dropy DONE
  63. command /szansa [<text>] [<number>]:
  64. permission: other.control
  65. trigger:
  66. if arg 1 is not set:
  67. send "&c/szansa [material] [liczba]"
  68. send "&cWpisz material przy jakim chcesz zmienisz szance dropu, materialy dostepne po komenda /materialy"
  69. stop
  70. # Ustawienie Szansy Diament DONE
  71. if arg 1 is "diament":
  72. if arg 2 is number:
  73. set {szansa.diament} to arg 2
  74. else:
  75. send "&cBledny material, Materialy dostepne pod komenda /materialy"
  76. stop
  77. # Ustawienie Szansy Zelazo DONE
  78. if arg 1 is "zelazo":
  79. if arg 2 is number:
  80. set {szansa.zelazo} to arg 2
  81. else:
  82. send "&cBledny material, Materialy dostepne pod komenda /materialy"
  83. stop
  84. # Ustawienie Szansy Emerald DONE
  85. if arg 1 is "emerald":
  86. if arg 2 is number:
  87. set {szansa.emerald} to arg 2
  88. else:
  89. send "&cBledny material, Materialy dostepne pod komenda /materialy"
  90. stop
  91. # UStawienie Szansy Zloto DONE
  92. if arg 1 is "zloto":
  93. if arg 2 is number:
  94. set {szansa.zloto} to arg 2
  95. else:
  96. send "&cBledny material, Materialy dostepne pod komenda /materialy"
  97. # Ustawienie Szansy Perla DONE
  98. if arg 1 is "perla":
  99. if arg 2 is number:
  100. set {szansa.perla} to arg 2
  101. else:
  102. send "&cBledny material, Materialy dostepne pod komenda /materialy"
  103.  
  104.  
  105.  
  106. # Drop DONE
  107.  
  108. on mine of {@blok}:
  109. # Drop Metalowym Kilofem DONE
  110. if player is holding iron pickaxe:
  111. chance of {szansa.diament}:
  112. drop 1 diamond
  113. send "Zdobyles Diament"
  114. chance of {szansa.emerald}:
  115. drop 1 emerald
  116. send "Zdobyles Emerald"
  117. chance of {szansa.zloto}:
  118. drop 1 gold ore
  119. send "Zdobyles Rude Zlota"
  120. # Drop Diamentowym Kilofem DONE
  121. if player is holding diamond pickaxe:
  122. chance of {szansa.diament}:
  123. drop 1 diamond
  124. send "Zdobyles Diament"
  125. chance of {szansa.zloto}:
  126. drop 1 gold ore
  127. send "Zdobyles Rude Zlota"
  128. chance of {szansa.emerald}:
  129. drop 1 emerald
  130. send "Zdobyles Emerald"
  131. chance of {szansa.perla}:
  132. drop 1 ender pearl
  133. send "Zdobyles Perle Endermana"
  134. # Drop Wszystkimi Kilofami DONE
  135. chance of {szansa.zelazo}:
  136. drop 1 iron ore
  137.  
  138. # Wiadomoc z Procentami DONE
  139. command /drop:
  140. trigger:
  141. send "&b&n@@@@@=- &9&n Szansa Dropu &b&n-=@@@@@"
  142. send ""
  143. send "&b&l=====-@ Diament @-====="
  144. send "&3 -Szansa dropu to %{szansa.diament}% procent"
  145. send "&3 -Zdobedziesz Zelaznym lub Diamentowym Kilofem"
  146. send "&7&l=====-@ Zelazo @-====="
  147. send "&3 -Szansa dropu to %{szansa.zelazo}% procent"
  148. send "&3 -Zdobedziesz Kazdym Kilofem"
  149. send "&2&l=====-@ Emerald @-====="
  150. send "&3 -Szansa dropu to %{szansa.emerald}% procent"
  151. send "&3 -Zdobedziesz Zelaznym lub Diamentowym Kilofem"
  152. send "&e&l=====-@ Zloto @-====="
  153. send "&3 -Szansa dropu to %{szansa.zloto}% procent"
  154. send "&3 -Zdobedziesz Zelaznym lub Diamentowym Kilofem"
  155. send "&7&l=====-@ Perla Endermana @-====="
  156. send "&3 -Szansa dropu to %{szansa.perla}% procent"
  157. send "&3 -Zdobedziesz tylko Diamentorym Kilofem"
  158.  
  159. # Dostepne Materialy w OtherDrops DONE
  160. command /materialy:
  161. permission: other.control
  162. trigger:
  163. send "&b -====- &3Dostepne Materialy &b-====-"
  164. send ""
  165. send "&bDiament"
  166. send "&7Zelazo"
  167. send "&2Emerald"
  168. send "&3Zloto"
  169. send "&7Perla"
  170. # Drop Surowcow z Rud DONE
  171. on mine of gold ore:
  172. if {kopanie.rudy} is false:
  173. cancel event
  174. set block to air
  175. send "Drop Surowcow z Rud jest Wylaczony"
  176. on mine of iron ore:
  177. if {kopanie.rudy} is false:
  178. cancel event
  179. set block to air
  180. send "Drop Surowcow z Rud jest wylaczony"
  181. on mine of diamond ore:
  182. if {kopanie.rudy} is false:
  183. cancel event
  184. set block to air
  185. send "Drop Surowcow z Rud jest wylaczony"
  186. on mine of emerald ore:
  187. if {kopanie.rudy} is false:
  188. cancel event
  189. set block to air
  190. send "Drop Surowcow z Rud jest wylaczony"
Advertisement
Add Comment
Please, Sign In to add comment