HeroseQ

Hero Drop - Wersja stabilna (1.7.10)

Nov 7th, 2015
608
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.07 KB | None | 0 0
  1. #Hero Drop - Wersja stabilna
  2.  
  3.  
  4. #Zmienne
  5. variables:
  6. {sb.on.%player%} = false #Czy skrypt ma automatycznie pokazywać scoreboard
  7.  
  8. {drop_cobblestone.%player%} = false
  9. {drop_item1.%player%} = false
  10. {drop_item2.%player%} = false
  11. {drop_item3.%player%} = false
  12. {drop_item4.%player%} = false
  13. {drop_item5.%player%} = false
  14. {drop_item6.%player%} = false
  15. {drop_item7.%player%} = false
  16. {drop_item8.%player%} = false
  17. {drop_item9.%player%} = false
  18. {drop_item10.%player%} = false
  19. {level.%player%} = 1
  20. {wykopany-stone.%player%} = 0
  21. {exp.%player%} = 0
  22. {online} = 0
  23.  
  24. #Zmienne od skilli pvp.
  25.  
  26. {skill.podrzut.%player%} = false
  27. {skill.podrzut.aktywny.%player%} = true
  28.  
  29. on join:
  30. set {playerprotect.%player%} to true
  31. on join:
  32. add 1 to {online}
  33.  
  34. on quit:
  35. remove 1 from {online}
  36.  
  37.  
  38.  
  39.  
  40. options:
  41.  
  42. #Itemy ktore dropia
  43.  
  44. item1: coal
  45. item2: iron ingot
  46. item3: gold ingot
  47. item4: redstone
  48. item5: lapis lazuli
  49. item6: emerald
  50. item7: diamond
  51. item8: ender pearl
  52. item9: slimeball
  53. item10: gunpowder
  54.  
  55. #System poziomow
  56. tag: &6[&eTwój TAG&6]
  57. lvl-start: 0
  58.  
  59. #Szanse na drop
  60.  
  61. chance_item1: 1%
  62. chance_item2: 1.8%
  63. chance_item3: 0.7%
  64. chance_item4: 0.6%
  65. chance_item5: 0.5%
  66. chance_item6: 0.65%
  67. chance_item7: 0.70%
  68. chance_item8: 0.25%
  69. chance_item9: 0.45%
  70. chance_item10: 0.15%
  71.  
  72. #Szansa z fortune 3
  73.  
  74. fortune_chance_item1: 1.3%
  75. fortune_chance_item2: 2.1%
  76. fortune_chance_item3: 0.9%
  77. fortune_chance_item4: 1%
  78. fortune_chance_item5: 0.8%
  79. fortune_chance_item6: 0.95%
  80. fortune_chance_item7: 1%
  81. fortune_chance_item8: 0.55%
  82. fortune_chance_item9: 0.75%
  83. fortune_chance_item10: 0.45%
  84. #Koordynaty Y od ktorych mozna znalesc dany item.
  85.  
  86. wysokosc_diament: 15
  87. wysokosc_emerald: 25
  88.  
  89. #Wiadomosci w komendach
  90. chance-item1: 1
  91. chance-item2: 1.8
  92. chance-item3: 0.7
  93. chance-item4: 0.6
  94. chance-item5: 0.5
  95. chance-item6: 0.65
  96. chance-item7: 0.70
  97. chance-item8: 0.25
  98. chance-item9: 0.45
  99. chance-item10: 0.15
  100.  
  101.  
  102. command /kamien [<text>] [<offlineplayer>]:
  103. aliases: stone, drop
  104. trigger:
  105. arg 1 is not set:
  106. send "&7--------------------------"
  107. send "{@tag} &7> &2Twoj poziom to > &c%{level.%player%}%"
  108. send "{@tag} &7> &2Twoj exp to > &c%{exp.%player%}%"
  109. send "{@tag} &7> &2Wykopales &c%{wykopany-stone.%player%}% &2stone !"
  110. send "&7--------------------------"
  111. send "&7>&e/kamien info &7- &2Informacje o systemie"
  112. send "&7>&e/kamien przedmioty &7- &2Informacje o dropie"
  113. send "&7>&e/kamien sprawdz (gracz) &7- &2Statystyki danego gracza"
  114. send "&7>&e/opcje &7- &2Opcje dropu"
  115. send "&7--------------------------"
  116.  
  117. arg 1 is "przedmioty":
  118. send "&7------------------------------------------"
  119. send "&6Szanse na drop poszczegolnych itemow z kamienia"
  120. send "&7 ( W procentach ! )"
  121. send "&7------------------------------------------"
  122. send "&7- &eWegiel &7> &2{@chance-item1}"
  123. send "&7- &eSztabka zelaza &7> &2{@chance-item2}"
  124. send "&7- &eSztabka zlota &7> &2{@chance-item3}"
  125. send "&7- &eRed Stone &7> &2{@chance-item4}"
  126. send "&7- &eLapis Lazuli &7> &2{@chance-item5}"
  127. send "&7- &eSzmaragd &7> &2{@chance-item6} &7(Y> 25)"
  128. send "&7- &eDiament &7> &2{@chance-item7} &7(Y> 15)"
  129. send "&7- &ePerla &7> &2{@chance-item8}"
  130. send "&7- &eSlime Ball &7> &2{@chance-item9}"
  131. send "&7- &eProch &7> &2{@chance-item10}"
  132. send "&7------------------------------------------"
  133.  
  134. arg 1 is "info":
  135. send "&7--------------------------"
  136. send "&6Informacje o systemie poziomow"
  137. send "&7--------------------------"
  138. send "&7> &2Exp mozesz zdobyc znajdujac przedmioty dropiace z kamienia"
  139. send "&7> &cSystem wspiera tylko Fortune 3 ! &7(+ 0.3 procent do kazdego itemu)"
  140. send "&7> &2Przedmioty ktore mozesz znalezc pod komenda &7(/kamien przedmioty)"
  141.  
  142. arg 1 is "sprawdz":
  143. arg 2 is set:
  144. send "&7--------------------------"
  145. send "&6Informacje o graczu %arg offlineplayer%"
  146. send "&7--------------------------"
  147. if {level.%arg offlineplayer%} is set:
  148. send "{@tag} &7> &2Poziom > &c%{level.%arg offlineplayer%}%"
  149. else:
  150. send "{@tag} &7> &2Poziom > &c0"
  151. if {exp.%arg offlineplayer%} is not 0:
  152. send "{@tag} &7> &2Exp > &c%{exp.%arg offlineplayer%}%"
  153. else:
  154. send "{@tag} &7> &2Exp > &c0"
  155. if {wykopany-stone.%arg offlineplayer%} is not 0:
  156. send "{@tag} &7> &2Wykopany kamien > &c%{wykopany-stone.%arg offlineplayer%}%"
  157. else:
  158. send "{@tag} &7> &2Wykopany kamien > &c0"
  159. send "&7--------------------------"
  160. else:
  161. send "{@tag} &7> &cNie podales nicku gracza !"
  162.  
  163. arg 1 is not "sprawdz" or "przedmioty" or "info":
  164. send "&7--------------------------"
  165. send "{@tag} &7> &2Twoj poziom to > &c%{level.%player%}%"
  166. send "{@tag} &7> &2Twoj exp to > &c%{exp.%player%}%"
  167. send "{@tag} &7> &2Wykopales &c%{wykopany-stone.%player%}% &2stone !"
  168. send "&7--------------------------"
  169. send "&7>&e/kamien info &7- &2Informacje o systemie"
  170. send "&7>&e/kamien przedmioty &7- &2Drop poszczegulnych przedmiotow z kamienia"
  171. send "&7>&e/kamien sprawdz (gracz) &7- &2Statystyki danego gracza"
  172. send "&7--------------------------"
  173.  
  174.  
  175.  
  176.  
  177.  
  178. on chat:
  179. player is op:
  180. stop
  181. else:
  182. set the player's display name to "&7[&2%{level.%player%}%&7] &r%display name of player%"
  183.  
  184.  
  185.  
  186.  
  187. #EXP
  188.  
  189. on mine of stone:
  190. give 2 xp to the player
  191. add 1 to {wykopany-stone.%player%}
  192. if {exp.%player%} = 200:
  193. set {level.%player%} to 2
  194. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 2 poziom !" to the player
  195. stop
  196.  
  197. if {exp.%player%} = 300:
  198. set {level.%player%} to 3
  199. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 3 poziom !" to the player
  200. stop
  201.  
  202. if {exp.%player%} = 400:
  203. set {level.%player%} to 4
  204. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 4 poziom !" to the player
  205. stop
  206. if {exp.%player%} = 500:
  207. set {level.%player%} to 5
  208. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 5 poziom !" to the player
  209. broadcast "{@tag} &2Gracz &6%player% &2awansowal na 5 poziom ! Tym samym dostaje range HeroS na 2 dni !"
  210. run player command "setrank %player% HeroS 2 day" as op
  211. stop
  212.  
  213. if {exp.%player%} = 600:
  214. set {level.%player%} to 6
  215. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 6 poziom !" to the player
  216. stop
  217. if {exp.%player%} = 700:
  218. set {level.%player%} to 7
  219. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 7 poziom !" to the player
  220. stop
  221. if {exp.%player%} = 800:
  222. set {level.%player%} to 8
  223. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 8 poziom !" to the player
  224. stop
  225. if {exp.%player%} = 900:
  226. set {level.%player%} to 9
  227. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 9 poziom !" to the player
  228. stop
  229. if {exp.%player%} = 1000:
  230. set {level.%player%} to 10
  231. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 10 poziom !" to the player
  232. broadcast "{@tag} &2Gracz &6%player% &2awansowal na 10 poziom ! Tym samym dostaje range HeroS na 3 dni !"
  233. run player command "setrank %player% HeroS 3 day" as op
  234. send "&cDostałeś nową umiejętność ! - Podrzut wroga. Aby jej użyć kliknij dwa razy spację !" to the player
  235. set {skill.podrzut.%player%} to true
  236. set {skill.podrzut.aktywny.%player%} to true
  237. stop
  238. if {exp.%player%} = 1100:
  239. set {level.%player%} to 11
  240. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 11 poziom !" to the player
  241. stop
  242. if {exp.%player%} = 1200:
  243. set {level.%player%} to 12
  244. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 12 poziom !" to the player
  245. stop
  246. if {exp.%player%} = 1300:
  247. set {level.%player%} to 13
  248. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 13 poziom !" to the player
  249. stop
  250. if {exp.%player%} = 1400:
  251. set {level.%player%} to 14
  252. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 14 poziom !" to the player
  253. stop
  254. if {exp.%player%} = 1500:
  255. set {level.%player%} to 15
  256. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 15 poziom !" to the player
  257. stop
  258. if {exp.%player%} = 1600:
  259. set {level.%player%} to 16
  260. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 16 poziom !" to the player
  261. stop
  262. if {exp.%player%} = 1700:
  263. set {level.%player%} to 17
  264. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 17 poziom !" to the player
  265. stop
  266. if {exp.%player%} = 1800:
  267. set {level.%player%} to 18
  268. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 18 poziom !" to the player
  269. stop
  270. if {exp.%player%} = 1900:
  271. set {level.%player%} to 19
  272. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 19 poziom !" to the player
  273. stop
  274. if {exp.%player%} = 2000:
  275. set {level.%player%} to 20
  276. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 20 poziom !" to the player
  277. run player command "setrank %player% HeroS 4 day" as op
  278. set {skill.spowolnienie.%player%} to true
  279. set {skill.spowolnienie.%player%.aktywny} to true
  280. broadcast "{@tag} &2Gracz &6%player% &2awansowal na 20 poziom ! Tym samym dostaje range HeroS na 4 dni !"
  281. stop
  282. if {exp.%player%} = 2100:
  283. set {level.%player%} to 21
  284. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 21 poziom !" to the player
  285. stop
  286. if {exp.%player%} = 2200:
  287. set {level.%player%} to 22
  288. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 22 poziom !" to the player
  289. stop
  290. if {exp.%player%} = 2300:
  291. set {level.%player%} to 23
  292. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 23 poziom !" to the player
  293. stop
  294. if {exp.%player%} = 2400:
  295. set {level.%player%} to 24
  296. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 24 poziom !" to the player
  297. stop
  298. if {exp.%player%} = 2500:
  299. set {level.%player%} to 25
  300. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 25 poziom !" to the player
  301. broadcast "{@tag} &2Gracz &6%player% &2awansowal na 25 poziom ! Tym samym dostaje range HeroS na 5 dni !"
  302. stop
  303. if {exp.%player%} = 2600:
  304. set {level.%player%} to 26
  305. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 26 poziom !" to the player
  306. stop
  307. if {exp.%player%} = 2700:
  308. set {level.%player%} to 27
  309. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 27 poziom !" to the player
  310. stop
  311. if {exp.%player%} = 2800:
  312. set {level.%player%} to 28
  313. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 28 poziom !" to the player
  314. stop
  315. if {exp.%player%} = 2900:
  316. set {level.%player%} to 29
  317. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 29 poziom !" to the player
  318. stop
  319. if {exp.%player%} = 3000:
  320. set {level.%player%} to 30
  321. send "&7> &2Gratulacje &e%player% &8! &2Awansowales na 30 poziom !" to the player
  322. run player command "setrank %player% HeroS 10 day" as op
  323. broadcast "{@tag} &cGracz &6%player% &cosiagnal 30 poziom ! Dostaje range HeroS na 10 dni !"
  324. stop
  325.  
  326.  
  327. on mine of any ore:
  328. cancel event
  329. drop 1 stone
  330. set block to air
  331. send "&a&lTen surowiec dropi tylko ze stone! Wiecej Informacji: /kamien"
  332.  
  333. on mine of emerald ore:
  334. cancel event
  335. drop 1 stone
  336. set block to air
  337. send "&a&lTen surowiec dropi tylko ze stone! Wiecej informacji: /kamien"
  338.  
  339.  
  340.  
  341. #Drop i inne badziewia
  342. on mine of stone:
  343. if {drop_cobblestone.%player%} is true:
  344. cancel event
  345. set event-block to air
  346. damage player's tool by 1
  347.  
  348. chance of {@chance_item1}:
  349. if {drop_item1.%player%} is false:
  350. if player's tool is not a diamond pickaxe of fortune 3:
  351. drop {@item1}
  352. show monster spawner flames behind the player
  353. display "&eZnalazles wegiel !" on bossbar with {online} percent by 5 seconds for player
  354. add 1 to {exp.%player%}
  355. stop
  356. chance of {@chance_item2}:
  357. if {drop_item2.%player%} is false:
  358. if player's tool is not a diamond pickaxe of fortune 3:
  359. drop {@item2}
  360. show monster spawner flames behind the player
  361. display "&eZnalazles zelazo !" on bossbar with {online} percent by 5 seconds for player
  362. add 1 to {exp.%player%}
  363. stop
  364. chance of {@chance_item3}:
  365. if {drop_item3.%player%} is false:
  366. if player's tool is not a diamond pickaxe of fortune 3:
  367. drop {@item3}
  368. show monster spawner flames behind the player
  369. display "&eZnalazles zloto !" on bossbar with {online} percent by 5 seconds for player
  370. add 1 to {exp.%player%}
  371. stop
  372. chance of {@chance_item4}:
  373. if {drop_item4.%player%} is false:
  374. if player's tool is not a diamond pickaxe of fortune 3:
  375. drop {@item4}
  376. show monster spawner flames behind the player
  377. display "&eZnalazles czerwony proszek !" on bossbar with {online} percent by 5 seconds for player
  378. add 1 to {exp.%player%}
  379. stop
  380. chance of {@chance_item5}:
  381. if {drop_item5.%player%} is false:
  382. if player's tool is not a diamond pickaxe of fortune 3:
  383. drop {@item5}
  384. show monster spawner flames behind the player
  385. display "&eZnalazles lapis lazuli !" on bossbar with {online} percent by 5 seconds for player
  386. add 1 to {exp.%player%}
  387. stop
  388. chance of {@chance_item6}:
  389. if {drop_item6.%player%} is false:
  390. if block's y-coordinate is smaller than {@wysokosc_emerald}:
  391. if player's tool is not a diamond pickaxe of fortune 3:
  392. drop {@item6}
  393. show monster spawner flames behind the player
  394. display "&eZnalazles szmaragd !" on bossbar with {online} percent by 5 seconds for player
  395. add 1 to {exp.%player%}
  396. stop
  397. chance of {@chance_item7}:
  398. if {drop_item7.%player%} is false:
  399. if block's y-coordinate is smaller than {@wysokosc_diament}:
  400. if player's tool is not a diamond pickaxe of fortune 3:
  401. drop {@item7}
  402. show monster spawner flames behind the player
  403. display "&eZnalazles diament !" on bossbar with {online} percent by 5 seconds for player
  404. add 1 to {exp.%player%}
  405. stop
  406. chance of {@chance_item8}:
  407. if {drop_item8.%player%} is false:
  408. if player's tool is not a diamond pickaxe of fortune 3:
  409. drop {@item8}
  410. show monster spawner flames behind the player
  411. display "&eZnalazles perle !" on bossbar with {online} percent by 5 seconds for player
  412. add 1 to {exp.%player%}
  413. stop
  414. chance of {@chance_item9}:
  415. if {drop_item9.%player%} is false:
  416. if player's tool is not a diamond pickaxe of fortune 3:
  417. drop {@item9}
  418. show monster spawner flames behind the player
  419. display "&eZnalazles slime ball !" on bossbar with {online} percent by 5 seconds for player
  420. stop
  421. chance of {@chance_item10}:
  422. if {drop_item10.%player%} is false:
  423. if player's tool is not a diamond pickaxe of fortune 3:
  424. drop {@item10}
  425. show monster spawner flames behind the player
  426. display "&eZnalazles proch !" on bossbar with {online} percent by 5 seconds for player
  427. add 1 to {exp.%player%}
  428. stop
  429.  
  430.  
  431. # Fortune 1
  432.  
  433. chance of {@chance_item1}+0.1:
  434. if {drop_item1.%player%} is false:
  435. if player's tool is a diamond pickaxe of fortune 1:
  436. drop {@item1}
  437. show monster spawner flames behind the player
  438. display "&eZnalazles wegiel ! &7(Fortune I)" on bossbar with {online} percent by 5 seconds for player
  439. stop
  440. chance of {@chance_item2}+0.1:
  441. if {drop_item2.%player%} is false:
  442. if player's tool is a diamond pickaxe of fortune 1:
  443. drop {@item2}
  444. show monster spawner flames behind the player
  445. display "&eZnalazles zelazo ! &7(Fortune I)" on bossbar with {online} percent by 5 seconds for player
  446. add 1 to {exp.%player%}
  447. stop
  448. chance of {@chance_item3}+0.1:
  449. if {drop_item3.%player%} is false:
  450. if player's tool is a diamond pickaxe of fortune 1:
  451. drop {@item3}
  452. show monster spawner flames behind the player
  453. display "&eZnalazles zloto ! &7(Fortune I)" on bossbar with {online} percent by 5 seconds for player
  454. add 1 to {exp.%player%}
  455. stop
  456. chance of {@chance_item4}+0.1:
  457. if {drop_item4.%player%} is false:
  458. if player's tool is a diamond pickaxe of fortune 1:
  459. drop {@item4}
  460. show monster spawner flames behind the player
  461. display "&eZnalazles czerwony proszek ! &7(Fortune I)" on bossbar with {online} percent by 5 seconds for player
  462. add 1 to {exp.%player%}
  463. stop
  464. chance of {@chance_item5}+0.1:
  465. if {drop_item5.%player%} is false:
  466. if player's tool is a diamond pickaxe of fortune 1:
  467. drop {@item5}
  468. show monster spawner flames behind the player
  469. display "&eZnalazles lapis lazuli ! &7(Fortune I)" on bossbar with {online} percent by 5 seconds for player
  470. add 1 to {exp.%player%}
  471. stop
  472. chance of {@chance_item6}+0.1:
  473. if {drop_item6.%player%} is false:
  474. if block's y-coordinate is smaller than {@wysokosc_emerald}:
  475. if player's tool is a diamond pickaxe of fortune 1:
  476. drop {@item6}
  477. show monster spawner flames behind the player
  478. display "&eZnalazles szmaragd ! &7(Fortune I)" on bossbar with {online} percent by 5 seconds for player
  479. add 1 to {exp.%player%}
  480. stop
  481. chance of {@chance_item7}+0.1:
  482. if {drop_item7.%player%} is false:
  483. if block's y-coordinate is smaller than {@wysokosc_diament}:
  484. if player's tool is a diamond pickaxe of fortune 1:
  485. drop {@item7}
  486. display "&eZnalazles diament ! &7(Fortune I)" on bossbar with {online} percent by 5 seconds for player
  487. show monster spawner flames behind the player
  488. add 1 to {exp.%player%}
  489. stop
  490. chance of {@chance_item8}+0.1:
  491. if {drop_item8.%player%} is false:
  492. if player's tool is a diamond pickaxe of fortune 1:
  493. drop {@item8}
  494. show monster spawner flames behind the player
  495. display "&eZnalazles perle ! &7(Fortune I)" on bossbar with {online} percent by 5 seconds for player
  496. stop
  497. chance of {@chance_item9}+0.1:
  498. if {drop_item9.%player%} is false:
  499. if player's tool is a diamond pickaxe of fortune 1:
  500. drop {@item9}
  501. display "&eZnalazles slime ball ! &7(Fortune I)" on bossbar with {online} percent by 5 seconds for player
  502. show monster spawner flames behind the player
  503. add 1 to {exp.%player%}
  504. stop
  505. chance of {@chance_item10}+0.1:
  506. if {drop_item10.%player%} is false:
  507. if player's tool is a diamond pickaxe of fortune 1:
  508. drop {@item10}
  509. display "&eZnalazles proch ! &7(Fortune I)" on bossbar with {online} percent by 5 seconds for player
  510. show monster spawner flames behind the player
  511. add 1 to {exp.%player%}
  512. stop
  513.  
  514.  
  515.  
  516.  
  517. # Fortune 2
  518.  
  519. chance of {@chance_item1}+0.2:
  520. if {drop_item1.%player%} is false:
  521. if player's tool is a diamond pickaxe of fortune 2:
  522. drop {@item1}
  523. show monster spawner flames behind the player
  524. display "&eZnalazles wegiel ! &7(Fortune II)" on bossbar with {online} percent by 5 seconds for player
  525. stop
  526. chance of {@chance_item2}+0.2:
  527. if {drop_item2.%player%} is false:
  528. if player's tool is a diamond pickaxe of fortune 2:
  529. drop {@item2}
  530. show monster spawner flames behind the player
  531. display "&eZnalazles zelazo ! &7(Fortune II)" on bossbar with {online} percent by 5 seconds for player
  532. add 1 to {exp.%player%}
  533. stop
  534. chance of {@chance_item3}+0.2:
  535. if {drop_item3.%player%} is false:
  536. if player's tool is a diamond pickaxe of fortune 2:
  537. drop {@item3}
  538. show monster spawner flames behind the player
  539. display "&eZnalazles zloto ! &7(Fortune II)" on bossbar with {online} percent by 5 seconds for player
  540. add 1 to {exp.%player%}
  541. stop
  542. chance of {@chance_item4}+0.2:
  543. if {drop_item4.%player%} is false:
  544. if player's tool is a diamond pickaxe of fortune 2:
  545. drop {@item4}
  546. show monster spawner flames behind the player
  547. display "&eZnalazles czerwony proszek ! &7(Fortune II)" on bossbar with {online} percent by 5 seconds for player
  548. add 1 to {exp.%player%}
  549. stop
  550. chance of {@chance_item5}+0.2:
  551. if {drop_item5.%player%} is false:
  552. if player's tool is a diamond pickaxe of fortune 2:
  553. drop {@item5}
  554. show monster spawner flames behind the player
  555. display "&eZnalazles lapis lazuli ! &7(Fortune II)" on bossbar with {online} percent by 5 seconds for player
  556. add 1 to {exp.%player%}
  557. stop
  558. chance of {@chance_item6}+0.2:
  559. if {drop_item6.%player%} is false:
  560. if block's y-coordinate is smaller than {@wysokosc_emerald}:
  561. if player's tool is a diamond pickaxe of fortune 2:
  562. drop {@item6}
  563. show monster spawner flames behind the player
  564. display "&eZnalazles szmaragd ! &7(Fortune II)" on bossbar with {online} percent by 5 seconds for player
  565. add 1 to {exp.%player%}
  566. stop
  567. chance of {@chance_item7}+0.2:
  568. if {drop_item7.%player%} is false:
  569. if block's y-coordinate is smaller than {@wysokosc_diament}:
  570. if player's tool is a diamond pickaxe of fortune 2:
  571. drop {@item7}
  572. display "&eZnalazles diament ! &7(Fortune II)" on bossbar with {online} percent by 5 seconds for player
  573. show monster spawner flames behind the player
  574. add 1 to {exp.%player%}
  575. stop
  576. chance of {@chance_item8}+0.2:
  577. if {drop_item8.%player%} is false:
  578. if player's tool is a diamond pickaxe of fortune 2:
  579. drop {@item8}
  580. show monster spawner flames behind the player
  581. display "&eZnalazles perle ! &7(Fortune II)" on bossbar with {online} percent by 5 seconds for player
  582. stop
  583. chance of {@chance_item9}+0.2:
  584. if {drop_item9.%player%} is false:
  585. if player's tool is a diamond pickaxe of fortune 2:
  586. drop {@item9}
  587. display "&eZnalazles slime ball ! &7(Fortune II)" on bossbar with {online} percent by 5 seconds for player
  588. show monster spawner flames behind the player
  589. add 1 to {exp.%player%}
  590. stop
  591. chance of {@chance_item10}+0.2:
  592. if {drop_item10.%player%} is false:
  593. if player's tool is a diamond pickaxe of fortune 2:
  594. drop {@item10}
  595. display "&eZnalazles proch ! &7(Fortune II)" on bossbar with {online} percent by 5 seconds for player
  596. show monster spawner flames behind the player
  597. add 1 to {exp.%player%}
  598. stop
  599.  
  600.  
  601. # Fortune 3
  602.  
  603. chance of {@fortune_chance_item1}:
  604. if {drop_item1.%player%} is false:
  605. if player's tool is a diamond pickaxe of fortune 3:
  606. drop {@item1}
  607. show monster spawner flames behind the player
  608. display "&eZnalazles wegiel ! &7(Fortune III)" on bossbar with {online} percent by 5 seconds for player
  609. stop
  610. chance of {@fortune_chance_item2}:
  611. if {drop_item2.%player%} is false:
  612. if player's tool is a diamond pickaxe of fortune 3:
  613. drop {@item2}
  614. show monster spawner flames behind the player
  615. display "&eZnalazles zelazo ! &7(Fortune III)" on bossbar with {online} percent by 5 seconds for player
  616. add 1 to {exp.%player%}
  617. stop
  618. chance of {@fortune_chance_item3}:
  619. if {drop_item3.%player%} is false:
  620. if player's tool is a diamond pickaxe of fortune 3:
  621. drop {@item3}
  622. show monster spawner flames behind the player
  623. display "&eZnalazles zloto ! &7(Fortune III)" on bossbar with {online} percent by 5 seconds for player
  624. add 1 to {exp.%player%}
  625. stop
  626. chance of {@fortune_chance_item4}:
  627. if {drop_item4.%player%} is false:
  628. if player's tool is a diamond pickaxe of fortune 3:
  629. drop {@item4}
  630. show monster spawner flames behind the player
  631. display "&eZnalazles czerwony proszek ! &7(Fortune III)" on bossbar with {online} percent by 5 seconds for player
  632. add 1 to {exp.%player%}
  633. stop
  634. chance of {@fortune_chance_item5}:
  635. if {drop_item5.%player%} is false:
  636. if player's tool is a diamond pickaxe of fortune 3:
  637. drop {@item5}
  638. show monster spawner flames behind the player
  639. display "&eZnalazles lapis lazuli ! &7(Fortune III)" on bossbar with {online} percent by 5 seconds for player
  640. add 1 to {exp.%player%}
  641. stop
  642. chance of {@fortune_chance_item6}:
  643. if {drop_item6.%player%} is false:
  644. if block's y-coordinate is smaller than {@wysokosc_emerald}:
  645. if player's tool is a diamond pickaxe of fortune 3:
  646. drop {@item6}
  647. show monster spawner flames behind the player
  648. display "&eZnalazles szmaragd ! &7(Fortune III)" on bossbar with {online} percent by 5 seconds for player
  649. add 1 to {exp.%player%}
  650. stop
  651. chance of {@fortune_chance_item7}:
  652. if {drop_item7.%player%} is false:
  653. if block's y-coordinate is smaller than {@wysokosc_diament}:
  654. if player's tool is a diamond pickaxe of fortune 3:
  655. drop {@item7}
  656. display "&eZnalazles diament ! &7(Fortune III)" on bossbar with {online} percent by 5 seconds for player
  657. show monster spawner flames behind the player
  658. add 1 to {exp.%player%}
  659. stop
  660. chance of {@fortune_chance_item8}:
  661. if {drop_item8.%player%} is false:
  662. if player's tool is a diamond pickaxe of fortune 3:
  663. drop {@item8}
  664. show monster spawner flames behind the player
  665. display "&eZnalazles perle ! &7(Fortune III)" on bossbar with {online} percent by 5 seconds for player
  666. stop
  667. chance of {@fortune_chance_item9}:
  668. if {drop_item9.%player%} is false:
  669. if player's tool is a diamond pickaxe of fortune 3:
  670. drop {@item9}
  671. display "&eZnalazles slime ball ! &7(Fortune III)" on bossbar with {online} percent by 5 seconds for player
  672. show monster spawner flames behind the player
  673. add 1 to {exp.%player%}
  674. stop
  675. chance of {@fortune_chance_item10}:
  676. if {drop_item10.%player%} is false:
  677. if player's tool is a diamond pickaxe of fortune 3:
  678. drop {@item10}
  679. display "&eZnalazles proch ! &7(Fortune III)" on bossbar with {online} percent by 5 seconds for player
  680. show monster spawner flames behind the player
  681. add 1 to {exp.%player%}
  682. stop
  683.  
  684. # Wylaczanie dropu poszczegulnych itemow
  685.  
  686.  
  687. #item1: coal
  688. #item2: iron ingot
  689. #item3: gold ingot
  690. #item4: redstone
  691. #item5: lapis lazuli
  692. #item6: emerald
  693. #item7: diamond
  694. #item8: ender pearl
  695. #item9: slimeball
  696. #item10: gunpowder
  697.  
  698.  
  699. command /opcje:
  700. trigger:
  701. open chest with 4 rows named "&fOpcje dropu" to player
  702. wait 2 tick
  703. format slot 0 of player with 1 of cobblestone named "&fCobblestone" with lore "&cWyłącz drop cobblestone" to run [set {drop_cobblestone.%player%} to true]
  704. format slot 9 of player with 1 of cobblestone named "&fCobblestone" with lore "&aWłącz drop cobblestone" to run [set {drop_cobblestone.%player%} to false]
  705.  
  706. format slot 1 of player with 1 of coal named "&fWęgiel" with lore "&cWyłącz drop węgla" to run [set {drop_item1.%player%} to true]
  707. format slot 10 of player with 1 of coal named "&fWęgiel" with lore "&aWłącz drop węgla" to run [set {drop_item1.%player%} to false]
  708.  
  709. format slot 2 of player with 1 of iron ingot named "&fŻelazo" with lore "&cWyłącz drop żelaza" to run [set {drop_item2.%player%} to true]
  710. format slot 11 of player with 1 of iron ingot named "&fŻelazo" with lore "&aWłącz drop żelaza" to run [set {drop_item2.%player%} to false]
  711.  
  712. format slot 3 of player with 1 of gold ingot named "&fZłoto" with lore "&cWyłącz drop złota" to run [set {drop_item3.%player%} to true]
  713. format slot 12 of player with 1 of gold ingot named "&fZłoto" with lore "&aWłącz drop złota" to run [set {drop_item3.%player%} to false]
  714.  
  715. format slot 4 of player with 1 of redstone named "&fRedstone" with lore "&cWyłącz drop redstone" to run [set {drop_item4.%player%} to true]
  716. format slot 13 of player with 1 of redstone named "&fRedstone" with lore "&aWłącz drop redstone" to run [set {drop_item4.%player%} to false]
  717.  
  718. format slot 5 of player with 1 of lapis lazuli named "&fLapis lazuli" with lore "&cWyłącz drop lapis lazuli" to run [set {drop_item5.%player%} to true]
  719. format slot 14 of player with 1 of lapis lazuli named "&fLapis lazuli" with lore "&aWłącz drop lapis lazuli" to run [set {drop_item5.%player%} to false]
  720.  
  721. format slot 6 of player with 1 of emerald named "&fSzmaragd" with lore "&cWyłącz drop szmaragdów" to run [set {drop_item6.%player%} to true]
  722. format slot 15 of player with 1 of emerald named "&fSzmaragd" with lore "&aWłącz drop szmaragdów" to run [set {drop_item6.%player%} to false]
  723.  
  724. format slot 7 of player with 1 of diamond named "&fDiament" with lore "&cWyłącz drop diamentów" to run [set {drop_item7.%player%} to true]
  725. format slot 16 of player with 1 of diamond named "&fDiament" with lore "&aWłącz drop diamentów" to run [set {drop_item7.%player%} to false]
  726.  
  727. format slot 8 of player with 1 of ender pearl named "&fPerła" with lore "&cWyłącz drop pereł" to run [set {drop_item8.%player%} to true]
  728. format slot 17 of player with 1 of ender pearl named "&fPerła" with lore "&aWłącz drop pereł" to run [set {drop_item8.%player%} to false]
  729.  
  730. format slot 18 of player with 1 of slimeball named "&fSlimeball" with lore "&cWyłącz drop slimeballów" to run [set {drop_item9.%player%} to true]
  731. format slot 27 of player with 1 of slimeball named "&fSlimeball" with lore "&aWłącz drop slimeballów" to run [set {drop_item9.%player%} to false]
  732.  
  733. format slot 19 of player with 1 of gunpowder named "&fProch" with lore "&cWyłącz drop prochu" to run [set {drop_item10.%player%} to true]
  734. format slot 28 of player with 1 of gunpowder named "&fProch" with lore "&aWłącz drop prochu" to run [set {drop_item10.%player%} to false]
  735.  
  736.  
  737.  
  738. #Skille :)
  739.  
  740. on join:
  741. if {level.%player%} is bigger than 10:
  742. enable fly for player
  743. set {skill.podrzut.aktywny.%player%} to true
  744.  
  745. on flight toggle:
  746. if player's gamemode is not creative:
  747. cancel event
  748. disable fly for player
  749. if {skill.podrzut.%player%} is true:
  750. if {skill.podrzut.aktywny.%player%} is true:
  751. send "&cUżyłeś umiejętności podrzutu wroga !" to the player
  752. loop players in radius 5 of player:
  753. push loop-player upwards at speed 1.3
  754. send "&4%player% podrzucił cię!" to loop-player
  755. set {skill.podrzut.aktywny.%player%} to false
  756. wait 10 real minutes
  757. set {skill.podrzut.aktywny.%player%} to true
  758. enable fly for player
  759. set {skill.podrzut.aktywny.%player%} to true
  760. send "&aZnowu możesz użyć umiejętności podrzutu wroga !" to the player
  761. on jump:
  762. if player is sneaking:
  763. if player's gamemode is not creative:
  764. if {skill.spowolnienie.%player%} is true:
  765. if {skill.spowolnienie.aktywny.%player%} is true:
  766. set {skill.spowolnienie.aktywny.%player%} to false
  767. send "&cUżyłeś umiejętności spowolnienia wroga !" to the player
  768. loop players in radius 5 of player:
  769. push loop-player backwards at speed 0.3
  770. apply slowness 3 to loop-players for 1 minute
  771. apply hunger 4 to loop-players for 1 minute
  772. send "&4%player% spowolnil Cie!" to loop-player
  773. wait 10 real minutes
  774. set {skill.spowolnienie.aktywny.%player%} to true
  775. send "&aZnowu możesz użyć umiejętności spowolnienia wroga !" to the player
Advertisement
Add Comment
Please, Sign In to add comment