knugi

Untitled

Jul 21st, 2015
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.51 KB | None | 0 0
  1. variables:
  2. {drop} = true
  3. {lvl.%player%} = 1
  4. {pkt.%player%} = 0
  5. {cb.%player%} = true
  6. {chat.%player%} = false
  7. command /punkty:
  8. aliases: pkt, poziom, lvl
  9. trigger:
  10. send " &7##&6=============&7## &6PUNKTY &7##&6=============&7##"
  11. send " &6» &7Posiadasz: &6%{pkt.%player%}% &7pkt"
  12. send " &6» &7Posiadasz: &6%{lvl.%player%}% &7poziom"
  13. send " &7##&6=============&7## &6PUNKTY &7##&6=============&7##"
  14. stop
  15. command /cobblestone:
  16. trigger:
  17. if {cb.%player%} is true:
  18. set {cb.%player%} to false
  19. send " &6» &7Wylaczyles drop cobblestone!"
  20. stop
  21. if {cb.%player%} is false:
  22. set {cb.%player%} to true
  23. send " &6» &7Wlaczyles drop cobblestone!"
  24. stop
  25. options:
  26. yd: 60 # Minimalny poziom Y aby wykopac diament
  27. dc: 2.0 # Szansa na diament
  28. ye: 60 # Minimalny poziom Y aby wykopac emerald
  29. ec: 2.0 # Szansa na emerald
  30. yg: 60 # Minimalny poziom Y aby wykopac rude zlota
  31. gc: 3.2 # Szansa na zloto
  32. yi: 60 # Minimalny poziom Y aby wykopac rude zelaza
  33. ic: 4.0 # Szansa na zelazo
  34. yep: 60 # Minimalny poziom Y aby wykopac perle endermana
  35. epc: 0.1 # Szansa na perle endermana
  36. ydv: 60 # Minimalny poziom Y aby wykopac diament
  37. dcv: 3.0 # Szansa na diament
  38. yev: 60 # Minimalny poziom Y aby wykopac emerald
  39. ecv: 3.0 # Szansa na emerald
  40. ygv: 60 # Minimalny poziom Y aby wykopac rude zlota
  41. gcv: 5.0 # Szansa na zloto
  42. yiv: 60 # Minimalny poziom Y aby wykopac rude zelaza
  43. icv: 6.0 # Szansa na zelazo
  44. yepv: 60 # Minimalny poziom Y aby wykopac perle endermana
  45. epcv: 0.1 # Szansa na perle endermana
  46. on explode:
  47. if {drop} is true:
  48. loop blocks in radius 10:
  49. if loop-block is diamond ore:
  50. set loop-block to air
  51. if loop-block is emerald ore:
  52. set loop-block to air
  53. if loop-block is gold ore:
  54. set loop-block to air
  55. if loop-block is iron ore:
  56. set loop-block to air
  57. on mine of diamond ore:
  58. if {drop} is true:
  59. cancel event
  60. set block to air
  61. send " &6» &7Drop z tej rudy jest wylaczony!"
  62. send " &6» &7Aby zobaczyc %% szans na drop wpisz &6/drop&7!"
  63. stop
  64. else:
  65. stop
  66. on mine of emerald ore:
  67. if {drop} is true:
  68. cancel event
  69. set block to air
  70. send " &6» &7Drop z tej rudy jest wylaczony!"
  71. send " &6» &7Aby zobaczyc %% szans na drop wpisz &6/drop&7!"
  72. stop
  73. else:
  74. stop
  75. on mine of gold ore:
  76. if {drop} is true:
  77. cancel event
  78. set block to air
  79. send " &6» &7Drop z tej rudy jest wylaczony!"
  80. send " &6» &7Aby zobaczyc %% szans na drop wpisz &6/drop&7!"
  81. stop
  82. else:
  83. stop
  84. on mine of iron ore:
  85. if {drop} is true:
  86. cancel event
  87. set block to air
  88. send " &6» &7Drop z tej rudy jest wylaczony!"
  89. send " &6» &7Aby zobaczyc %% szans na drop wpisz &6/drop&7!"
  90. stop
  91. else:
  92. stop
  93. on chat:
  94. set the player's display name to "&7[&6%{lvl.%player%}%&7] &7%player%"
  95. on mine of stone:
  96. if {drop} is true:
  97. cancel event
  98. set block to air
  99. damage player's tool by 1
  100. if player has permission "xmhc.vip":
  101. if {cb.%player%} is true:
  102. drop 1 cobblestone
  103. give 2 xp to the player
  104. if chance of 100%:
  105. if chance of {@epcv}%:
  106. if player's y-coordinate is less than {@yepv}:
  107. if player is holding diamond pickaxe or iron pickaxe:
  108. if player can hold ender pearl:
  109. give 1 ender pearl to the player
  110. give 25 xp to the player
  111. add 26 to {pkt.%player%}
  112. send " &6» &7Trafiles na: &6perle endermana &7(&6+26 pkt&7)"
  113. stop
  114. else:
  115. drop 1 ender pearl
  116. give 25 xp to the player
  117. add 26 to {pkt.%player%}
  118. send " &6» &7Trafiles na: &6perle endermana &7(&6+26 pkt&7)"
  119. stop
  120. if chance of {@icv}%:
  121. if player's y-coordinate is less than {@yepv}:
  122. if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
  123. if player can hold iron ore:
  124. give 1 iron ore to the player
  125. give 2 xp to the player
  126. add 3 to {pkt.%player%}
  127. send " &6» &7Trafiles na: &6rude zelaza &7(&6+3 pkt&7)"
  128. stop
  129. else:
  130. drop 1 iron ore
  131. give 2 xp to the player
  132. add 3 to {pkt.%player%}
  133. send " &6» &7Trafiles na: &6rude zelaza &7(&6+3 pkt&7)"
  134. stop
  135. if chance of {@gcv}%:
  136. if player's y-coordinate is less than {@yepv}:
  137. if player is holding diamond pickaxe or iron pickaxe:
  138. if player can hold gold ore:
  139. give 1 gold ore to the player
  140. give 5 xp to the player
  141. add 6 to {pkt.%player%}
  142. send " &6» &7Trafiles na: &6rude zlota &7(&6+6 pkt&7)"
  143. stop
  144. else:
  145. drop 1 gold ore
  146. give 5 xp to the player
  147. add 6 to {pkt.%player%}
  148. send " &6» &7Trafiles na: &6rude zlota &7(&6+6 pkt&7)"
  149. stop
  150. if chance of {@ecv}%:
  151. if player's y-coordinate is less than {@yepv}:
  152. if player's biome is extreme hills:
  153. if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
  154. if player can hold emerald:
  155. give 1 emerald to the player
  156. give 4 xp to the player
  157. add 5 to {pkt.%player%}
  158. send " &6» &7Trafiles na: &6emerald &7(&6+5 pkt&7)"
  159. stop
  160. else:
  161. drop 1 emerald
  162. give 4 xp to the player
  163. add 5 to {pkt.%player%}
  164. send " &6» &7Trafiles na: &6emerald &7(&6+5 pkt&7)"
  165. stop
  166. if chance of {@dcv}%:
  167. if player's y-coordinate is less than {@yd}:
  168. if player is holding diamond pickaxe of fortune 3 or iron pickaxe of fortune 3:
  169. chance of 30%:
  170. if player can hold 2 diamond:
  171. give 2 diamond to the player
  172. give 12 xp to the player
  173. add 13 to {pkt.%player%}
  174. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  175. stop
  176. else:
  177. drop 2 diamond
  178. give 12 xp to the player
  179. add 13 to {pkt.%player%}
  180. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  181. stop
  182. chance of 20%:
  183. if player can hold 3 diamond:
  184. give 3 diamond to the player
  185. give 17 xp to the player
  186. add 18 to {pkt.%player%}
  187. send " &6» &7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  188. stop
  189. else:
  190. drop 3 diamond
  191. give 17 xp to the player
  192. add 18 to {pkt.%player%}
  193. send " &6» &7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  194. stop
  195. chance of 10%:
  196. if player can hold 4 diamond:
  197. give 4 diamond to the player
  198. give 26 xp to the player
  199. add 27 to {pkt.%player%}
  200. send " &6» &7Trafiles na: &64 diamenty &7(&6+27 pkt&7)"
  201. stop
  202. else:
  203. drop 4 diamond
  204. give 26 xp to the player
  205. add 27 to {pkt.%player%}
  206. send " &6» &7Trafiles na: &64 diamenty &7(&6+27 pkt&7)"
  207. stop
  208. else:
  209. if player can hold diamond:
  210. give 1 diamond to the player
  211. give 6 xp to the player
  212. add 7 to {pkt.%player%}
  213. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  214. stop
  215. else:
  216. drop 1 diamond
  217. give 6 xp to the player
  218. add 7 to {pkt.%player%}
  219. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  220. stop
  221. if player is holding diamond pickaxe of fortune 2 or iron pickaxe of fortune 2:
  222. chance of 30%:
  223. if player can hold 2 diamond:
  224. give 2 diamond to the player
  225. give 12 xp to the player
  226. add 13 to {pkt.%player%}
  227. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  228. stop
  229. else:
  230. drop 2 diamond
  231. give 12 xp to the player
  232. add 13 to {pkt.%player%}
  233. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  234. stop
  235. chance of 20%:
  236. if player can hold 3 diamond:
  237. give 3 diamond to the player
  238. give 17 xp to the player
  239. add 18 to {pkt.%player%}
  240. send " &6» &7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  241. stop
  242. else:
  243. drop 3 diamond
  244. give 17 xp to the player
  245. add 18 to {pkt.%player%}
  246. send " &6» &7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  247. stop
  248. else:
  249. if player can hold diamond:
  250. give 1 diamond to the player
  251. give 6 xp to the player
  252. add 7 to {pkt.%player%}
  253. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  254. stop
  255. else:
  256. drop 1 diamond
  257. give 6 xp to the player
  258. add 7 to {pkt.%player%}
  259. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  260. stop
  261. if player is holding diamond pickaxe of fortune 1 or iron pickaxe of fortune 1:
  262. chance of 30%:
  263. if player can hold 2 diamond:
  264. give 2 diamond to the player
  265. give 12 xp to the player
  266. add 13 to {pkt.%player%}
  267. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  268. stop
  269. else:
  270. drop 2 diamond
  271. give 12 xp to the player
  272. add 13 to {pkt.%player%}
  273. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  274. stop
  275. else:
  276. if player can hold diamond:
  277. give 1 diamond to the player
  278. give 6 xp to the player
  279. add 7 to {pkt.%player%}
  280. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  281. stop
  282. else:
  283. drop 1 diamond
  284. give 6 xp to the player
  285. add 7 to {pkt.%player%}
  286. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  287. stop
  288. if player is holding diamond pickaxe or iron pickaxe:
  289. if player can hold diamond:
  290. give 1 diamond to the player
  291. give 6 xp to the player
  292. add 7 to {pkt.%player%}
  293. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  294. stop
  295. else:
  296. drop 1 diamond
  297. give 6 xp to the player
  298. add 7 to {pkt.%player%}
  299. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  300. stop
  301. if {cb.%player%} is false:
  302. give 2 xp to the player
  303. if chance of 100%:
  304. if chance of {@epcv}%:
  305. if player's y-coordinate is less than {@yepv}:
  306. if player is holding diamond pickaxe or iron pickaxe:
  307. if player can hold ender pearl:
  308. give 1 ender pearl to the player
  309. give 25 xp to the player
  310. add 26 to {pkt.%player%}
  311. send " &6» &7Trafiles na: &6perle endermana &7(&6+26 pkt&7)"
  312. stop
  313. else:
  314. drop 1 ender pearl
  315. give 25 xp to the player
  316. add 26 to {pkt.%player%}
  317. send " &6» &7Trafiles na: &6perle endermana &7(&6+26 pkt&7)"
  318. stop
  319. if chance of {@icv}%:
  320. if player's y-coordinate is less than {@yiv}:
  321. if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
  322. if player can hold iron ore:
  323. give 1 iron ore to the player
  324. give 2 xp to the player
  325. add 3 to {pkt.%player%}
  326. send " &6» &7Trafiles na: &6rude zelaza &7(&6+3 pkt&7)"
  327. stop
  328. else:
  329. drop 1 iron ore
  330. give 2 xp to the player
  331. add 3 to {pkt.%player%}
  332. send " &6» &7Trafiles na: &6rude zelaza &7(&6+3 pkt&7)"
  333. stop
  334. if chance of {@gcv}%:
  335. if player's y-coordinate is less than {@ygv}:
  336. if player is holding diamond pickaxe or iron pickaxe:
  337. if player can hold gold ore:
  338. give 1 gold ore to the player
  339. give 5 xp to the player
  340. add 6 to {pkt.%player%}
  341. send " &6» &7Trafiles na: &6rude zlota &7(&6+6 pkt&7)"
  342. stop
  343. else:
  344. drop 1 gold ore
  345. give 5 xp to the player
  346. add 6 to {pkt.%player%}
  347. send " &6» &7Trafiles na: &6rude zlota &7(&6+6 pkt&7)"
  348. stop
  349. if chance of {@ecv}%:
  350. if player's y-coordinate is less than {@yev}:
  351. if player's biome is extreme hills:
  352. if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
  353. if player can hold emerald:
  354. give 1 emerald to the player
  355. give 4 xp to the player
  356. add 5 to {pkt.%player%}
  357. send " &6» &7Trafiles na: &6emerald &7(&6+5 pkt&7)"
  358. stop
  359. else:
  360. drop 1 emerald
  361. give 4 xp to the player
  362. add 5 to {pkt.%player%}
  363. send " &6» &7Trafiles na: &6emerald &7(&6+5 pkt&7)"
  364. stop
  365. if chance of {@dcv}%:
  366. if player's y-coordinate is less than {@yd}:
  367. if player is holding diamond pickaxe of fortune 3 or iron pickaxe of fortune 3:
  368. chance of 30%:
  369. if player can hold 2 diamond:
  370. give 2 diamond to the player
  371. give 12 xp to the player
  372. add 13 to {pkt.%player%}
  373. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  374. stop
  375. else:
  376. drop 2 diamond
  377. give 12 xp to the player
  378. add 13 to {pkt.%player%}
  379. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  380. stop
  381. chance of 20%:
  382. if player can hold 3 diamond:
  383. give 3 diamond to the player
  384. give 17 xp to the player
  385. add 18 to {pkt.%player%}
  386. send " &6» &7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  387. stop
  388. else:
  389. drop 3 diamond
  390. give 17 xp to the player
  391. add 18 to {pkt.%player%}
  392. send " &6» &7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  393. stop
  394. chance of 10%:
  395. if player can hold 4 diamond:
  396. give 4 diamond to the player
  397. give 26 xp to the player
  398. add 27 to {pkt.%player%}
  399. send " &6» &7Trafiles na: &64 diamenty &7(&6+27 pkt&7)"
  400. stop
  401. else:
  402. drop 4 diamond
  403. give 26 xp to the player
  404. add 27 to {pkt.%player%}
  405. send " &6» &7Trafiles na: &64 diamenty &7(&6+27 pkt&7)"
  406. stop
  407. else:
  408. if player can hold diamond:
  409. give 1 diamond to the player
  410. give 6 xp to the player
  411. add 7 to {pkt.%player%}
  412. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  413. stop
  414. else:
  415. drop 1 diamond
  416. give 6 xp to the player
  417. add 7 to {pkt.%player%}
  418. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  419. stop
  420. if player is holding diamond pickaxe of fortune 2 or iron pickaxe of fortune 2:
  421. chance of 30%:
  422. if player can hold 2 diamond:
  423. give 2 diamond to the player
  424. give 12 xp to the player
  425. add 13 to {pkt.%player%}
  426. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  427. stop
  428. else:
  429. drop 2 diamond
  430. give 12 xp to the player
  431. add 13 to {pkt.%player%}
  432. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  433. stop
  434. chance of 20%:
  435. if player can hold 3 diamond:
  436. give 3 diamond to the player
  437. give 17 xp to the player
  438. add 18 to {pkt.%player%}
  439. send " &6» &7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  440. stop
  441. else:
  442. drop 3 diamond
  443. give 17 xp to the player
  444. add 18 to {pkt.%player%}
  445. send " &6» &7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  446. stop
  447. else:
  448. if player can hold diamond:
  449. give 1 diamond to the player
  450. give 6 xp to the player
  451. add 7 to {pkt.%player%}
  452. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  453. stop
  454. else:
  455. drop 1 diamond
  456. give 6 xp to the player
  457. add 7 to {pkt.%player%}
  458. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  459. stop
  460. if player is holding diamond pickaxe of fortune 1 or iron pickaxe of fortune 1:
  461. chance of 30%:
  462. if player can hold 2 diamond:
  463. give 2 diamond to the player
  464. give 12 xp to the player
  465. add 13 to {pkt.%player%}
  466. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  467. stop
  468. else:
  469. drop 2 diamond
  470. give 12 xp to the player
  471. add 13 to {pkt.%player%}
  472. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  473. stop
  474. else:
  475. if player can hold diamond:
  476. give 1 diamond to the player
  477. give 6 xp to the player
  478. add 7 to {pkt.%player%}
  479. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  480. stop
  481. else:
  482. drop 1 diamond
  483. give 6 xp to the player
  484. add 7 to {pkt.%player%}
  485. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  486. stop
  487. if player is holding diamond pickaxe or iron pickaxe:
  488. if player can hold diamond:
  489. give 1 diamond to the player
  490. give 6 xp to the player
  491. add 7 to {pkt.%player%}
  492. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  493. stop
  494. else:
  495. drop 1 diamond
  496. give 6 xp to the player
  497. add 7 to {pkt.%player%}
  498. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  499. stop
  500. if player has permission "hcdrops.gracz":
  501. if {cb.%player%} is true:
  502. drop 1 cobblestone
  503. give 2 xp to the player
  504. if chance of 100%:
  505. if chance of {@epc}%:
  506. if player's y-coordinate is less than {@yep}:
  507. if player is holding diamond pickaxe or iron pickaxe:
  508. if player can hold ender pearl:
  509. give 1 ender pearl to the player
  510. give 25 xp to the player
  511. add 26 to {pkt.%player%}
  512. send " &6» &7Trafiles na: &6perle endermana &7(&6+26 pkt&7)"
  513. stop
  514. else:
  515. drop 1 ender pearl
  516. give 25 xp to the player
  517. add 26 to {pkt.%player%}
  518. send " &6» &7Trafiles na: &6perle endermana &7(&6+26 pkt&7)"
  519. stop
  520. if chance of {@ic}%:
  521. if player's y-coordinate is less than {@yi}:
  522. if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
  523. if player can hold iron ore:
  524. give 1 iron ore to the player
  525. give 2 xp to the player
  526. add 3 to {pkt.%player%}
  527. send " &6» &7Trafiles na: &6rude zelaza &7(&6+3 pkt&7)"
  528. stop
  529. else:
  530. drop 1 iron ore
  531. give 2 xp to the player
  532. add 3 to {pkt.%player%}
  533. send " &6» &7Trafiles na: &6rude zelaza &7(&6+3 pkt&7)"
  534. stop
  535. if chance of {@gc}%:
  536. if player's y-coordinate is less than {@yg}:
  537. if player is holding diamond pickaxe or iron pickaxe:
  538. if player can hold gold ore:
  539. give 1 gold ore to the player
  540. give 5 xp to the player
  541. add 6 to {pkt.%player%}
  542. send " &6» &7Trafiles na: &6rude zlota &7(&6+6 pkt&7)"
  543. stop
  544. else:
  545. drop 1 gold ore
  546. give 5 xp to the player
  547. add 6 to {pkt.%player%}
  548. send " &6» &7Trafiles na: &6rude zlota &7(&6+6 pkt&7)"
  549. stop
  550. if chance of {@ec}%:
  551. if player's y-coordinate is less than {@ye}:
  552. if player's biome is extreme hills:
  553. if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
  554. if player can hold emerald:
  555. give 1 emerald to the player
  556. give 4 xp to the player
  557. add 5 to {pkt.%player%}
  558. send " &6» &7Trafiles na: &6emerald &7(&6+5 pkt&7)"
  559. stop
  560. else:
  561. drop 1 emerald
  562. give 4 xp to the player
  563. add 5 to {pkt.%player%}
  564. send " &6» &7Trafiles na: &6emerald &7(&6+5 pkt&7)"
  565. stop
  566. if chance of {@dc}%:
  567. if player's y-coordinate is less than {@yd}:
  568. if player is holding diamond pickaxe of fortune 3 or iron pickaxe of fortune 3:
  569. chance of 30%:
  570. if player can hold 2 diamond:
  571. give 2 diamond to the player
  572. give 12 xp to the player
  573. add 13 to {pkt.%player%}
  574. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  575. stop
  576. else:
  577. drop 2 diamond
  578. give 12 xp to the player
  579. add 13 to {pkt.%player%}
  580. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  581. stop
  582. chance of 20%:
  583. if player can hold 3 diamond:
  584. give 3 diamond to the player
  585. give 17 xp to the player
  586. add 18 to {pkt.%player%}
  587. send " &6» &7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  588. stop
  589. else:
  590. drop 3 diamond
  591. give 17 xp to the player
  592. add 18 to {pkt.%player%}
  593. send " &6» &7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  594. stop
  595. chance of 10%:
  596. if player can hold 4 diamond:
  597. give 4 diamond to the player
  598. give 26 xp to the player
  599. add 27 to {pkt.%player%}
  600. send " &6» &7Trafiles na: &64 diamenty &7(&6+27 pkt&7)"
  601. stop
  602. else:
  603. drop 4 diamond
  604. give 26 xp to the player
  605. add 27 to {pkt.%player%}
  606. send " &6» &7Trafiles na: &64 diamenty &7(&6+27 pkt&7)"
  607. stop
  608. else:
  609. if player can hold diamond:
  610. give 1 diamond to the player
  611. give 6 xp to the player
  612. add 7 to {pkt.%player%}
  613. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  614. stop
  615. else:
  616. drop 1 diamond
  617. give 6 xp to the player
  618. add 7 to {pkt.%player%}
  619. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  620. stop
  621. if player is holding diamond pickaxe of fortune 2 or iron pickaxe of fortune 2:
  622. chance of 30%:
  623. if player can hold 2 diamond:
  624. give 2 diamond to the player
  625. give 12 xp to the player
  626. add 13 to {pkt.%player%}
  627. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  628. stop
  629. else:
  630. drop 2 diamond
  631. give 12 xp to the player
  632. add 13 to {pkt.%player%}
  633. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  634. stop
  635. chance of 20%:
  636. if player can hold 3 diamond:
  637. give 3 diamond to the player
  638. give 17 xp to the player
  639. add 18 to {pkt.%player%}
  640. send " &6» &7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  641. stop
  642. else:
  643. drop 3 diamond
  644. give 17 xp to the player
  645. add 18 to {pkt.%player%}
  646. send " &6» &7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  647. stop
  648. else:
  649. if player can hold diamond:
  650. give 1 diamond to the player
  651. give 6 xp to the player
  652. add 7 to {pkt.%player%}
  653. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  654. stop
  655. else:
  656. drop 1 diamond
  657. give 6 xp to the player
  658. add 7 to {pkt.%player%}
  659. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  660. stop
  661. if player is holding diamond pickaxe of fortune 1 or iron pickaxe of fortune 1:
  662. chance of 30%:
  663. if player can hold 2 diamond:
  664. give 2 diamond to the player
  665. give 12 xp to the player
  666. add 13 to {pkt.%player%}
  667. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  668. stop
  669. else:
  670. drop 2 diamond
  671. give 12 xp to the player
  672. add 13 to {pkt.%player%}
  673. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  674. stop
  675. else:
  676. if player can hold diamond:
  677. give 1 diamond to the player
  678. give 6 xp to the player
  679. add 7 to {pkt.%player%}
  680. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  681. stop
  682. else:
  683. drop 1 diamond
  684. give 6 xp to the player
  685. add 7 to {pkt.%player%}
  686. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  687. stop
  688. if player is holding diamond pickaxe or iron pickaxe:
  689. if player can hold diamond:
  690. give 1 diamond to the player
  691. give 6 xp to the player
  692. add 7 to {pkt.%player%}
  693. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  694. stop
  695. else:
  696. drop 1 diamond
  697. give 6 xp to the player
  698. add 7 to {pkt.%player%}
  699. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  700. stop
  701. if {cb.%player%} is false:
  702. give 2 xp to the player
  703. if chance of 100%:
  704. if chance of {@epc}%:
  705. if player's y-coordinate is less than {@yep}:
  706. if player is holding diamond pickaxe or iron pickaxe:
  707. if player can hold ender pearl:
  708. give 1 ender pearl to the player
  709. give 25 xp to the player
  710. add 26 to {pkt.%player%}
  711. send " &6» &7Trafiles na: &6perle endermana &7(&6+26 pkt&7)"
  712. stop
  713. else:
  714. drop 1 ender pearl
  715. give 25 xp to the player
  716. add 26 to {pkt.%player%}
  717. send " &6» &7Trafiles na: &6perle endermana &7(&6+26 pkt&7)"
  718. stop
  719. if chance of {@ic}%:
  720. if player's y-coordinate is less than {@yi}:
  721. if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
  722. if player can hold iron ore:
  723. give 1 iron ore to the player
  724. give 2 xp to the player
  725. add 3 to {pkt.%player%}
  726. send " &6» &7Trafiles na: &6rude zelaza &7(&6+3 pkt&7)"
  727. stop
  728. else:
  729. drop 1 iron ore
  730. give 2 xp to the player
  731. add 3 to {pkt.%player%}
  732. send " &6» &7Trafiles na: &6rude zelaza &7(&6+3 pkt&7)"
  733. stop
  734. if chance of {@gc}%:
  735. if player's y-coordinate is less than {@yg}:
  736. if player is holding diamond pickaxe or iron pickaxe:
  737. if player can hold gold ore:
  738. give 1 gold ore to the player
  739. give 5 xp to the player
  740. add 6 to {pkt.%player%}
  741. send " &6» &7Trafiles na: &6rude zlota &7(&6+6 pkt&7)"
  742. stop
  743. else:
  744. drop 1 gold ore
  745. give 5 xp to the player
  746. add 6 to {pkt.%player%}
  747. send " &6» &7Trafiles na: &6rude zlota &7(&6+6 pkt&7)"
  748. stop
  749. if chance of {@ec}%:
  750. if player's y-coordinate is less than {@ye}:
  751. if player's biome is extreme hills:
  752. if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
  753. if player can hold emerald:
  754. give 1 emerald to the player
  755. give 4 xp to the player
  756. add 5 to {pkt.%player%}
  757. send " &6» &7Trafiles na: &6emerald &7(&6+5 pkt&7)"
  758. stop
  759. else:
  760. drop 1 emerald
  761. give 4 xp to the player
  762. add 5 to {pkt.%player%}
  763. send " &6» &7Trafiles na: &6emerald &7(&6+5 pkt&7)"
  764. stop
  765. if chance of {@dc}%:
  766. if player's y-coordinate is less than {@yd}:
  767. if player is holding diamond pickaxe of fortune 3 or iron pickaxe of fortune 3:
  768. chance of 30%:
  769. if player can hold 2 diamond:
  770. give 2 diamond to the player
  771. give 12 xp to the player
  772. add 13 to {pkt.%player%}
  773. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  774. stop
  775. else:
  776. drop 2 diamond
  777. give 12 xp to the player
  778. add 13 to {pkt.%player%}
  779. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  780. stop
  781. chance of 20%:
  782. if player can hold 3 diamond:
  783. give 3 diamond to the player
  784. give 17 xp to the player
  785. add 18 to {pkt.%player%}
  786. send " &6» &7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  787. stop
  788. else:
  789. drop 3 diamond
  790. give 17 xp to the player
  791. add 18 to {pkt.%player%}
  792. send " &6» &7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  793. stop
  794. chance of 10%:
  795. if player can hold 4 diamond:
  796. give 4 diamond to the player
  797. give 26 xp to the player
  798. add 27 to {pkt.%player%}
  799. send " &6» &7Trafiles na: &64 diamenty &7(&6+27 pkt&7)"
  800. stop
  801. else:
  802. drop 4 diamond
  803. give 26 xp to the player
  804. add 27 to {pkt.%player%}
  805. send " &6» &7Trafiles na: &64 diamenty &7(&6+27 pkt&7)"
  806. stop
  807. else:
  808. if player can hold diamond:
  809. give 1 diamond to the player
  810. give 6 xp to the player
  811. add 7 to {pkt.%player%}
  812. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  813. stop
  814. else:
  815. drop 1 diamond
  816. give 6 xp to the player
  817. add 7 to {pkt.%player%}
  818. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  819. stop
  820. if player is holding diamond pickaxe of fortune 2 or iron pickaxe of fortune 2:
  821. chance of 30%:
  822. if player can hold 2 diamond:
  823. give 2 diamond to the player
  824. give 12 xp to the player
  825. add 13 to {pkt.%player%}
  826. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  827. stop
  828. else:
  829. drop 2 diamond
  830. give 12 xp to the player
  831. add 13 to {pkt.%player%}
  832. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  833. stop
  834. chance of 20%:
  835. if player can hold 3 diamond:
  836. give 3 diamond to the player
  837. give 17 xp to the player
  838. add 18 to {pkt.%player%}
  839. send " &6» &7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  840. stop
  841. else:
  842. drop 3 diamond
  843. give 17 xp to the player
  844. add 18 to {pkt.%player%}
  845. send " &6» &7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  846. stop
  847. else:
  848. if player can hold diamond:
  849. give 1 diamond to the player
  850. give 6 xp to the player
  851. add 7 to {pkt.%player%}
  852. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  853. stop
  854. else:
  855. drop 1 diamond
  856. give 6 xp to the player
  857. add 7 to {pkt.%player%}
  858. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  859. stop
  860. if player is holding diamond pickaxe of fortune 1 or iron pickaxe of fortune 1:
  861. chance of 30%:
  862. if player can hold 2 diamond:
  863. give 2 diamond to the player
  864. give 12 xp to the player
  865. add 13 to {pkt.%player%}
  866. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  867. stop
  868. else:
  869. drop 2 diamond
  870. give 12 xp to the player
  871. add 13 to {pkt.%player%}
  872. send " &6» &7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  873. stop
  874. else:
  875. if player can hold diamond:
  876. give 1 diamond to the player
  877. give 6 xp to the player
  878. add 7 to {pkt.%player%}
  879. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  880. stop
  881. else:
  882. drop 1 diamond
  883. give 6 xp to the player
  884. add 7 to {pkt.%player%}
  885. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  886. stop
  887. if player is holding diamond pickaxe or iron pickaxe:
  888. if player can hold diamond:
  889. give 1 diamond to the player
  890. give 6 xp to the player
  891. add 7 to {pkt.%player%}
  892. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  893. stop
  894. else:
  895. drop 1 diamond
  896. give 6 xp to the player
  897. add 7 to {pkt.%player%}
  898. send " &6» &7Trafiles na: &6diament &7(&6+7 pkt&7)"
  899. stop
  900. if {cb.%player%} is false:
  901. give 2 xp to the player
  902. if {pkt.%player%} is larger than 60:
  903. if {lvl.%player%} is less than 2:
  904. set {lvl.%player%} to 2
  905. send " &6» &7Awansowales na: &62 Poziom&7!"
  906. stop
  907. if {pkt.%player%} is larger than 120:
  908. if {lvl.%player%} is less than 3:
  909. set {lvl.%player%} to 3
  910. send " &6» &7Awansowales na: &63 Poziom&7!"
  911. stop
  912. if {pkt.%player%} is larger than 180:
  913. if {lvl.%player%} is less than 4:
  914. set {lvl.%player%} to 4
  915. send " &6» &7Awansowales na: &64 Poziom&7!"
  916. stop
  917. if {pkt.%player%} is larger than 240:
  918. if {lvl.%player%} is less than 5:
  919. set {lvl.%player%} to 5
  920. send " &6» &7Awansowales na: &65 Poziom&7!"
  921. stop
  922. if {pkt.%player%} is larger than 320:
  923. if {lvl.%player%} is less than 6:
  924. set {lvl.%player%} to 6
  925. send " &6» &7Awansowales na: &66 Poziom&7!"
  926. stop
  927. if {pkt.%player%} is larger than 460:
  928. if {lvl.%player%} is less than 7:
  929. set {lvl.%player%} to 7
  930. send " &6» &7Awansowales na: &67 Poziom&7!"
  931. stop
  932. if {pkt.%player%} is larger than 580:
  933. if {lvl.%player%} is less than 8:
  934. set {lvl.%player%} to 8
  935. send " &6» &7Awansowales na: &68 Poziom&7!"
  936. stop
  937. if {pkt.%player%} is larger than 760:
  938. if {lvl.%player%} is less than 9:
  939. set {lvl.%player%} to 9
  940. send " &6» &7Awansowales na: &69 Poziom&7!"
  941. stop
  942. if {pkt.%player%} is larger than 960:
  943. if {lvl.%player%} is less than 10:
  944. set {lvl.%player%} to 10
  945. send " &6» &7Awansowales na: &610 Poziom&7!"
  946. stop
  947. if {pkt.%player%} is larger than 1140:
  948. if {lvl.%player%} is less than 11:
  949. set {lvl.%player%} to 11
  950. send " &6» &7Awansowales na: &611 Poziom&7!"
  951. stop
  952. if {pkt.%player%} is larger than 1320:
  953. if {lvl.%player%} is less than 12:
  954. set {lvl.%player%} to 12
  955. send " &6» &7Awansowales na: &612 Poziom&7!"
  956. stop
  957. if {pkt.%player%} is larger than 1540:
  958. if {lvl.%player%} is less than 13:
  959. set {lvl.%player%} to 13
  960. send " &6» &7Awansowales na: &613 Poziom&7!"
  961. stop
  962. if {pkt.%player%} is larger than 1760:
  963. if {lvl.%player%} is less than 14:
  964. set {lvl.%player%} to 14
  965. send " &6» &7Awansowales na: &614 Poziom&7!"
  966. stop
  967. if {pkt.%player%} is larger than 1980:
  968. if {lvl.%player%} is less than 15:
  969. set {lvl.%player%} to 15
  970. send " &6» &7Awansowales na: &615 Poziom&7!"
  971. broadcast "&7Gracz &6%player% &7awansowal na &615 poziom&7!"
  972. stop
  973. if {pkt.%player%} is larger than 2180:
  974. if {lvl.%player%} is less than 16:
  975. set {lvl.%player%} to 16
  976. send " &6» &7Awansowales na: &616 Poziom&7!"
  977. stop
  978. if {pkt.%player%} is larger than 2300:
  979. if {lvl.%player%} is less than 17:
  980. set {lvl.%player%} to 17
  981. send " &6» &7Awansowales na: &617 Poziom&7!"
  982. stop
  983. if {pkt.%player%} is larger than 2520:
  984. if {lvl.%player%} is less than 18:
  985. set {lvl.%player%} to 18
  986. send " &6» &7Awansowales na: &618 Poziom&7!"
  987. stop
  988. if {pkt.%player%} is larger than 2740:
  989. if {lvl.%player%} is less than 19:
  990. set {lvl.%player%} to 19
  991. send " &6» &7Awansowales na: &619 Poziom&7!"
  992. stop
  993. if {pkt.%player%} is larger than 2960:
  994. if {lvl.%player%} is less than 20:
  995. set {lvl.%player%} to 20
  996. send " &6» &7Awansowales na: &620 Poziom&7!"
  997. stop
  998. if {pkt.%player%} is larger than 3180:
  999. if {lvl.%player%} is less than 21:
  1000. set {lvl.%player%} to 21
  1001. send " &6» &7Awansowales na: &621 Poziom&7!"
  1002. stop
  1003. if {pkt.%player%} is larger than 3400:
  1004. if {lvl.%player%} is less than 22:
  1005. set {lvl.%player%} to 22
  1006. send " &6» &7Awansowales na: &622 Poziom&7!"
  1007. stop
  1008. if {pkt.%player%} is larger than 3620:
  1009. if {lvl.%player%} is less than 23:
  1010. set {lvl.%player%} to 23
  1011. send " &6» &7Awansowales na: &623 Poziom&7!"
  1012. stop
  1013. if {pkt.%player%} is larger than 3840:
  1014. if {lvl.%player%} is less than 24:
  1015. set {lvl.%player%} to 24
  1016. send " &6» &7Awansowales na: &624 Poziom&7!"
  1017. stop
  1018. if {pkt.%player%} is larger than 4060:
  1019. if {lvl.%player%} is less than 25:
  1020. set {lvl.%player%} to 25
  1021. send " &6» &7Awansowales na: &625 Poziom&7!"
  1022. stop
  1023. if {pkt.%player%} is larger than 4280:
  1024. if {lvl.%player%} is less than 26:
  1025. set {lvl.%player%} to 26
  1026. send " &6» &7Awansowales na: &626 Poziom&7!"
  1027. stop
  1028. if {pkt.%player%} is larger than 4500:
  1029. if {lvl.%player%} is less than 27:
  1030. set {lvl.%player%} to 27
  1031. send " &6» &7Awansowales na: &627 Poziom&7!"
  1032. stop
  1033. if {pkt.%player%} is larger than 4720:
  1034. if {lvl.%player%} is less than 28:
  1035. set {lvl.%player%} to 28
  1036. send " &6» &7Awansowales na: &628 Poziom&7!"
  1037. stop
  1038. if {pkt.%player%} is larger than 4940:
  1039. if {lvl.%player%} is less than 29:
  1040. set {lvl.%player%} to 29
  1041. send " &6» &7Awansowales na: &629 Poziom&7!"
  1042. stop
  1043. if {pkt.%player%} is larger than 5160:
  1044. if {lvl.%player%} is less than 30:
  1045. set {lvl.%player%} to 30
  1046. send " &6» &7Awansowales na: &630 Poziom&7!"
  1047. broadcast "&7Gracz &6%player% &7awansowal na &630 poziom&7!"
  1048. stop
  1049. if {pkt.%player%} is larger than 5380:
  1050. if {lvl.%player%} is less than 31:
  1051. set {lvl.%player%} to 31
  1052. send " &6» &7Awansowales na: &631 Poziom&7!"
  1053. stop
  1054. if {pkt.%player%} is larger than 5600:
  1055. if {lvl.%player%} is less than 32:
  1056. set {lvl.%player%} to 32
  1057. send " &6» &7Awansowales na: &632 Poziom&7!"
  1058. stop
  1059. if {pkt.%player%} is larger than 5820:
  1060. if {lvl.%player%} is less than 33:
  1061. set {lvl.%player%} to 33
  1062. send " &6» &7Awansowales na: &633 Poziom&7!"
  1063. stop
  1064. if {pkt.%player%} is larger than 6040:
  1065. if {lvl.%player%} is less than 34:
  1066. set {lvl.%player%} to 34
  1067. send " &6» &7Awansowales na: &634 Poziom&7!"
  1068. stop
  1069. if {pkt.%player%} is larger than 6260:
  1070. if {lvl.%player%} is less than 35:
  1071. set {lvl.%player%} to 35
  1072. send " &6» &7Awansowales na: &635 Poziom&7!"
  1073. stop
  1074. if {pkt.%player%} is larger than 6480:
  1075. if {lvl.%player%} is less than 36:
  1076. set {lvl.%player%} to 36
  1077. send " &6» &7Awansowales na: &636 Poziom&7!"
  1078. stop
  1079. if {pkt.%player%} is larger than 6700:
  1080. if {lvl.%player%} is less than 37:
  1081. set {lvl.%player%} to 37
  1082. send " &6» &7Awansowales na: &637 Poziom&7!"
  1083. stop
  1084. if {pkt.%player%} is larger than 6920:
  1085. if {lvl.%player%} is less than 38:
  1086. set {lvl.%player%} to 38
  1087. send " &6» &7Awansowales na: &638 Poziom&7!"
  1088. stop
  1089. if {pkt.%player%} is larger than 7140:
  1090. if {lvl.%player%} is less than 39:
  1091. set {lvl.%player%} to 39
  1092. send " &6» &7Awansowales na: &639 Poziom&7!"
  1093. stop
  1094. if {pkt.%player%} is larger than 7360:
  1095. if {lvl.%player%} is less than 40:
  1096. set {lvl.%player%} to 40
  1097. send " &6» &7Awansowales na: &640 Poziom&7!"
  1098. broadcast "&7Gracz &6%player% &7awansowal na &640 poziom&7!"
  1099. stop
  1100. else:
  1101. stop
  1102. on chat:
  1103. if {chat.%player%} is true:
  1104. if {lvl.%player%} isn't 5:
  1105. send "&cfXM&cHC&8| &6&lNie masz odpowiedniego poziomu aby pisac! &f(5 lvl)"
  1106. stop
  1107. set {chat.%player%} to true
Advertisement
Add Comment
Please, Sign In to add comment