Fr0scik

Fr0stStone 0.2 Alpha UPDATE!

Oct 19th, 2014
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.17 KB | None | 0 0
  1. ################
  2. # AUTOR: Fr0st #
  3. ################
  4.  
  5. ################
  6. # WERSJA: 0.1a #
  7. ################
  8.  
  9. ################################################
  10. # NIE ZEZWALAM NA: #
  11. # Używanie kodu mojego skryptu, sprzedawanie #
  12. # skryptu, podszywanie sie pod autora, #
  13. # używanie skryptu w plikach serwerowych, #
  14. # #
  15. # #
  16. # #
  17. # #
  18. ################################################
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26. ################
  27. # OPCJE #
  28. ################
  29. # Konfiguracja #
  30. ################
  31. # \/ #
  32.  
  33.  
  34. options:
  35. fd: 1.5 # % wypadania diamentow ze stone
  36. fe: 1.8 # % wypadania emeraldow ze stone
  37. fg: 4.6 # % wypadania zlota ze stone
  38. fi: 5.6 # % wypadania zelaza ze stone
  39. fc: 9.6 # % wypadania węgla ze stone
  40. fs: 9.6 # % wypadania piasku ze stone
  41. fen: 1.6 # % wypadania perel endermana ze stone
  42. fgun: 2.6 # % wypadania prochu ze stone
  43. auth: &3Autor skryptu - &8&oFr0st
  44. yd: 25 # Poziom na którym możemy wykopać diament
  45. yem: 25 # Poziom na którym możemy wykopać emerald
  46. yir: 40 # Poziom na którym możemy wykopać zelazo
  47. ygold: 30 # Poziom na którym możemy wykopać zloto
  48. yrdst: 30 # Poziom na którym możemy wykopać redstone
  49.  
  50.  
  51.  
  52. ################
  53. # KOD #
  54. ################
  55.  
  56.  
  57.  
  58. # Podstawowe komendy :)
  59.  
  60. # \/ - nie dotykaj
  61. command /stone [<player>]:
  62. permission: fs.stone
  63. permission message: &cNie masz uprawnien do tej komendy!
  64. trigger:
  65. open chest with 1 rows named "&8» &3Drop ze stone &8» " to arg 1
  66. wait 1 tick
  67. format slot 0 of player with 1 of diamond named "&8» &bDiamenty" with lore "&8» &3{@fd} &8procent" to be unstealable
  68. format slot 1 of player with 1 of emerald named "&8» &aEmeraldy" with lore "&8» &3{@fe} &eprocent" to be unstealable
  69. format slot 2 of player with 1 of gold ingot named "&8» &6Zloto" with lore "&8» &3{@fg} &eprocent" to be unstealable
  70. format slot 3 of player with 1 of iron ingot named "&8» &8Zelazo" with lore "&8» &3{@fi} &8procent" to be unstealable
  71. format slot 4 of player with 1 of coal named "&8» &0Wegiel" with lore "&8» &3{@fc} &8procent" to be unstealable
  72. format slot 5 of player with 1 of sand named "&8» &ePiasek" with lore "&8» &3{@fs} &8procent" to be unstealable
  73. format slot 6 of player with 1 of redstone named "&8» &4Redstone" with lore "&8» &30.5 &8procent" to be unstealable
  74. format slot 7 of player with 1 of ender pearl named "&8» &5Perla endermana" with lore "&8» &3{@fen} &8procent" to be unstealable
  75. format slot 8 of player with 1 of gunpowder named "&8» &7&lProch" with lore "&8» &3{@fgun} &8procent" to be unstealable
  76.  
  77. command /kamien:
  78. permission: fs.kamien
  79. permission message: &cNie masz uprawnien do tej komendy!
  80. trigger:
  81. execute player command "/stone %player%"
  82.  
  83. command /Fr0stStone <text>:
  84. usage: &8/fr0ststone &c[argument]
  85. permission: fs.admin
  86. permission message: &cNie masz uprawnien do tej komendy!
  87. trigger:
  88. if arg 1 is not set:
  89. send "&cPodaj argument!"
  90. if arg 1 is not "reload" or "autor":
  91. send "&cNie ma takiego argumentu!"
  92. if arg 1 is "reload":
  93. send "&3Restartowanie skryptu &8Fr0stStone..."
  94. execute player command "/sk reload Fr0stStone"
  95. wait 2 seconds
  96. send "&aFr0stStone pomyslnie zrestartowany!"
  97. if arg 1 is "autor":
  98. send "{@auth}"
  99.  
  100.  
  101.  
  102. # Drop ze stone | Ustawianie zeby z rud diamentu itp. nie wypadaly diamenty itp.
  103.  
  104. on mine of diamond ore or emerald ore or iron ore or gold ore:
  105. cancel event
  106. set block to air
  107. send " &8» &3Drop z tej rudy jest wylaczony!"
  108. send " &8» &3Aby zobaczyc procent szans na drop wpisz &8/kamien&3!"
  109. stop
  110.  
  111. # Główny kod
  112. on mine of stone:
  113. if player's gamemode is survival:
  114. if player's tool is stone pickaxe or iron pickaxe or gold pickaxe or diamond pickaxe:
  115. chance of {@fi}%:
  116. if player's y-coordinate is smaller than {@yir}:
  117. give 1 iron ingot to the player
  118. drop 10 xp
  119. chance of {@fg}%:
  120. if player's y-coordinate is smaller than {@ygold}:
  121. give 1 gold ingot to the player
  122. drop 5 xp
  123. chance of {@fd}%:
  124. if player's y-coordinate is smaller than {@yd}:
  125. give 1 diamond to the player
  126. drop 4 xp
  127. chance of {@fe}%:
  128. if player's y-coordinate is smaller than {@yem}:
  129. give 1 emerald to the player
  130. drop 4 xp
  131. chance of 0.5%:
  132. if player's y-coordinate is smaller than {@yrdst}:
  133. give 4 redstone to the player
  134. drop 4 xp
  135. chance of {@fgun}%:
  136. give 5 gunpowder to the player
  137. drop 5 xp
  138. chance of {@fc}%:
  139. give 1 coal to the player
  140. drop 13 xp
  141. chance of {@fen}%:
  142. give 1 ender pearl to the player
  143. drop 5 xp
  144. chance of {@fs}%:
  145. give 1 sand to the player
  146. drop 3 xp
  147. if player's tool is a diamond pickaxe of fortune 1 or fortune 2 or fortune 3:
  148. chance of {@fi}%:
  149. if player's y-coordinate is smaller than {@yir}:
  150. give a random number between 3 and 1 of iron ingot to the player
  151. drop 10 xp
  152. chance of {@fg}%:
  153. if player's y-coordinate is smaller than {@ygold}:
  154. give a random number between 3 and 1 of gold ingot to the player
  155. drop 5 xp
  156. chance of {@fd}%:
  157. if player's y-coordinate is smaller than {@yd}:
  158. give a random number between 3 and 1 of diamond to the player
  159. drop 4 xp
  160. chance of {@fe}%:
  161. if player's y-coordinate is smaller than {@yem}:
  162. give a random number between 3 and 1 of emerald to the player
  163. drop 4 xp
  164. chance of 0.5%:
  165. if player's y-coordinate is smaller than {@yrdst}:
  166. give a random number between 5 and 1 of redstone to the player
  167. drop 4 xp
  168. chance of {@fgun}%:
  169. give a random number between 5 and 1 of gunpowder to the player
  170. drop 5 xp
  171. chance of {@fc}%:
  172. give a random number between 5 and 1 of coal to the player
  173. drop 13 xp
  174. chance of {@fen}%:
  175. give a random number between 3 and 1 of ender pearl to the player
  176. drop 5 xp
  177. chance of {@fs}%:
  178. give a random number between 3 and 1 of sand to the player
  179. drop 3 xp
Advertisement
Add Comment
Please, Sign In to add comment