Guest User

Drop ze Stone By PatyczaQPL v2.0

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