Guest User

Drop ze Stone By PatyczaQPL v1.5

a guest
Oct 20th, 2014
1,720
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.03 KB | None | 0 0
  1. variables:
  2. {diamenty.%player%} = 0
  3. {emeraldy.%player%} = 0
  4. {zelazo.%player%} = 0
  5. {zloto.%player%} = 0
  6. {gunpowder.%player%} = 0
  7. {enderpearl.%player%} = 0
  8. {apple.%player%} = 0
  9. {redstone.%player%} = 0
  10. {lapis.%player%} = 0
  11. {wegiel.%player%} = 0
  12. {piasek.%player%} = 0
  13. {wykopanystone.%player%} = 0
  14. {dropcobble.%player%} = true
  15.  
  16.  
  17. options:
  18. szansa_diament: 0.75
  19. szansa_emerald: 0.50
  20. szansa_zelazo: 1.50
  21. szansa_zloto: 0.25
  22. szansa_gunpowder: 2.50
  23. szansa_apple: 0.75
  24. szansa_enderpearl: 0.50
  25. szansa_redstone: 2.75
  26. szansa_lapis: 2.75
  27. szansa_wegiel: 3
  28. szansa_piasek: 50
  29.  
  30. wysokosc_diament: 25
  31. wysokosc_emerald: 25
  32. wysokosc_zelazo: 65
  33. wysokosc_zloto: 25
  34. wysokosc_gunpowder: 45
  35. wysokosc_apple: 45
  36. wysokosc_enderpearl: 25
  37. wysokosc_redstone: 50
  38. wysokosc_lapis: 50
  39. wysokosc_wegiel: 60
  40. wysokosc_piasek: 60
  41.  
  42. on mine of stone:
  43. if {dropcobble.%player%} = false:
  44. cancel event
  45. send "&cDrop cobbla ze stone jest wylaczony!"
  46. delete block
  47. stop
  48. if {dropcobble.%player%} = true:
  49. delete block
  50.  
  51.  
  52. on mine of stone:
  53. chance of 100%
  54. add 1 xp to the player
  55.  
  56.  
  57. on mine of stone:
  58. if player's gamemode is survival:
  59. add 1 to {wykopanystone.%player%}
  60.  
  61. chance of {@szansa_diament}%
  62. if player's y-coordinate is smaller than {@wysokosc_diament}:
  63. drop 1 diamond
  64. add 1 to {diamenty.%player%}
  65. send "&7&lZnalazles: &b&lDiament!"
  66.  
  67. chance of {@szansa_emerald}%
  68. if player's y-coordinate is smaller than {@wysokosc_emerald}:
  69. drop 1 emerald
  70. add 1 to {emeraldy.%player%}
  71. send "&7&lZnalazles: &2&lEmerald!"
  72.  
  73. chance of {@szansa_zelazo}%
  74. if player's y-coordinate is smaller than {@wysokosc_zelazo}:
  75. drop 1 iron ore
  76. add 1 to {zelazo.%player%}
  77. send "&7&lZnalazles: &1&8Zelazo"
  78.  
  79. chance of {@szansa_zloto}%
  80. if player's y-coordinate is smaller than {@wysokosc_zloto}:
  81. drop 1 gold ore
  82. add 1 to {zloto.%player%}
  83. send "&7&lZnalazles: &6&lZloto"
  84.  
  85. chance of {@szansa_gunpowder}%
  86. if player's y-coordinate is smaller than {@wysokosc_gunpowder}:
  87. drop 1 gunpowder
  88. add 1 to {gunpowder.%player%}
  89. send "&7&lZnalazles: &9&lProch"
  90.  
  91. chance of {@szansa_enderpearl}%
  92. if player's y-coordinate is smaller than {@wysokosc_enderpearl}:
  93. drop 1 ender pearl
  94. add 1 to {enderpearl.%player%}
  95. send "&7&lZnalazles: &1&2Enderperle!"
  96.  
  97. chance of {@szansa_apple}%
  98. if player's y-coordinate is smaller than {@wysokosc_apple}:
  99. drop 1 apple
  100. add 1 to {apple.%player%}
  101. send "&7&lZnalazles: &4&lJablko!"
  102.  
  103. chance of {@szansa_redstone}%
  104. if player's y-coordinate is smaller than {@wysokosc_redstone}:
  105. drop a random number between 4 and 1 of redstone
  106. add 1 to {redstone.%player%}
  107. send "&7&lZnalazles: &4&lRedstone'a!"
  108.  
  109. chance of {@szansa_lapis}%
  110. if player's y-coordinate is smaller than {@wysokosc_lapis}:
  111. drop a random number between 4 and 1 of lapis lazuli
  112. add 1 to {lapis.%player%}
  113. send "&7&lZnalazles: &1&lLapis!"
  114.  
  115. chance of {@szansa_wegiel}%
  116. if player's y-coordinate is smaller than {@wysokosc_wegiel}:
  117. drop 1 coal
  118. add 1 to {wegiel.%player%}
  119. send "&7&lZnalazles: &0&lWegiel!"
  120.  
  121. if player's tool is a diamond pickaxe of fortune 1:
  122. chance of {@szansa_diament}%
  123. if player's y-coordinate is smaller than {@wysokosc_diament}:
  124. drop a random number between 3 and 2 of diamond
  125. add 1 to {diamenty.%player%}
  126. send "&7&lZnalazles: &b&lDiamenty!"
  127.  
  128.  
  129. chance of {@szansa_emerald}%
  130. if player's y-coordinate is smaller than {@wysokosc_emerald}:
  131. drop a random number between 3 and 2 of emerald
  132. add 1 to {emeraldy.%player%}
  133. send "&7&lZnalazles: &2&lEmeraldy!"
  134.  
  135. chance of {@szansa_zelazo}%
  136. if player's y-coordinate is smaller than {@wysokosc_zelazo}:
  137. drop a random number between 3 and 2 of iron ore
  138. add 1 to {zelazo.%player%}
  139. send "&7&lZnalazles: &8&lZelazo!"
  140.  
  141. chance of {@szansa_zloto}%
  142. if player's y-coordinate is smaller than {@wysokosc_zloto}:
  143. drop a random number between 3 and 2 of emerald
  144. add 1 to {zloto.%player%}
  145. send "&7&lZnalazles: &6&lZloto!"
  146.  
  147. chance of {@szansa_gunpowder}%
  148. if player's y-coordinate is smaller than {@wysokosc_gunpowder}:
  149. drop a random number between 3 and 2 of gunpowder
  150. add 1 to {gunpowder.%player%}
  151. send "&7&lZnalazles: &8&lProch!"
  152.  
  153. chance of {@szansa_apple}%
  154. if player's y-coordinate is smaller than {@wysokosc_apple}:
  155. drop a random number between 3 and 2 of apple
  156. add 1 to {apple.%player%}
  157. send "&7&lZnalazles: &4&lJablka!"
  158.  
  159. chance of {@szansa_enderpearl}%
  160. if player's y-coordinate is smaller than {@wysokosc_enderpearl}:
  161. drop a random number between 3 and 2 of ender pearl
  162. add 1 to {enderpearl.%player%}
  163. send "&7&lZnalazles: &a&lEnderperly!"
  164.  
  165. chance of {@szansa_redstone}%
  166. if player's y-coordinate is smaller than {@wysokosc_redstone}:
  167. drop a random number between 5 and 4 of redstone
  168. add 1 to {redstone.%player%}
  169. send "&7&lZnalazles: &4&lRedstone'a!"
  170.  
  171. chance of {@szansa_lapis}%
  172. if player's y-coordinate is smaller than {@wysokosc_lapis}:
  173. drop a random number between 5 and 4 of lapis lazuli
  174. add 1 to {lapis.%player%}
  175. send "&7&lZnalazles: &1&lLapis!"
  176.  
  177. chance of {@szansa_wegiel}%
  178. if player's y-coordinate is smaller than {@wysokosc_wegiel}:
  179. drop a random number between 3 and 2 of coal
  180. add 1 to {wegiel.%player%}
  181. send "&7&lZnalazles: &0&lWegiel!"
  182.  
  183. if player's tool is a diamond pickaxe of fortune 2:
  184. chance of {@szansa_diament}%
  185. if player's y-coordinate is smaller than {@wysokosc_diament}:
  186. drop a random number between 4 and 3 of diamond
  187. add 1 to {diamenty.%player%}
  188. send "&7&lZnalazles: &b&lDiamenty!"
  189.  
  190. chance of {@szansa_emerald}%
  191. if player's y-coordinate is smaller than {@wysokosc_emerald}:
  192. drop a random number between 4 and 3 of emerald
  193. add 1 to {emeraldy.%player%}
  194. send "&7&lZnalazles: &2&lEmeraldy!"
  195.  
  196. chance of {@szansa_zelazo}%
  197. if player's y-coordinate is smaller than {@wysokosc_zelazo}:
  198. drop a random number between 4 and 3 of iron ore
  199. add 1 to {zelazo.%player%}
  200. send "&7&lZnalazles: &8&lZelazo!"
  201.  
  202. chance of {@szansa_zloto}%
  203. if player's y-coordinate is smaller than {@wysokosc_zloto}:
  204. drop a random number between 4 and 3 of emerald
  205. add 1 to {zloto.%player%}
  206. send "&7&lZnalazles: &6&lZloto!"
  207.  
  208. chance of {@szansa_gunpowder}%
  209. if player's y-coordinate is smaller than {@wysokosc_gunpowder}:
  210. drop a random number between 4 and 3 of gunpowder
  211. add 1 to {gunpowder.%player%}
  212. send "&7&lZnalazles: &8&lProch!"
  213.  
  214. chance of {@szansa_apple}%
  215. if player's y-coordinate is smaller than {@wysokosc_apple}:
  216. drop a random number between 4 and 3 of apple
  217. add 1 to {apple.%player%}
  218. send "&7&lZnalazles: &4&lJablka!"
  219.  
  220. chance of {@szansa_enderpearl}%
  221. if player's y-coordinate is smaller than {@wysokosc_enderpearl}:
  222. drop a random number between 4 and 3 of ender pearl
  223. add 1 to {enderpearl.%player%}
  224. send "&7&lZnalazles: &a&lEnderperly!"
  225.  
  226. chance of {@szansa_redstone}%
  227. if player's y-coordinate is smaller than {@wysokosc_redstone}:
  228. drop a random number between 6 and 5 of redstone
  229. add 1 to {redstone.%player%}
  230. send "&7&lZnalazles: &4&lRedstone'a!"
  231.  
  232. chance of {@szansa_redstone}%
  233. if player's y-coordinate is smaller than {@wysokosc_redstone}:
  234. drop a random number between 6 and 5 of redstone
  235. add 1 to {redstone.%player%}
  236. send "&7&lZnalazles: &4&lRedstone'a!"
  237.  
  238. chance of {@szansa_lapis}%
  239. if player's y-coordinate is smaller than {@wysokosc_lapis}:
  240. drop a random number between 6 and 5 of lapis lazuli
  241. add 1 to {lapis.%player%}
  242. send "&7&lZnalazles: &1&lLapis!"
  243.  
  244. if player's tool is a diamond pickaxe of fortune 3:
  245. chance of {@szansa_diament}%
  246. if player's y-coordinate is smaller than {@wysokosc_diament}:
  247. drop a random number between 5 and 4 of diamond
  248. add 1 to {diamenty.%player%}
  249. send "&7&lZnalazles: &b&lDiamenty!"
  250.  
  251. chance of {@szansa_piasek}%
  252. if player's y-coordinate is smaller than {@wysokosc_piasek}:
  253. drop a random number between 5 and 4 of sand
  254. add 1 to {piasek.%player%}
  255. send "&7&lZnalazles: &6&lPiasek!"
  256.  
  257. chance of {@szansa_emerald}%
  258. if player's y-coordinate is smaller than {@wysokosc_emerald}:
  259. drop a random number between 5 and 4 of emerald
  260. add 1 to {emeraldy.%player%}
  261. send "&7&lZnalazles: &2&lEmeraldy!"
  262.  
  263. chance of {@szansa_zelazo}%
  264. if player's y-coordinate is smaller than {@wysokosc_zelazo}:
  265. drop a random number between 5 and 4 of iron ore
  266. add 1 to {zelazo.%player%}
  267. send "&7&lZnalazles: &8&lZelazo!"
  268.  
  269. chance of {@szansa_zloto}%
  270. if player's y-coordinate is smaller than {@wysokosc_zloto}:
  271. drop a random number between 5 and 4 of emerald
  272. add 1 to {zloto.%player%}
  273. send "&7&lZnalazles: &6&lZloto!"
  274.  
  275. chance of {@szansa_gunpowder}%
  276. if player's y-coordinate is smaller than {@wysokosc_gunpowder}:
  277. drop a random number between 5 and 4 of gunpowder
  278. add 1 to {gunpowder.%player%}
  279. send "&7&lZnalazles: &8&lProch!"
  280.  
  281. chance of {@szansa_apple}%
  282. if player's y-coordinate is smaller than {@wysokosc_apple}:
  283. drop a random number between 5 and 4 of apple
  284. add 1 to {apple.%player%}
  285. send "&7&lZnalazles: &4&lJablka!"
  286.  
  287. chance of {@szansa_enderpearl}%
  288. if player's y-coordinate is smaller than {@wysokosc_enderpearl}:
  289. drop a random number between 5 and 4 of ender pearl
  290. add 1 to {enderpearl.%player%}
  291. send "&7&lZnalazles: &a&lEnderperly!"
  292.  
  293. chance of {@szansa_redstone}%
  294. if player's y-coordinate is smaller than {@wysokosc_redstone}:
  295. drop a random number between 6 and 5 of redstone
  296. add 1 to {redstone.%player%}
  297. send "&7&lZnalazles: &4&lRedstone'a!"
  298.  
  299. chance of {@szansa_lapis}%
  300. if player's y-coordinate is smaller than {@wysokosc_lapis}:
  301. drop a random number between 6 and 5 of lapis lazuli
  302. add 1 to {lapis.%player%}
  303. send "&7&lZnalazles: &1&lLapis!"
  304.  
  305. chance of {@szansa_wegiel}%
  306. if player's y-coordinate is smaller than {@wysokosc_wegiel}:
  307. drop a random number between 5 and 4 of coal
  308. add 1 to {wegiel.%player%}
  309. send "&7&lZnalazles: &0&lWegiel!"
  310.  
  311. on mine of any ore:
  312. cancel event
  313. drop 1 stone
  314. set block to air
  315. send "&a&lTen surowiec dropi tylko ze stone! Wiecej Informacji: /stone"
  316.  
  317. on mine of emerald ore:
  318. cancel event
  319. drop 1 stone
  320. set block to air
  321. send "&a&lTen surowiec dropi tylko ze stone! Wiecej Informacji: /stone"
  322.  
  323.  
  324. command /stone [<player>]:
  325. trigger:
  326. open chest with 1 rows named "&8» &3Drop ze stone &8» " to arg 1
  327. wait 1 tick
  328. format SLOT 0 of player with 1 of diamond named "&8» &bDiamenty" with lore "&8» &3{@szansa_diament} &a&lProcent" to be unstealable
  329. format slot 1 of player with 1 of emerald named "&8» &aEmeraldy" with lore "&8» &3{@szansa_emerald} &a&lProcent" to be unstealable
  330. format slot 2 of player with 1 of gold ingot named "&8» &6Zloto" with lore "&8» &3{@szansa_zloto} &a&lProcent" to be unstealable
  331. format slot 3 of player with 1 of iron ingot named "&8» &8Zelazo" with lore "&8» &3{@szansa_zelazo} &a&lProcent" to be unstealable
  332. format slot 4 of player with 1 of stone named "&4>>&3<<" to be unstealable
  333. format slot 5 of player with 1 of coal named "&8» &0Wegiel" with lore "&8» &3{@szansa_wegiel} &a&lProcent" to be unstealable
  334. format slot 6 of player with 1 of redstone named "&8» &4Redstone" with lore "&8» &3{@szansa_wegiel} &a&lProcent" to be unstealable
  335. format slot 7 of player with 1 of ender pearl named "&8» &5Perla endermana" with lore "&8» &3{@szansa_enderpearl} &a&lProcent" to be unstealable
  336. format slot 8 of player with 1 of gunpowder named "&8» &7&lProch" with lore "&8» &3{@szansa_gunpowder} &a&lProcent" to be unstealable
  337.  
  338. command /cobblestone [<text>]:
  339. trigger:
  340. arg 1 is "wlacz":
  341. set {dropcobble.%player%} to true
  342. arg 1 is "wylacz":
  343. set {dropcobble.%player%}} to false
  344.  
  345. command /statystyki [<text>]:
  346. aliases: staty
  347. trigger:
  348. if arg 1 is not set:
  349. send "&7Wykopane &bDiamenty: &7%{diamenty.%player%}%"
  350. send "&7Wykopane &eZloto: &7%{zloto.%player%}%"
  351. send "&7Wykopane &8Zelazo: &7%{zelazo.%player%}%"
  352. send "&7Wykopany &0Wegiel: &7%{wegiel.%player%}%"
  353. send "&7Wykopane &aEmeraldy: &7%{emeraldy.%player%}%"
  354. send "&7Wykopane &7Proch: &7%{gunpowder.%player%}%"
  355. send "&7Wykopane &cRedstone: &7%{redstone.%player%}%"
  356. send "&7Wykopane &9Lapis: &7%{lapis.%player%}%"
  357. send "&7Wykopany &6STONE: &7%{wykopanystone.%player%}%"
  358. if arg 1 is set:
  359. if arg 1 is player:
  360. send "&8====================="
  361. send "&7Gracz: &6&o%arg 1%"
  362. send "&7Wykopane &bDiamenty: &7%{diamenty.%arg 1%}%"
  363. send "&7Wykopane &eZloto: &7%{zloto.%arg 1%}%"
  364. send "&7Wykopane &8Zelazo: &7%{zelazo.%arg 1%}%"
  365. send "&7Wykopany &0Wegiel: &7%{wegiel.%arg 1%}%"
  366. send "&7Wykopane &aEmeraldy: &7%{emeraldy.%arg 1%}%"
  367. send "&7Wykopane &7Proch: &7%{gunpowder.%arg 1%}%"
  368. send "&7Wykopane &cRedstone: &7%{redstone.%arg 1%}%"
  369. send "&7Wykopane &9Lapis: &7%{lapis.%arg 1%}%"
  370. send "&7Wykopany &6STONE: &7%{wykopanystone.%arg 1%}%"
  371. else:
  372. send "&cTakiego gracza nie ma na serwerze!"
Advertisement
Add Comment
Please, Sign In to add comment