Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.40 KB | None | 0 0
  1. variables:
  2. {lvl.%player%} = 1
  3. {pkt.%player%} = 0
  4. {cb.%player%} = true
  5. command /punkty:
  6. aliases: pkt, poziom, lvl
  7. trigger:
  8. execute console command "/playsound note.pling %player%"
  9. send " &7&l&m------------&8> &6&lPunkty &8<&7&l&m------------"
  10. send " &8» &7Posiadasz: &2%{pkt.%player%}% &7pkt."
  11. send " &8» &7Posiadasz: &2%{lvl.%player%}% &7poziom."
  12. send " &7&l&m--------------------------------"
  13. stop
  14. command /cobble:
  15. trigger:
  16. if {cb.%player%} is true:
  17. set {cb.%player%} to false
  18. execute console command "/playsound note.pling %player%"
  19. send " &7» Wylaczyles drop cobblestone!"
  20. stop
  21. if {cb.%player%} is false:
  22. set {cb.%player%} to true
  23. execute console command "/playsound note.pling %player%"
  24. send " &7» Wlaczyles drop cobblestone!"
  25. stop
  26. options:
  27. yd: 25
  28. dc: 1.3
  29. ec: 1.6
  30. gc: 1.3
  31. ic: 2
  32. epc: 0.5
  33. command /drop [<text>]:
  34. trigger:
  35. if arg 1 is not set:
  36. send "&7&m-----------------&8> &2&lDrop &8<&7&m-----------------"
  37. send " &8» &2Diamenty:"
  38. send " &6+ &7Wykopac mozesz: &2diamentowym i zelaznym kilofem&7."
  39. send " &6+ &7Od poziomu: &6Y:<25"
  40. send " &6+ &7Szansa: &6{@dc} procent"
  41. send " &8» &2Emeraldy:"
  42. send " &6+ &7Wykopac mozesz: &2diamentowym, zelaznym i kamiennym kilofem&7."
  43. send " &6+ &7Szansa: &6{@ec} procent"
  44. send " &8» &2Ruda Zlota:"
  45. send " &6+ &7Wykopac mozesz: &2diamentowym i zelaznym kilofem&7."
  46. send " &6+ &7Szansa: &6{@gc} procent"
  47. send " &8» &2Ruda Zelaza:"
  48. send " &6+ &7Wykopac mozesz: &2diamentowym, zelaznym i kamiennym kilofem&7."
  49. send " &6+ &7Szansa: &6{@ic} procent"
  50. send " &8» &2Perla Endermana:"
  51. send " &6+ &7Wykopac mozesz: &2diamentowym i zelaznym kilofem&7."
  52. send " &6+ &7Szansa: &6{@epc} procent"
  53. send "&7&m----------------------------------------"
  54. execute console command "/playsound note.pling %player%"
  55. on mine of diamond ore:
  56. cancel event
  57. set block to air
  58. send " &6» &7Drop z tej rudy jest wylaczony!"
  59. send " &6» &7Aby zobaczyc procent szans na drop wpisz &2/drop&7!"
  60. stop
  61. on mine of emerald ore:
  62. cancel event
  63. set block to air
  64. send " &6» &7Drop z tej rudy jest wylaczony!"
  65. send " &6» &7Aby zobaczyc procent szans na drop wpisz &2/drop&7!"
  66. stop
  67. on mine of gold ore:
  68. cancel event
  69. set block to air
  70. send " &6» &7Drop z tej rudy jest wylaczony!"
  71. send " &6» &7Aby zobaczyc procent szans na drop wpisz &2/drop&7!"
  72. stop
  73. on mine of iron ore:
  74. cancel event
  75. set block to air
  76. send " &6» &7Drop z tej rudy jest wylaczony!"
  77. send " &6» &7Aby zobaczyc procent szans na drop wpisz &2/drop&7!"
  78. stop
  79. on mine of stone:
  80. cancel event
  81. set block to air
  82. damage player's tool by 1
  83. if {cb.%player%} is true:
  84. drop 1 cobblestone
  85. give 2 xp to the player
  86. if chance of 100%:
  87. if chance of {@epc}%:
  88. if player is holding diamond pickaxe or iron pickaxe:
  89. add 1 ender pearl to the player's inventory
  90. give 25 xp to the player
  91. add 26 to {pkt.%player%}
  92. send " &6» &7Trafiles na: &2perle endermana &7(&6+&326 pkt&7)"
  93. stop
  94. if chance of {@ic}%:
  95. if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
  96. add 1 iron ore to the player's inventory
  97. give 2 xp to the player
  98. add 3 to {pkt.%player%}
  99. send " &6» &7Trafiles na: &2rude zelaza &7(&6+&33 pkt&7)"
  100. stop
  101. if chance of {@gc}%:
  102. if player is holding diamond pickaxe or iron pickaxe:
  103. add 1 gold ore to the player's inventory
  104. give 5 xp to the player
  105. add 6 to {pkt.%player%}
  106. send " &6» &7Trafiles na: &2rude zlota &7(&6+&36 pkt&7)"
  107. stop
  108. if chance of {@ec}%:
  109. if player is holding diamond pickaxe or iron pickaxe:
  110. if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
  111. add 1 emerald to the player's inventory
  112. give 4 xp to the player
  113. add 5 to {pkt.%player%}
  114. send " &6» &7Trafiles na: &2emerald &7(&6+&35 pkt&7)"
  115. stop
  116. if chance of {@dc}%:
  117. if player's y-coordinate is less than {@yd}:
  118. if player is holding diamond pickaxe of fortune 3 or iron pickaxe of fortune 3:
  119. chance of 30%:
  120. add 2 diamond to the player's inventory
  121. give 12 xp to the player
  122. add 13 to {pkt.%player%}
  123. send " &6» &7Trafiles na: &22 diamenty &7(&6+&313 pkt&7)"
  124. stop
  125. chance of 20%:
  126. add 3 diamond to the player's inventory
  127. give 17 xp to the player
  128. add 18 to {pkt.%player%}
  129. send " &6» &7Trafiles na: &23 diamenty &7(&6+&318 pkt&7)"
  130. stop
  131. chance of 10%:
  132. add 4 diamond to the player's inventory
  133. give 26 xp to the player
  134. add 27 to {pkt.%player%}
  135. send " &6» &7Trafiles na: &24 diamenty &7(&6+&327 pkt&7)"
  136. stop
  137. else:
  138. add 1 diamond to the player's inventory
  139. give 6 xp to the player
  140. add 7 to {pkt.%player%}
  141. send " &6» &7Trafiles na: &2diament &7(&6+&37 pkt&7)"
  142. stop
  143. if player is holding diamond pickaxe of fortune 2 or iron pickaxe of fortune 2:
  144. chance of 30%:
  145. add 2 diamond to the player's inventory
  146. give 12 xp to the player
  147. add 13 to {pkt.%player%}
  148. send " &6» &7Trafiles na: &22 diamenty &7(&6+&313 pkt&7)"
  149. stop
  150. chance of 20%:
  151. add 3 diamond to the player's inventory
  152. give 17 xp to the player
  153. add 18 to {pkt.%player%}
  154. send " &6» &7Trafiles na: &23 diamenty &7(&6+&318 pkt&7)"
  155. stop
  156. else:
  157. add 1 diamond to the player's inventory
  158. give 6 xp to the player
  159. add 7 to {pkt.%player%}
  160. send " &6» &7Trafiles na: &2diament &7(&6+&37 pkt&7)"
  161. stop
  162. if player is holding diamond pickaxe of fortune 1 or iron pickaxe of fortune 1:
  163. chance of 30%:
  164. add 2 diamond to the player's inventory
  165. give 12 xp to the player
  166. add 13 to {pkt.%player%}
  167. send " &6» &7Trafiles na: &22 diamenty &7(&6+&313 pkt&7)"
  168. stop
  169. else:
  170. add 1 diamond to the player's inventory
  171. give 6 xp to the player
  172. add 7 to {pkt.%player%}
  173. send " &6» &7Trafiles na: &2diament &7(&6+&37 pkt&7)"
  174. stop
  175. if player is holding diamond pickaxe or iron pickaxe:
  176. add 1 diamond to the player's inventory
  177. give 6 xp to the player
  178. add 7 to {pkt.%player%}
  179. send " &6» &7Trafiles na: &2diament &7(&6+&37 pkt&7)"
  180. stop
  181. if {cb.%player%} is false:
  182. give 2 xp to the player
  183. if chance of 100%:
  184. if chance of {@epc}%:
  185. if player is holding diamond pickaxe or iron pickaxe:
  186. add 1 ender pearl to the player's inventory
  187. give 25 xp to the player
  188. add 26 to {pkt.%player%}
  189. send " &6» &7Trafiles na: &2perle endermana &7(&6+&326 pkt&7)"
  190. stop
  191. if chance of {@ic}%:
  192. if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
  193. add 1 iron ore to the player's inventory
  194. give 2 xp to the player
  195. add 3 to {pkt.%player%}
  196. send " &6» &7Trafiles na: &2rude zelaza &7(&6+&33 pkt&7)"
  197. stop
  198. if chance of {@gc}%:
  199. if player is holding diamond pickaxe or iron pickaxe:
  200. add 1 gold ore to the player's inventory
  201. give 5 xp to the player
  202. add 6 to {pkt.%player%}
  203. send " &6» &7Trafiles na: &2rude zlota &7(&6+&36 pkt&7)"
  204. stop
  205. if chance of {@ec}%:
  206. if player is holding diamond pickaxe or iron pickaxe:
  207. if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
  208. add 1 emerald to the player's inventory
  209. give 4 xp to the player
  210. add 5 to {pkt.%player%}
  211. send " &6» &7Trafiles na: &2emerald &7(&6+&35 pkt&7)"
  212. stop
  213. if chance of {@dc}%:
  214. if player's y-coordinate is less than {@yd}:
  215. if player is holding diamond pickaxe of fortune 3 or iron pickaxe of fortune 3:
  216. chance of 30%:
  217. add 2 diamond to the player's inventory
  218. give 12 xp to the player
  219. add 13 to {pkt.%player%}
  220. send " &6» &7Trafiles na: &22 diamenty &7(&6+&313 pkt&7)"
  221. stop
  222. chance of 20%:
  223. add 3 diamond to the player's inventory
  224. give 17 xp to the player
  225. add 18 to {pkt.%player%}
  226. send " &6» &7Trafiles na: &23 diamenty &7(&6+&318 pkt&7)"
  227. stop
  228. chance of 10%:
  229. add 4 diamond to the player's inventory
  230. give 26 xp to the player
  231. add 27 to {pkt.%player%}
  232. send " &6» &7Trafiles na: &24 diamenty &7(&6+&327 pkt&7)"
  233. stop
  234. else:
  235. add 1 diamond to the player's inventory
  236. give 6 xp to the player
  237. add 7 to {pkt.%player%}
  238. send " &6» &7Trafiles na: &2diament &7(&6+&37 pkt&7)"
  239. stop
  240. if player is holding diamond pickaxe of fortune 2 or iron pickaxe of fortune 2:
  241. chance of 30%:
  242. add 2 diamond to the player's inventory
  243. give 12 xp to the player
  244. add 13 to {pkt.%player%}
  245. send " &6» &7Trafiles na: &22 diamenty &7(&6+&313 pkt&7)"
  246. stop
  247. chance of 20%:
  248. add 3 diamond to the player's inventory
  249. give 17 xp to the player
  250. add 18 to {pkt.%player%}
  251. send " &6» &7Trafiles na: &23 diamenty &7(&6+&318 pkt&7)"
  252. stop
  253. else:
  254. add 1 diamond to the player's inventory
  255. give 6 xp to the player
  256. add 7 to {pkt.%player%}
  257. send " &6» &7Trafiles na: &2diament &7(&6+&37 pkt&7)"
  258. stop
  259. if player is holding diamond pickaxe of fortune 1 or iron pickaxe of fortune 1:
  260. chance of 30%:
  261. add 2 diamond to the player's inventory
  262. give 12 xp to the player
  263. add 13 to {pkt.%player%}
  264. send " &6» &7Trafiles na: &22 diamenty &7(&6+&313 pkt&7)"
  265. stop
  266. else:
  267. add 1 diamond to the player's inventory
  268. give 6 xp to the player
  269. add 7 to {pkt.%player%}
  270. send " &6» &7Trafiles na: &2diament &7(&6+&37 pkt&7)"
  271. stop
  272. if player is holding diamond pickaxe or iron pickaxe:
  273. add 1 diamond to the player's inventory
  274. give 6 xp to the player
  275. add 7 to {pkt.%player%}
  276. send " &6» &7Trafiles na: &2diament &7(&6+&37 pkt&7)"
  277. stop
  278. if {pkt.%player%} is larger than 60:
  279. if {lvl.%player%} is less than 2:
  280. set {lvl.%player%} to 2
  281. send " &6» &7Awansowales na: &32 Poziom&7!"
  282. stop
  283. if {pkt.%player%} is larger than 120:
  284. if {lvl.%player%} is less than 3:
  285. set {lvl.%player%} to 3
  286. send " &6» &7Awansowales na: &33 Poziom&7!"
  287. stop
  288. if {pkt.%player%} is larger than 180:
  289. if {lvl.%player%} is less than 4:
  290. set {lvl.%player%} to 4
  291. send " &6» &7Awansowales na: &34 Poziom&7!"
  292. stop
  293. if {pkt.%player%} is larger than 240:
  294. if {lvl.%player%} is less than 5:
  295. set {lvl.%player%} to 5
  296. send " &6» &7Awansowales na: &35 Poziom&7!"
  297. stop
  298. if {pkt.%player%} is larger than 320:
  299. if {lvl.%player%} is less than 6:
  300. set {lvl.%player%} to 6
  301. send " &6» &7Awansowales na: &36 Poziom&7!"
  302. stop
  303. if {pkt.%player%} is larger than 460:
  304. if {lvl.%player%} is less than 7:
  305. set {lvl.%player%} to 7
  306. send " &6» &7Awansowales na: &37 Poziom&7!"
  307. stop
  308. if {pkt.%player%} is larger than 580:
  309. if {lvl.%player%} is less than 8:
  310. set {lvl.%player%} to 8
  311. send " &6» &7Awansowales na: &38 Poziom&7!"
  312. stop
  313. if {pkt.%player%} is larger than 760:
  314. if {lvl.%player%} is less than 9:
  315. set {lvl.%player%} to 9
  316. send " &6» &7Awansowales na: &39 Poziom&7!"
  317. stop
  318. if {pkt.%player%} is larger than 960:
  319. if {lvl.%player%} is less than 10:
  320. set {lvl.%player%} to 10
  321. send " &6» &7Awansowales na: &310 Poziom&7!"
  322. stop
  323. if {pkt.%player%} is larger than 1140:
  324. if {lvl.%player%} is less than 11:
  325. set {lvl.%player%} to 11
  326. send " &6» &7Awansowales na: &311 Poziom&7!"
  327. stop
  328. if {pkt.%player%} is larger than 1320:
  329. if {lvl.%player%} is less than 12:
  330. set {lvl.%player%} to 12
  331. send " &6» &7Awansowales na: &312 Poziom&7!"
  332. stop
  333. if {pkt.%player%} is larger than 1540:
  334. if {lvl.%player%} is less than 13:
  335. set {lvl.%player%} to 13
  336. send " &6» &7Awansowales na: &313 Poziom&7!"
  337. stop
  338. if {pkt.%player%} is larger than 1760:
  339. if {lvl.%player%} is less than 14:
  340. set {lvl.%player%} to 14
  341. send " &6» &7Awansowales na: &314 Poziom&7!"
  342. stop
  343. if {pkt.%player%} is larger than 1980:
  344. if {lvl.%player%} is less than 15:
  345. set {lvl.%player%} to 15
  346. send " &6» &7Awansowales na: &315 Poziom&7!"
  347. broadcast "&7Gracz &3%player% &7awansowal na &315 poziom&7!"
  348. stop
  349. if {pkt.%player%} is larger than 2180:
  350. if {lvl.%player%} is less than 16:
  351. set {lvl.%player%} to 16
  352. send " &6» &7Awansowales na: &316 Poziom&7!"
  353. stop
  354. if {pkt.%player%} is larger than 2300:
  355. if {lvl.%player%} is less than 17:
  356. set {lvl.%player%} to 17
  357. send " &6» &7Awansowales na: &317 Poziom&7!"
  358. stop
  359. if {pkt.%player%} is larger than 2520:
  360. if {lvl.%player%} is less than 18:
  361. set {lvl.%player%} to 18
  362. send " &6» &7Awansowales na: &318 Poziom&7!"
  363. stop
  364. if {pkt.%player%} is larger than 2740:
  365. if {lvl.%player%} is less than 19:
  366. set {lvl.%player%} to 19
  367. send " &6» &7Awansowales na: &319 Poziom&7!"
  368. stop
  369. if {pkt.%player%} is larger than 2960:
  370. if {lvl.%player%} is less than 20:
  371. set {lvl.%player%} to 20
  372. send " &6» &7Awansowales na: &320 Poziom&7!"
  373. stop
  374. if {pkt.%player%} is larger than 3180:
  375. if {lvl.%player%} is less than 21:
  376. set {lvl.%player%} to 21
  377. send " &6» &7Awansowales na: &321 Poziom&7!"
  378. stop
  379. if {pkt.%player%} is larger than 3400:
  380. if {lvl.%player%} is less than 22:
  381. set {lvl.%player%} to 22
  382. send " &6» &7Awansowales na: &322 Poziom&7!"
  383. stop
  384. if {pkt.%player%} is larger than 3620:
  385. if {lvl.%player%} is less than 23:
  386. set {lvl.%player%} to 23
  387. send " &6» &7Awansowales na: &323 Poziom&7!"
  388. stop
  389. if {pkt.%player%} is larger than 3840:
  390. if {lvl.%player%} is less than 24:
  391. set {lvl.%player%} to 24
  392. send " &6» &7Awansowales na: &324 Poziom&7!"
  393. stop
  394. if {pkt.%player%} is larger than 4060:
  395. if {lvl.%player%} is less than 25:
  396. set {lvl.%player%} to 25
  397. send " &6» &7Awansowales na: &325 Poziom&7!"
  398. stop
  399. if {pkt.%player%} is larger than 4280:
  400. if {lvl.%player%} is less than 26:
  401. set {lvl.%player%} to 26
  402. send " &6» &7Awansowales na: &326 Poziom&7!"
  403. stop
  404. if {pkt.%player%} is larger than 4500:
  405. if {lvl.%player%} is less than 27:
  406. set {lvl.%player%} to 27
  407. send " &6» &7Awansowales na: &327 Poziom&7!"
  408. stop
  409. if {pkt.%player%} is larger than 4720:
  410. if {lvl.%player%} is less than 28:
  411. set {lvl.%player%} to 28
  412. send " &6» &7Awansowales na: &328 Poziom&7!"
  413. stop
  414. if {pkt.%player%} is larger than 4940:
  415. if {lvl.%player%} is less than 29:
  416. set {lvl.%player%} to 29
  417. send " &6» &7Awansowales na: &329 Poziom&7!"
  418. stop
  419. if {pkt.%player%} is larger than 5160:
  420. if {lvl.%player%} is less than 30:
  421. set {lvl.%player%} to 30
  422. send " &6» &7Awansowales na: &630 Poziom&7!"
  423. broadcast "&7Gracz &3%player% &7awansowal na &330 poziom&7!"
  424. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement