Guest User

OtherDrops Advced by NewStyleGG v1.1

a guest
Jan 11th, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.52 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. if {other.drops} is true:
  110. # Drop Metalowym Kilofem DONE
  111. if player is holding iron pickaxe:
  112. chance of {szansa.diament}%:
  113. drop 1 diamond
  114. send "Zdobyles Diament"
  115. chance of {szansa.emerald}%:
  116. drop 1 emerald
  117. send "Zdobyles Emerald"
  118. chance of {szansa.zloto}%:
  119. drop 1 gold ore
  120. send "Zdobyles Rude Zlota"
  121. # Drop Diamentowym Kilofem DONE
  122. if player is holding diamond pickaxe:
  123. chance of {szansa.diament}%:
  124. drop 1 diamond
  125. send "Zdobyles Diament"
  126. chance of {szansa.zloto}%:
  127. drop 1 gold ore
  128. send "Zdobyles Rude Zlota"
  129. chance of {szansa.emerald}%:
  130. drop 1 emerald
  131. send "Zdobyles Emerald"
  132. chance of {szansa.perla}%:
  133. drop 1 ender pearl
  134. send "Zdobyles Perle Endermana"
  135. # Drop Wszystkimi Kilofami DONE
  136. chance of {szansa.zelazo}%:
  137. drop 1 iron ore
  138.  
  139. # Wiadomoc z Procentami DONE
  140. command /drop:
  141. trigger:
  142. send "&b&n@@@@@=- &9&n Szansa Dropu &b&n-=@@@@@"
  143. send ""
  144. send "&b&l=====-@ Diament @-====="
  145. send "&3 -Szansa dropu to %{szansa.diament}% procent"
  146. send "&3 -Zdobedziesz Zelaznym lub Diamentowym Kilofem"
  147. send "&7&l=====-@ Zelazo @-====="
  148. send "&3 -Szansa dropu to %{szansa.zelazo}% procent"
  149. send "&3 -Zdobedziesz Kazdym Kilofem"
  150. send "&2&l=====-@ Emerald @-====="
  151. send "&3 -Szansa dropu to %{szansa.emerald}% procent"
  152. send "&3 -Zdobedziesz Zelaznym lub Diamentowym Kilofem"
  153. send "&e&l=====-@ Zloto @-====="
  154. send "&3 -Szansa dropu to %{szansa.zloto}% procent"
  155. send "&3 -Zdobedziesz Zelaznym lub Diamentowym Kilofem"
  156. send "&7&l=====-@ Perla Endermana @-====="
  157. send "&3 -Szansa dropu to %{szansa.perla}% procent"
  158. send "&3 -Zdobedziesz tylko Diamentorym Kilofem"
  159.  
  160. # Dostepne Materialy w OtherDrops DONE
  161. command /materialy:
  162. permission: other.control
  163. trigger:
  164. send "&b -====- &3Dostepne Materialy &b-====-"
  165. send ""
  166. send "&bDiament"
  167. send "&7Zelazo"
  168. send "&2Emerald"
  169. send "&3Zloto"
  170. send "&7Perla"
  171.  
  172.  
  173. # Drop Surowcow z Rud DONE
  174. on mine of gold ore:
  175. if {kopanie.rudy} is false:
  176. cancel event
  177. set block to air
  178. send "Drop Surowcow z Rud jest Wylaczony"
  179. on mine of iron ore:
  180. if {kopanie.rudy} is false:
  181. cancel event
  182. set block to air
  183. send "Drop Surowcow z Rud jest wylaczony"
  184. on mine of diamond ore:
  185. if {kopanie.rudy} is false:
  186. cancel event
  187. set block to air
  188. send "Drop Surowcow z Rud jest wylaczony"
  189. on mine of emerald ore:
  190. if {kopanie.rudy} is false:
  191. cancel event
  192. set block to air
  193. send "Drop Surowcow z Rud jest wylaczony"
Advertisement
Add Comment
Please, Sign In to add comment