dem232

Skript Drop v0.4

Jul 8th, 2013
1,477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.53 KB | None | 0 0
  1. #Skript Drop
  2. #Wersja 0.4
  3.  
  4. #Aby włączyć szmaragd użyj komendy albo w variables: zmień false na true (zalecane zmiana false na true)
  5.  
  6. #Opcje
  7. options:
  8. #Tag skryptu
  9. tag: &6[Drop]
  10.  
  11. #Ustawiasz na co ma się zmienić ruda po wykopaniu stone/air, air czyli ma zniknąć
  12. ustaw: air
  13.  
  14. #Procenty
  15. diamond: 0.5
  16. iron: 0.7
  17. gold: 0.6
  18. emerald: 0.6
  19.  
  20. #W komendzie drop
  21. prod: 0.5 #diamond
  22. proi: 0.7 #iron
  23. prog: 0.6 #gold
  24. proe: 0.6 #emerald
  25.  
  26. #Wysokosc wydobycia
  27. ydiamond: 20
  28. yiron: 100
  29. ygold: 40
  30. yemerald: 30
  31.  
  32. #Wiadomośći o wykopaniu
  33. msgd: &bWykopales diament #diamond
  34. msgi: &fWykopales zelazo #iron
  35. msgg: &eWykopales zloto #gold
  36. msge: &2Wykopales szmaragd #emerald
  37.  
  38. #Wiadomość Error
  39. errord: &4Diament wypada tylko ze stone wiecej info /drop! #diamond
  40. errori: &4Zelazo wypada tylko ze stone wiecej info /drop! #iron
  41. errorg: &4Zloto wypada tylko ze stone wiecej info /drop! #gold
  42. errore: &4Szmaragd wypada tylko ze stone wiecej info /drop! #emerald
  43.  
  44. #Wiadomosci przy wl/wyl
  45. offd: &bWylaczono wypadanie diamentu #diamond
  46. ond: &bWlaczono wypadanie diamentu #diamond
  47. offi: &fWylaczono wypadanie zelaza #iron
  48. oni: &fWlaczono wypadanie zelaza #iron
  49. offg: &eWylaczono wypadanie zlota #gold
  50. ong: &eWlaczono wypadanie zlota #gold
  51. offe: &2Wylaczono wypadanie szmaragdu #emerald
  52. one: &2Wlaczono wypadanie szmaragdu #emerald
  53.  
  54. #Nie ruszać, kiedy są aktywne
  55. variables:
  56. {vdiamond} = true #diamond
  57. {viron} = true #iron
  58. {vgold} = true #gold
  59. {vemerald} = false #emerald
  60.  
  61. #Zabespieczenie przed TNT
  62. on explode:
  63. if entity is TNT:
  64. loop blocks in radius 10:
  65. if loop-block is diamond ore:
  66. set loop-block to {@ustaw}
  67. if loop-block is gold ore:
  68. set loop-block to {@ustaw}
  69. if loop-block is iron ore:
  70. set loop-block to {@ustaw}
  71. if loop-block is emerald ore:
  72. set loop-block to {@ustaw}
  73.  
  74. #Drop z Stone
  75. On Mine Of Stone:
  76. if {vdiamond} is true:
  77. if player's y-coordinate is smaller than {@ydiamond}:
  78. chance of {@diamond}%:
  79. player's gamemode is survival
  80. message "{@tag} {@msgd}"
  81. drop a diamond
  82. stop
  83. if {viron} is true:
  84. if player's y-coordinate is smaller than {@yiron}:
  85. chance of {@iron}%:
  86. player's gamemode is survival
  87. message "{@tag} {@msgi}"
  88. drop a iron ore
  89. stop
  90. if {vgold} is true:
  91. if player's y-coordinate is smaller than {@ygold}:
  92. chance of {@gold}%:
  93. player's gamemode is survival
  94. message "{@tag} {@msgg}"
  95. drop a gold ore
  96. stop
  97. if {vemerald} is true:
  98. if player's y-coordinate is smaller than {@yemerald}:
  99. chance of {@emerald}%:
  100. player's gamemode is survival
  101. message "{@tag} {@msge}"
  102. drop a emerald
  103. stop
  104.  
  105. #Zablokowanie dropu z rud
  106. On Mine Of Diamond Ore:
  107. if {vdiamond} is true:
  108. cancel event
  109. set block to {@ustaw}
  110. message "{@tag} {@errord}"
  111. stop
  112.  
  113. On Mine Of Iron Ore:
  114. if {viron} is true:
  115. cancel event
  116. set block to {@ustaw}
  117. message "{@tag} {@errori}"
  118. stop
  119.  
  120. On Mine Of Gold Ore:
  121. if {vgold} is true:
  122. cancel event
  123. set block to {@ustaw}
  124. message "{@tag} {@errorg}"
  125. stop
  126. On Mine Of Emerald Ore:
  127. if {vemerald} is true:
  128. cancel event
  129. set block to {@ustaw}
  130. message "{@tag} {@errore}"
  131. stop
  132.  
  133. #Komendy
  134. command /drop:
  135. description: Pokazuje drop ze stone
  136. trigger:
  137. message "&2====={@tag}&2====="
  138. if {vdiamond} is true:
  139. message "&bDiament: {@prod} procent, wysokosc wydobycia ponizej y:{@ydiamond}"
  140. if {viron} is true:
  141. message "&fZelazo: {@proi} procent, wysokosc wydobycia ponizej y:{@yiron}"
  142. if {vgold} is true:
  143. message "&eZloto: {@prog} procent, wysokosc wydobycia ponizej y:{@ygold}"
  144. if {vemerald} is true:
  145. message "&2Szmaragd: {@proe} procent, wysokosc wydobycia ponizej y:{@yemerald}"
  146. message "&2====={@tag}&2====="
  147.  
  148. command /drops [<text>]:
  149. description: Wlaczanie i wylaczanie rud
  150. permission: drops.wliwyl
  151. trigger:
  152. if argument 1 is "diament":
  153. if {vdiamond} is true:
  154. set {vdiamond} to false
  155. message "{@tag} {@offd}"
  156. stop
  157. if {vdiamond} is false:
  158. set {vdiamond} to true
  159. message "{@tag} {@ond}"
  160. stop
  161. if argument 1 is "zelazo":
  162. if {viron} is true:
  163. set {viron} to false
  164. message "{@tag} {@offi}"
  165. stop
  166. if {viron} is false:
  167. set {viron} to true
  168. message "{@tag} {@oni}"
  169. stop
  170. if argument 1 is "zloto":
  171. if {vgold} is true:
  172. set {vgold} to false
  173. message "{@tag} {@offg}"
  174. stop
  175. if {vgold} is false:
  176. set {vgold} to true
  177. message "{@tag} {@ong}"
  178. stop
  179. if argument 1 is "szmaragd":
  180. if {vemerald} is true:
  181. set {vemerald} to false
  182. message "{@tag} {@offe}"
  183. stop
  184. if {vemerald} is false:
  185. set {vemerald} to true
  186. message "{@tag} {@one}"
  187. stop
  188. if argument 1 is "list":
  189. message "&2====={@tag}&2====="
  190. message "&bdiament"
  191. message "&fzelazo"
  192. message "&ezloto"
  193. message "&2szmaragd"
  194. message "&2====={@tag}&2====="
  195. stop
  196.  
  197. #Właczanie skryptu
  198. on Skript Start:
  199. send "" to the console
  200. send "&8--------------------------------------------------------------" to the console
  201. send "&8| |" to the console
  202. send "&8| Enable &2&lDrop &8 |" to the console
  203. send "&8| |" to the console
  204. send "&8--------------------------------------------------------------" to the console
  205. send "&8Autor: &2&ldem232" to the console
  206. send "&8Wersja: &70.4" to the console
  207. send "" to the console
  208. stop
Advertisement
Add Comment
Please, Sign In to add comment