Fr0scik

Fr0stStone 0.1 Alpha!

Oct 19th, 2014
1,708
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.28 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.  
  45.  
  46. ################
  47. # KOD #
  48. ################
  49.  
  50.  
  51.  
  52. # Podstawowe komendy :)
  53.  
  54. # \/ - nie dotykaj
  55. command /stone [<player>]:
  56. permission: fs.stone
  57. permission message: &cNie masz uprawnien do tej komendy!
  58. trigger:
  59. open chest with 1 rows named "&8» &3Drop ze stone &8» " to arg 1
  60. wait 1 tick
  61. format slot 0 of player with 1 of diamond named "&8» &bDiamenty" with lore "&8» &3{@fd} &8procent" to be unstealable
  62. format slot 1 of player with 1 of emerald named "&8» &aEmeraldy" with lore "&8» &3{@fe} &eprocent" to be unstealable
  63. format slot 2 of player with 1 of gold ingot named "&8» &6Zloto" with lore "&8» &3{@fg} &eprocent" to be unstealable
  64. format slot 3 of player with 1 of iron ingot named "&8» &8Zelazo" with lore "&8» &3{@fi} &8procent" to be unstealable
  65. format slot 4 of player with 1 of coal named "&8» &0Wegiel" with lore "&8» &3{@fc} &8procent" to be unstealable
  66. format slot 5 of player with 1 of sand named "&8» &ePiasek" with lore "&8» &3{@fs} &8procent" to be unstealable
  67. format slot 6 of player with 1 of redstone named "&8» &4Redstone" with lore "&8» &3&90.5 &8procent" to be unstealable
  68. format slot 7 of player with 1 of ender pearl named "&8» &5Perla endermana" with lore "&8» &3{@fen} &8procent" to be unstealable
  69. format slot 8 of player with 1 of gunpowder named "&8» &7&lProch" with lore "&e★&9{@fgun} &8procent" to be unstealable
  70.  
  71. command /kamien:
  72. permission: fs.kamien
  73. permission message: &cNie masz uprawnien do tej komendy!
  74. trigger:
  75. execute player command "/stone %player%"
  76.  
  77. command /Fr0stStone <text>:
  78. usage: &8/fr0ststone &c[argument]
  79. permission: fs.admin
  80. permission message: &cNie masz uprawnien do tej komendy!
  81. trigger:
  82. if arg 1 is not set:
  83. send "&cPodaj argument!"
  84. if arg 1 is not "reload" or "autor":
  85. send "&cNie ma takiego argumentu!"
  86. if arg 1 is "reload":
  87. send "&3Restartowanie skryptu &8Fr0stStone..."
  88. execute player command "/sk reload Fr0stStone"
  89. wait 2 seconds
  90. send "&aFr0stStone pomyslnie zrestartowany!"
  91. if arg 1 is "autor":
  92. send "{@auth}"
  93.  
  94.  
  95.  
  96. # Drop ze stone | Ustawianie zeby z rud diamentu itp. nie wypadaly diamenty itp.
  97.  
  98. on mine of diamond ore or emerald ore or iron ore or gold ore:
  99. cancel event
  100. set block to air
  101. send " &8» &3Drop z tej rudy jest wylaczony!"
  102. send " &8» &3Aby zobaczyc procent szans na drop wpisz &8/kamien&3!"
  103. stop
  104.  
  105. # Główny kod
  106. on mine of stone:
  107. if player's gamemode is survival:
  108. if player's tool is pickaxe:
  109. chance of {@fi}%:
  110. give 1 iron ore to the player
  111. drop 10 xp
  112. chance of {@fg}%:
  113. give 1 gold ore to the player
  114. drop 5 xp
  115. chance of {@fd}%:
  116. give 1 diamond to the player
  117. drop 4 xp
  118. chance of {@fe}%:
  119. give 1 emerald to the player
  120. drop 4 xp
  121. chance of 0.5%:
  122. give 4 redstone to the player
  123. drop 4 xp
  124. chance of {@fgun}%:
  125. give 5 gunpowder to the player
  126. drop 5 xp
  127. chance of {@fc}%:
  128. give 1 coal to the player
  129. drop 13 xp
  130. chance of {@fen}%:
  131. give 1 ender pearl to the player
  132. drop 5 xp
  133. chance of {@fs}%:
  134. give 1 sand to the player
  135. drop 3 xp
  136. if player's tool is a diamond pickaxe of fortune 1 or fortune 2 or fortune 3:
  137. chance of {@fi}%:
  138. give a random number between 3 and 1 of iron ore to the player
  139. drop 10 xp
  140. chance of {@fg}%:
  141. give a random number between 3 and 1 of gold ore to the player
  142. drop 5 xp
  143. chance of {@fd}%:
  144. give a random number between 3 and 1 of diamond to the player
  145. drop 4 xp
  146. chance of {@fe}%:
  147. give a random number between 3 and 1 of emerald to the player
  148. drop 4 xp
  149. chance of 0.5%:
  150. give a random number between 5 and 1 of redstone to the player
  151. drop 4 xp
  152. chance of {@fgun}%:
  153. give a random number between 5 and 1 of gunpowder to the player
  154. drop 5 xp
  155. chance of {@fc}%:
  156. give a random number between 5 and 1 of coal to the player
  157. drop 13 xp
  158. chance of {@fen}%:
  159. give a random number between 3 and 1 of ender pearl to the player
  160. drop 5 xp
  161. chance of {@fs}%:
  162. give a random number between 3 and 1 of sand to the player
  163. drop 3 xp
Advertisement
Add Comment
Please, Sign In to add comment