Guest User

PatyczaQSTONE.sk

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