dem232

Skript Drop v0.3

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