szumielxd

Drop

Oct 19th, 2018
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.15 KB | None | 0 0
  1. on enable:
  2. set {_item} to emerald ore
  3. set 1st line of {_item}'s lore to "&apostaw na ziemi, aby aktywowac stoniarke!"
  4. set 2nd line of {_item}'s lore to "&bzniszcz zlotym kilofem, aby usunac stoniarke"
  5. register new shaped recipe for {_item} named "&2&lGenerator Stone" using obsidian, obsidian, obsidian, obsidian, diamond, obsidian, obsidian, stone, obsidian
  6.  
  7. #on inventory close:
  8. # name of event-inventory starts with "&2&lDrop z ":
  9. # wait 2 ticks
  10. # loop all items in player's inventory:
  11. # loop-item is air:
  12. # continue
  13. # 1st line of lore of loop-item is "&eWroc do glownego menu":
  14. # clear player's inventory
  15. # kill player
  16. # wait 2 ticks
  17. # execute console command "minecraft:kick %player% KYS i nie wracaj oszuscie"
  18. # stop
  19. # 1st line of lore of loop-item contains "&9drop ":
  20. # 2nd line of lore of loop-item is "&awlaczono" or "&4wylaczono":
  21. # clear player's inventory
  22. # kill player
  23. # wait 2 ticks
  24. # execute console command "minecraft:kick %player% KYS i nie wracaj oszuscie"
  25. # stop
  26. # else if name of event-inventory is "&2&lMenu Dropu":
  27. # wait 2 ticks
  28. # loop all items in player's inventory:
  29. # loop-item is air:
  30. # continue
  31. # 1st line of lore of loop-item is "&eWroc do glownego menu":
  32. # clear player's inventory
  33. # kill player
  34. # wait 2 ticks
  35. # execute console command "minecraft:kick %player% KYS i nie wracaj oszuscie"
  36. # stop
  37. # 1st line of lore of loop-item contains "&9drop ":
  38. # 2nd line of lore of loop-item is "&awlaczono" or "&4wylaczono":
  39. # clear player's inventory
  40. # kill player
  41. # wait 2 ticks
  42. # execute console command "minecraft:kick %player% KYS i nie wracaj oszuscie"
  43. # stop
  44. #
  45. #
  46. #on inventory open:
  47. # name of event-inventory starts with "&2&lDrop z ":
  48. # loop all items in player's inventory:
  49. # loop-item is air:
  50. # continue
  51. # 1st line of lore of loop-item contains "&9drop ":
  52. # 2nd line of lore of loop-item is "&awlaczono" or "&4wylaczono":
  53. # clear player's inventory
  54. # kill player
  55. # wait 2 ticks
  56. # execute console command "minecraft:kick %player% KYS i nie wracaj oszuscie"
  57. # else if name of event-inventory is "&2&lMenu Dropu":
  58. # loop all items in player's inventory:
  59. # loop-item is air:
  60. # continue
  61. # 1st line of lore of loop-item contains "&9drop ":
  62. # 2nd line of lore of loop-item is "&awlaczono" or "&4wylaczono":
  63. # clear player's inventory
  64. # kill player
  65. # wait 2 ticks
  66. # execute console command "minecraft:kick %player% KYS i nie wracaj oszuscie"
  67.  
  68. function woodDrop(p: player):
  69. open chest with 3 rows named "&2&lDrop z drewna" to {_p}
  70. if {drop.off.%{_p}%.wood.stick} is set:
  71. set {_p}'s current inventory's slot 0 to stick named "&ePatyk" with lore "&9drop 10%%" and "&4wylaczono"
  72. else:
  73. set {_p}'s current inventory's slot 0 to stick named "&ePatyk" with lore "&9drop 10%%" and "&awlaczono"
  74. if {drop.off.%{_p}%.wood.charcoal} is set:
  75. set {_p}'s current inventory's slot 1 to charcoal named "&eWegiel" with lore "&9drop 5%%" and "&4wylaczono"
  76. else:
  77. set {_p}'s current inventory's slot 1 to charcoal named "&eWegiel" with lore "&9drop 5%%" and "&awlaczono"
  78. if {drop.off.%{_p}%.wood.slimeball} is set:
  79. set {_p}'s current inventory's slot 2 to slimeball named "&eKula szlamu" with lore "&9drop 3%%" and "&4wylaczono"
  80. else:
  81. set {_p}'s current inventory's slot 2 to slimeball named "&eKula szlamu" with lore "&9drop 3%%" and "&awlaczono"
  82. if {drop.off.%{_p}%.wood.log} is set:
  83. set {_p}'s current inventory's slot 3 to oak log named "&eDrewno" with lore "&9drop 3%%" and "&4wylaczono"
  84. else:
  85. set {_p}'s current inventory's slot 3 to oak log named "&eDrewno" with lore "&9drop 3%%" and "&awlaczono"
  86. if {drop.off.%{_p}%.wood.sapling} is set:
  87. set {_p}'s current inventory's slot 4 to oak sapling named "&eSadzonki" with lore "&9drop 3%%" and "&4wylaczono"
  88. else:
  89. set {_p}'s current inventory's slot 4 to oak sapling named "&eSadzonki" with lore "&9drop 3%%" and "&awlaczono"
  90. if {drop.off.%{_p}%.wood.prismarine} is set:
  91. set {_p}'s current inventory's slot 5 to prismarine crystal named "&eKrysztal Pryzmarynu" with lore "&9drop 1.5%%" and "&4wylaczono"
  92. else:
  93. set {_p}'s current inventory's slot 5 to prismarine crystal named "&eKrysztal Pryzmarynu" with lore "&9drop 1.5%%" and "&awlaczono"
  94. set {_p}'s current inventory's slot 26 to barrier named "&4&lOut!" with lore "&eWroc do glownego menu"
  95.  
  96.  
  97. function invisibleDrop(p: player):
  98. open chest with 3 rows named "&2&lDrop z niewidzialnych blokow" to {_p}
  99. set {_p}'s current inventory's slot 0 to dead grass named "&eDeath Bush" with lore "&9drop 45%%" and "&awlaczono"
  100. if {drop.off.%{_p}%.invisible.zelazo} is set:
  101. set {_p}'s current inventory's slot 1 to iron ingot named "&eZelazo" with lore "&9drop 30%%" and "&4wylaczono"
  102. else:
  103. set {_p}'s current inventory's slot 1 to iron ingot named "&eZelazo" with lore "&9drop 30%%" and "&awlaczono"
  104. if {drop.off.%{_p}%.invisible.ref} is set:
  105. set {_p}'s current inventory's slot 2 to golden apple named "&eRefile" with lore "&9drop 8%%" and "&4wylaczono"
  106. else:
  107. set {_p}'s current inventory's slot 2 to golden apple named "&eRefile" with lore "&9drop 35%%" and "&awlaczono"
  108. if {drop.off.%{_p}%.invisible.zloto} is set:
  109. set {_p}'s current inventory's slot 3 to golden ingot named "&eZloto" with lore "&9drop 20%%" and "&4wylaczono"
  110. else:
  111. set {_p}'s current inventory's slot 3 to golden ingot named "&eZloto" with lore "&9drop 20%%" and "&awlaczono"
  112. if {drop.off.%{_p}%.invisible.emerald} is set:
  113. set {_p}'s current inventory's slot 4 to emerald named "&eEmeraldy" with lore "&9drop 15%%" and "&4wylaczono"
  114. else:
  115. set {_p}'s current inventory's slot 4 to emerald named "&eEmeraldy" with lore "&9drop 15%%" and "&awlaczono"
  116. if {drop.off.%{_p}%.invisible.diament} is set:
  117. set {_p}'s current inventory's slot 5 to diamond named "&eDiamenty" with lore "&9drop 10%%" and "&4wylaczono"
  118. else:
  119. set {_p}'s current inventory's slot 5 to diamond named "&eDiamenty" with lore "&9drop 10%%" and "&awlaczono"
  120. if {drop.off.%{_p}%.invisible.kox} is set:
  121. set {_p}'s current inventory's slot 6 to enchanted golden apple named "&eKoxy" with lore "&9drop 10%%" and "&4wylaczono"
  122. else:
  123. set {_p}'s current inventory's slot 6 to enchanted golden apple named "&eKoxy" with lore "&9drop 10%%" and "&awlaczono"
  124. if {drop.off.%{_p}%.invisible.blaze} is set:
  125. set {_p}'s current inventory's slot 7 to blaze rod named "&eOgnista palka" with lore "&9drop 8%%" and "&4wylaczono"
  126. else:
  127. set {_p}'s current inventory's slot 7 to blaze rod named "&eOgnista palka" with lore "&9drop 8%%" and "&awlaczono"
  128. if {drop.off.%{_p}%.invisible.wither} is set:
  129. set {_p}'s current inventory's slot 8 to wither skeleton head named "&eGlowa Withera" with lore "&9drop 5%%" and "&4wylaczono"
  130. else:
  131. set {_p}'s current inventory's slot 8 to wither skeleton head named "&eGlowa Withera" with lore "&9drop 5%%" and "&awlaczono"
  132. if {drop.off.%{_p}%.invisible.star} is set:
  133. set {_p}'s current inventory's slot 9 to nether star named "&eNetherowa gwiazda" with lore "&9drop 1%%" and "&4wylaczono"
  134. else:
  135. set {_p}'s current inventory's slot 9 to nether star named "&eNetherowa gwiazda" with lore "&9drop 1%%" and "&awlaczono"
  136. if {drop.off.%{_p}%.invisible.spawner} is set:
  137. set {_p}'s current inventory's slot 10 to spawner named "&eSpawner" with lore "&9drop 1%%" and "&4wylaczono"
  138. else:
  139. set {_p}'s current inventory's slot 10 to spawner named "&eSpawner" with lore "&9drop 1%%" and "&awlaczono"
  140. set {_p}'s current inventory's slot 26 to barrier named "&4&lOut!" with lore "&eWroc do glownego menu"
  141.  
  142.  
  143. function stoneDrop(p: player):
  144. open chest with 3 rows named "&2&lDrop z kamienia" to {_p}
  145. if {drop.off.%{_p}%.stone.wegiel} is set:
  146. set {_p}'s current inventory's slot 0 to charcoal named "&eWegiel" with lore "&9drop 8%%" and "&4wylaczono"
  147. else:
  148. set {_p}'s current inventory's slot 0 to charcoal named "&eWegiel" with lore "&9drop 8%%" and "&awlaczono"
  149. if {drop.off.%{_p}%.stone.zelazo} is set:
  150. set {_p}'s current inventory's slot 1 to iron ingot named "&eSztabka zelaza" with lore "&9drop 7%%" and "&4wylaczono"
  151. else:
  152. set {_p}'s current inventory's slot 1 to iron ingot named "&eSztabka zelaza" with lore "&9drop 7%%" and "&awlaczono"
  153. if {drop.off.%{_p}%.stone.zloto} is set:
  154. set {_p}'s current inventory's slot 2 to golden ingot named "&eSztabka zlota" with lore "&9drop 5%%" and "&4wylaczono"
  155. else:
  156. set {_p}'s current inventory's slot 2 to golden ingot named "&eSztabka zlota" with lore "&9drop 5%%" and "&awlaczono"
  157. if {drop.off.%{_p}%.stone.lapis} is set:
  158. set {_p}'s current inventory's slot 3 to lapis named "&eLapis" with lore "&9drop 3%%" and "&4wylaczono"
  159. else:
  160. set {_p}'s current inventory's slot 3 to lapis named "&eLapis" with lore "&9drop 3%%" and "&awlaczono"
  161. if {drop.off.%{_p}%.stone.redstone} is set:
  162. set {_p}'s current inventory's slot 4 to redstone named "&eRedstone" with lore "&9drop 3%%" and "&4wylaczono"
  163. else:
  164. set {_p}'s current inventory's slot 4 to redstone named "&eRedstone" with lore "&9drop 3%%" and "&awlaczono"
  165. if {drop.off.%{_p}%.stone.emerald} is set:
  166. set {_p}'s current inventory's slot 5 to emerald named "&eEmerald" with lore "&9drop 2%%" and "&4wylaczono"
  167. else:
  168. set {_p}'s current inventory's slot 5 to emerald named "&eEmerald" with lore "&9drop 2%%" and "&awlaczono"
  169. if {drop.off.%{_p}%.stone.diament} is set:
  170. set {_p}'s current inventory's slot 6 to diamond named "&eDiament" with lore "&9drop 2%%" and "&4wylaczono"
  171. else:
  172. set {_p}'s current inventory's slot 6 to diamond named "&eDiament" with lore "&9drop 2%%" and "&awlaczono"
  173. set {_p}'s current inventory's slot 26 to barrier named "&4&lOut!" with lore "&eWroc do glownego menu"
  174.  
  175.  
  176. function mainMenu(p: player):
  177. open chest with 5 rows named "&2&lMenu Dropu" to {_p}
  178. if {dropped.stone.%{_p}%} is not set:
  179. set {_p}'s current inventory's slot 20 to stone named "&eDrop ze stone" with lore "&aWykopano: 0"
  180. else:
  181. set {_p}'s current inventory's slot 20 to stone named "&eDrop ze stone" with lore "&aWykopano: %{dropped.stone.%{_p}%}%"
  182. if {dropped.invisible.%{_p}%} is not set:
  183. set {_p}'s current inventory's slot 22 to plain glass block named "&eDrop z niewidzialnych blokow" with lore "&aWykopano: 0"
  184. else:
  185. set {_p}'s current inventory's slot 22 to plain glass block named "&eDrop z niewidzialnych blokow" with lore "&aWykopano: %{dropped.invisible.%{_p}%}%"
  186. if {dropped.wood.%{_p}%} is not set:
  187. set {_p}'s current inventory's slot 24 to oak log named "&eDrop z drewna" with lore "&aWykopano: 0"
  188. else:
  189. set {_p}'s current inventory's slot 24 to oak log named "&eDrop z drewna" with lore "&aWykopano: %{dropped.wood.%{_p}%}%"
  190. if {drop.messages.%{_p}%} is set:
  191. set {_p}'s current inventory's slot 40 to book and quill named "&eInfo o dropie" with lore "&4wylaczono"
  192. else:
  193. set {_p}'s current inventory's slot 40 to book and quill named "&eInfo o dropie" with lore "&awlaczono"
  194.  
  195.  
  196.  
  197. command /drop:
  198. permission: gracz.drop
  199. trigger:
  200. mainMenu(player)
  201.  
  202.  
  203. on inventory click:
  204. if inventory name of current inventory of player is "&2&lMenu Dropu":
  205. set clicked slot to air
  206.  
  207. # STONE DROP
  208. if event-slot is slot 20 of player's current inventory:
  209. cancel event
  210. stoneDrop(player)
  211.  
  212. # INVISIBLE DROP
  213. if event-slot is slot 22 of player's current inventory:
  214. cancel event
  215. invisibleDrop(player)
  216.  
  217.  
  218. # WOOD DROP
  219. if event-slot is slot 24 of player's current inventory:
  220. cancel event
  221. woodDrop(player)
  222. if event-slot is slot 40 of player's current inventory:
  223. cancel event
  224. if {drop.messages.%player%} is set:
  225. delete {drop.messages.%player%}
  226. else:
  227. set {drop.messages.%player%} to true
  228. mainMenu(player)
  229. # send "%click type%" to "szumielxd_" parsed as player
  230. # if click type is left mouse button with shift or right mouse button with shift:
  231. # wait 5 ticks
  232. # send "&4&l%player% Wykonuje" to "szumielxd_" parsed as player
  233. # if inventory name of current inventory of player do not start with "&2&lDrop z":
  234. # if inventory name of current inventory of player is not "&2&lMenu Dropu":
  235. # loop all items in player's inventory:
  236. # loop-item is air:
  237. # continue
  238. # 1st line of lore of loop-item contains "&9drop ":
  239. # 2nd line of lore of loop-item is "&awlaczono" or "&4wylaczono":
  240. # clear player's inventory
  241. # kill player
  242. # wait 2 ticks
  243. # execute console command "minecraft:kick %player% KYS i nie wracaj oszuscie"
  244. # send "&4&lOszust"
  245.  
  246.  
  247.  
  248.  
  249. if inventory name of current inventory of player is "&2&lDrop z kamienia":
  250. set clicked slot to air
  251. if event-slot is slot 0 of player's current inventory:
  252. if {drop.off.%player%.stone.wegiel} is set:
  253. delete {drop.off.%player%.stone.wegiel}
  254. else:
  255. set {drop.off.%player%.stone.wegiel} to true
  256. stoneDrop(player)
  257. if event-slot is slot 1 of player's current inventory:
  258. cancel event
  259. if {drop.off.%player%.stone.zelazo} is set:
  260. delete {drop.off.%player%.stone.zelazo}
  261. else:
  262. set {drop.off.%player%.stone.zelazo} to true
  263. stoneDrop(player)
  264. if event-slot is slot 2 of player's current inventory:
  265. cancel event
  266. if {drop.off.%player%.stone.zloto} is set:
  267. delete {drop.off.%player%.stone.zloto}
  268. else:
  269. set {drop.off.%player%.stone.zloto} to true
  270. stoneDrop(player)
  271. if event-slot is slot 3 of player's current inventory:
  272. cancel event
  273. if {drop.off.%player%.stone.lapis} is set:
  274. delete {drop.off.%player%.stone.lapis}
  275. else:
  276. set {drop.off.%player%.stone.lapis} to true
  277. stoneDrop(player)
  278. if event-slot is slot 4 of player's current inventory:
  279. cancel event
  280. if {drop.off.%player%.stone.redstone} is set:
  281. delete {drop.off.%player%.stone.redstone}
  282. else:
  283. set {drop.off.%player%.stone.redstone} to true
  284. stoneDrop(player)
  285. if event-slot is slot 5 of player's current inventory:
  286. cancel event
  287. if {drop.off.%player%.stone.emerald} is set:
  288. delete {drop.off.%player%.stone.emerald}
  289. else:
  290. set {drop.off.%player%.stone.emerald} to true
  291. stoneDrop(player)
  292. if event-slot is slot 6 of player's current inventory:
  293. cancel event
  294. if {drop.off.%player%.stone.diament} is set:
  295. delete {drop.off.%player%.stone.diament}
  296. else:
  297. set {drop.off.%player%.stone.diament} to true
  298. stoneDrop(player)
  299. if event-slot is slot 26 of player's current inventory:
  300. cancel event
  301. mainMenu(player)
  302.  
  303. # if click type is left mouse button with shift or right mouse button with shift:
  304. # wait 5 ticks
  305. # if inventory name of current inventory of player do not start with "&2&lDrop z":
  306. # if inventory name of current inventory of player is not "&2&lMenu Dropu":
  307. # loop all items in player's inventory:
  308. # loop-item is air:
  309. # continue
  310. # 1st line of lore of loop-item contains "&9drop ":
  311. # 2nd line of lore of loop-item is "&awlaczono" or "&4wylaczono":
  312. # clear player's inventory
  313. # kill player
  314. # wait 2 ticks
  315. # execute console command "minecraft:kick %player% KYS i nie wracaj oszuscie"
  316.  
  317.  
  318. if inventory name of current inventory of player is "&2&lDrop z niewidzialnych blokow":
  319. set clicked slot to air
  320. if event-slot is slot 0 of player's current inventory:
  321. cancel event
  322. close player's inventory
  323. send "&cTego nikt ci nie pozwolil wylaczyc"
  324.  
  325. if event-slot is slot 2 of player's current inventory:
  326. cancel event
  327. if {drop.off.%player%.invisible.ref} is set:
  328. delete {drop.off.%player%.invisible.ref}
  329. else:
  330. set {drop.off.%player%.invisible.ref} to true
  331. invisibleDrop(player)
  332. if event-slot is slot 1 of player's current inventory:
  333. cancel event
  334. if {drop.off.%player%.invisible.zelazo} is set:
  335. delete {drop.off.%player%.invisible.zelazo}
  336. else:
  337. set {drop.off.%player%.invisible.zelazo} to true
  338. invisibleDrop(player)
  339. if event-slot is slot 3 of player's current inventory:
  340. cancel event
  341. if {drop.off.%player%.invisible.zloto} is set:
  342. delete {drop.off.%player%.invisible.zloto}
  343. else:
  344. set {drop.off.%player%.invisible.zloto} to true
  345. invisibleDrop(player)
  346. if event-slot is slot 4 of player's current inventory:
  347. cancel event
  348. if {drop.off.%player%.invisible.emerald} is set:
  349. delete {drop.off.%player%.invisible.emerald}
  350. else:
  351. set {drop.off.%player%.invisible.emerald} to true
  352. invisibleDrop(player)
  353. if event-slot is slot 5 of player's current inventory:
  354. cancel event
  355. if {drop.off.%player%.invisible.diament} is set:
  356. delete {drop.off.%player%.invisible.diament}
  357. else:
  358. set {drop.off.%player%.invisible.diament} to true
  359. invisibleDrop(player)
  360. if event-slot is slot 6 of player's current inventory:
  361. cancel event
  362. if {drop.off.%player%.invisible.kox} is set:
  363. delete {drop.off.%player%.invisible.kox}
  364. else:
  365. set {drop.off.%player%.invisible.kox} to true
  366. invisibleDrop(player)
  367. if event-slot is slot 7 of player's current inventory:
  368. cancel event
  369. if {drop.off.%player%.invisible.blaze} is set:
  370. delete {drop.off.%player%.invisible.blaze}
  371. else:
  372. set {drop.off.%player%.invisible.blaze} to true
  373. invisibleDrop(player)
  374. if event-slot is slot 8 of player's current inventory:
  375. cancel event
  376. if {drop.off.%player%.invisible.wither} is set:
  377. delete {drop.off.%player%.invisible.wither}
  378. else:
  379. set {drop.off.%player%.invisible.wither} to true
  380. invisibleDrop(player)
  381. if event-slot is slot 9 of player's current inventory:
  382. cancel event
  383. if {drop.off.%player%.invisible.star} is set:
  384. delete {drop.off.%player%.invisible.star}
  385. else:
  386. set {drop.off.%player%.invisible.star} to true
  387. invisibleDrop(player)
  388. if event-slot is slot 10 of player's current inventory:
  389. cancel event
  390. if {drop.off.%player%.invisible.spawner} is set:
  391. delete {drop.off.%player%.invisible.spawner}
  392. else:
  393. set {drop.off.%player%.invisible.spawner} to true
  394. invisibleDrop(player)
  395. if event-slot is slot 26 of player's current inventory:
  396. cancel event
  397. mainMenu(player)
  398.  
  399. # if click type is left mouse button with shift or right mouse button with shift:
  400. # wait 5 ticks
  401. # if inventory name of current inventory of player do not start with "&2&lDrop z":
  402. # if inventory name of current inventory of player is not "&2&lMenu Dropu":
  403. # loop all items in player's inventory:
  404. # loop-item is air:
  405. # continue
  406. # 1st line of lore of loop-item contains "&9drop ":
  407. # 2nd line of lore of loop-item is "&awlaczono" or "&4wylaczono":
  408. # clear player's inventory
  409. # kill player
  410. # wait 2 ticks
  411. # execute console command "minecraft:kick %player% KYS i nie wracaj oszuscie"
  412.  
  413.  
  414. if inventory name of current inventory of player is "&2&lDrop z drewna":
  415. set clicked slot to air
  416. if event-slot is slot 0 of player's current inventory:
  417. cancel event
  418. if {drop.off.%player%.wood.stick} is set:
  419. delete {drop.off.%player%.wood.stick}
  420. else:
  421. set {drop.off.%player%.wood.stick} to true
  422. woodDrop(player)
  423. if event-slot is slot 1 of player's current inventory:
  424. cancel event
  425. if {drop.off.%player%.wood.charcoal} is set:
  426. delete {drop.off.%player%.wood.charcoal}
  427. else:
  428. set {drop.off.%player%.wood.charcoal} to true
  429. woodDrop(player)
  430. if event-slot is slot 2 of player's current inventory:
  431. cancel event
  432. if {drop.off.%player%.wood.slimeball} is set:
  433. delete {drop.off.%player%.wood.slimeball}
  434. else:
  435. set {drop.off.%player%.wood.slimeball} to true
  436. woodDrop(player)
  437. if event-slot is slot 3 of player's current inventory:
  438. cancel event
  439. if {drop.off.%player%.wood.log} is set:
  440. delete {drop.off.%player%.wood.log}
  441. else:
  442. set {drop.off.%player%.wood.log} to true
  443. woodDrop(player)
  444. if event-slot is slot 4 of player's current inventory:
  445. cancel event
  446. if {drop.off.%player%.wood.sapling} is set:
  447. delete {drop.off.%player%.wood.sapling}
  448. else:
  449. set {drop.off.%player%.wood.sapling} to true
  450. woodDrop(player)
  451. if event-slot is slot 5 of player's current inventory:
  452. cancel event
  453. if {drop.off.%player%.wood.prismarine} is set:
  454. delete {drop.off.%player%.wood.prismarine}
  455. else:
  456. set {drop.off.%player%.wood.prismarine} to true
  457. woodDrop(player)
  458. if event-slot is slot 26 of player's current inventory:
  459. cancel event
  460. mainMenu(player)
  461.  
  462. # if click type is left mouse button with shift or right mouse button with shift:
  463. # wait 5 ticks
  464. # if inventory name of current inventory of player do not start with "&2&lDrop z":
  465. # if inventory name of current inventory of player is not "&2&lMenu Dropu":
  466. # loop all items in player's inventory:
  467. # loop-item is air:
  468. # continue
  469. # 1st line of lore of loop-item contains "&9drop ":
  470. # 2nd line of lore of loop-item is "&awlaczono" or "&4wylaczono":
  471. # clear player's inventory
  472. # kill player
  473. # wait 2 ticks
  474. # execute console command "minecraft:kick %player% KYS i nie wracaj oszuscie"
  475.  
  476.  
  477.  
  478.  
  479. # BARRIER_BLOCK
  480. on break plain glass block:
  481. player's gamemode is survival or adventure:
  482. name of player's tool is not "&6&lBron Ostateczna":
  483. stop
  484. set {_x} to random number between 1 and 8
  485. add {_x} to player's xp
  486. add 1 to {dropped.invisible.%player%}
  487. player is in region "superkopalnia":
  488. chance of 1%:
  489. set {_double} to true
  490. chance of 45%:
  491. {_double} is true:
  492. drop 20 dead grass
  493. if {drop.messages.%player%} is set:
  494. exit 3 sections
  495. message "&aZnalazles &e2 &aDeath Bush'e!"
  496. else:
  497. drop 10 dead grass
  498. if {drop.messages.%player%} is set:
  499. exit 3 sections
  500. message "&aZnalazles &e1 &aDeath Bush'a!"
  501. chance of 30%:
  502. if {drop.off.%player%.invisible.zelazo} is set:
  503. exit 2 sections
  504. {_double} is true:
  505. drop 2 iron ingot
  506. if {drop.messages.%player%} is set:
  507. exit 3 sections
  508. message "&aZnalazles &e2 &aZelazne sztabki!"
  509. else:
  510. drop iron ingot
  511. if {drop.messages.%player%} is set:
  512. exit 3 sections
  513. message "&aZnalazles &e1 &aZelazna sztabke!"
  514. chance of 20%:
  515. if {drop.off.%player%.invisible.ref} is set:
  516. exit 2 sections
  517. {_double} is true:
  518. drop 2 golden apple item
  519. if {drop.messages.%player%} is set:
  520. exit 3 sections
  521. message "&aZnalazles &e2 &aRefy!"
  522. else:
  523. drop golden apple item
  524. if {drop.messages.%player%} is set:
  525. exit 3 sections
  526. message "&aZnalazles &e1 &aRefa!"
  527. chance of 20%:
  528. if {drop.off.%player%.invisible.zloto} is set:
  529. exit 2 sections
  530. {_double} is true:
  531. drop 2 golden ingot
  532. if {drop.messages.%player%} is set:
  533. exit 3 sections
  534. message "&aZnalazles &e2 &aZlote sztabki!"
  535. else:
  536. drop golden ingot
  537. if {drop.messages.%player%} is set:
  538. exit 3 sections
  539. message "&aZnalazles &e1 &aZlota sztabke!"
  540. chance of 15%:
  541. if {drop.off.%player%.invisible.emerald} is set:
  542. exit 2 sections
  543. {_double} is true:
  544. drop 2 emerald
  545. if {drop.messages.%player%} is set:
  546. exit 3 sections
  547. message "&aZnalazles &e2 &aEmeraldy!"
  548. else:
  549. drop emerald
  550. if {drop.messages.%player%} is set:
  551. exit 3 sections
  552. message "&aZnalazles &e1 &aEmeralda!"
  553. chance of 10%:
  554. if {drop.off.%player%.invisible.diament} is set:
  555. exit 2 sections
  556. {_double} is true:
  557. drop 2 diamond
  558. if {drop.messages.%player%} is set:
  559. exit 3 sections
  560. message "&aZnalazles &e2 &aDiamenty!"
  561. else:
  562. drop diamond
  563. if {drop.messages.%player%} is set:
  564. exit 3 sections
  565. message "&aZnalazles &e1 &aDiamenta!"
  566. chance of 10%:
  567. if {drop.off.%player%.invisible.kox} is set:
  568. exit 2 sections
  569. {_double} is true:
  570. drop 2 enchanted golden apple
  571. if {drop.messages.%player%} is set:
  572. exit 3 sections
  573. message "&aZnalazles &e2 &aKoxy!"
  574. else:
  575. drop enchanted golden apple
  576. if {drop.messages.%player%} is set:
  577. exit 3 sections
  578. message "&aZnalazles &e1 &aKoxa!"
  579. chance of 8%:
  580. if {drop.off.%player%.invisible.blaze} is set:
  581. exit 2 sections
  582. {_double} is true:
  583. drop 2 blaze rod
  584. if {drop.messages.%player%} is set:
  585. exit 3 sections
  586. message "&aZnalazles &e2 &aOgniste palki!"
  587. else:
  588. drop blaze rod
  589. if {drop.messages.%player%} is set:
  590. exit 3 sections
  591. message "&aZnalazles &e1 &aOgnista palke!"
  592. chance of 5%:
  593. if {drop.off.%player%.invisible.wither} is set:
  594. exit 2 sections
  595. {_double} is true:
  596. drop 2 wither skeleton head
  597. if {drop.messages.%player%} is set:
  598. exit 3 sections
  599. message "&aZnalazles &e2 &aGlowy withera!"
  600. else:
  601. drop wither skeleton head
  602. if {drop.messages.%player%} is set:
  603. exit 3 sections
  604. message "&aZnalazles &e1 &aGlowe withera!"
  605. chance of 1%:
  606. if {drop.off.%player%.invisible.star} is set:
  607. exit 2 sections
  608. {_double} is true:
  609. drop 2 nether star
  610. if {drop.messages.%player%} is set:
  611. exit 3 sections
  612. message "&aZnalazles &e2 &aNetherowe gwiazdy!"
  613. else:
  614. drop nether star
  615. if {drop.messages.%player%} is set:
  616. exit 3 sections
  617. message "&aZnalazles &e1 &aNetherowa gwiazde!"
  618. chance of 1%:
  619. if {drop.off.%player%.invisible.spawner} is set:
  620. exit 2 sections
  621. {_double} is true:
  622. drop 2 spawners
  623. if {drop.messages.%player%} is set:
  624. exit 3 sections
  625. message "&aZnalazles &e2 &aSpawnery!"
  626. else:
  627. drop spawner
  628. if {drop.messages.%player%} is set:
  629. exit 3 sections
  630. message "&aZnalazles &e1 &aSpawner!"
  631. chance of 0.2%:
  632. {_double} is true:
  633. drop 2 dragon heads
  634. message "&bZnalazles 2 &aGlowy &5Smoka kresu!"
  635. else:
  636. drop dragon head
  637. message "&bZnalazles 1 &aGlowe &5Smoka kresu!"
  638.  
  639. # DREWNO
  640. on break log:
  641. player's gamemode is survival or adventure:
  642. add 1 to {dropped.wood.%player%}
  643. chance of 1%:
  644. set {_double} to true
  645. chance of 10%:
  646. if {drop.off.%player%.wood.stick} is set:
  647. exit 2 sections
  648. {_double} is true:
  649. drop 2 stick
  650. if {drop.messages.%player%} is set:
  651. exit 3 sections
  652. message "&aZnalazles &e2 &aPatyki!"
  653. else:
  654. drop stick
  655. if {drop.messages.%player%} is set:
  656. exit 3 sections
  657. message "&aZnalazles &e1 &aPatyk!"
  658. chance of 5%:
  659. if {drop.off.%player%.wood.charcoal} is set:
  660. exit 2 sections
  661. {_double} is true:
  662. drop 2 charcoal
  663. if {drop.messages.%player%} is set:
  664. exit 3 sections
  665. message "&aZnalazles &e2 &aWegiele!"
  666. else:
  667. drop charcoal
  668. if {drop.messages.%player%} is set:
  669. exit 3 sections
  670. message "&aZnalazles &e1 &aWegiel!"
  671. chance of 3%:
  672. if {drop.off.%player%.wood.slimeball} is set:
  673. exit 2 sections
  674. {_double} is true:
  675. drop 2 slimeball
  676. if {drop.messages.%player%} is set:
  677. exit 3 sections
  678. message "&aZnalazles &e2 &aKule Szlamu!"
  679. else:
  680. drop slimeball
  681. if {drop.messages.%player%} is set:
  682. exit 3 sections
  683. message "&aZnalazles &e1 &aKule Szlamu!"
  684. chance of 3%:
  685. if {drop.off.%player%.wood.log} is set:
  686. exit 2 sections
  687. {_double} is true:
  688. event-block is oak log:
  689. drop 2 oak log
  690. event-block is spruce log:
  691. drop 2 spruce log
  692. event-block is birch log:
  693. drop 2 birch log
  694. event-block is jungle log:
  695. drop 2 jungle log
  696. event-block is acacia log:
  697. drop 2 acacia log
  698. event-block is dark oak log:
  699. drop 2 dark oak log
  700. if {drop.messages.%player%} is set:
  701. exit 3 sections
  702. message "&aZnalazles &e2 &aPnie drzew!"
  703. else:
  704. event-block is oak log:
  705. drop oak log
  706. event-block is spruce log:
  707. drop spruce log
  708. event-block is birch log:
  709. drop birch log
  710. event-block is jungle log:
  711. drop jungle log
  712. event-block is acacia log:
  713. drop acacia log
  714. event-block is dark oak log:
  715. drop dark oak log
  716. if {drop.messages.%player%} is set:
  717. exit 3 sections
  718. message "&aZnalazles &e1 &aPien drzewa!"
  719. chance of 3%:
  720. if {drop.off.%player%.wood.sapling} is set:
  721. exit 2 sections
  722. {_double} is true:
  723. event-block is oak log:
  724. drop 2 oak sapling
  725. event-block is spruce log:
  726. drop 2 spruce sapling
  727. event-block is birch log:
  728. drop 2 birch sapling
  729. event-block is jungle log:
  730. drop 2 jungle sapling
  731. event-block is acacia log:
  732. drop 2 acacia sapling
  733. event-block is dark oak log:
  734. drop 2 dark oak sapling
  735. if {drop.messages.%player%} is set:
  736. exit 3 sections
  737. message "&aZnalazles &e2 &aSadzonki drzew!"
  738. else:
  739. event-block is oak log:
  740. drop oak sapling
  741. event-block is spruce log:
  742. drop spruce sapling
  743. event-block is birch log:
  744. drop birch sapling
  745. event-block is jungle log:
  746. drop jungle sapling
  747. event-block is acacia log:
  748. drop acacia sapling
  749. event-block is dark oak log:
  750. drop dark oak sapling
  751. if {drop.messages.%player%} is set:
  752. exit 3 sections
  753. message "&aZnalazles &e1 &aSadzonke drzewa!"
  754. chance of 1.5%:
  755. if {drop.off.%player%.wood.prismarine} is set:
  756. exit 2 sections
  757. {_double} is true:
  758. drop 2 prismarine crystal
  759. if {drop.messages.%player%} is set:
  760. exit 3 sections
  761. message "&bZnalazles &e2 &bKrysztaly pryzmarynu!"
  762. else:
  763. drop prismarine crystal
  764. if {drop.messages.%player%} is set:
  765. exit 3 sections
  766. message "&bZnalazles &e1 &bKrysztal pryzmarynu!"
  767.  
  768. # KAMIEN
  769. on break stone:
  770. player's gamemode is survival or adventure:
  771. set {_x} to random number between 0.1 and 0.5
  772. add {_x} to player's xp
  773. add 1 to {dropped.stone.%player%}
  774. chance of 1%:
  775. set {_double} to true
  776. chance of 8%:
  777. if {drop.off.%player%.stone.wegiel} is set:
  778. exit 2 sections
  779. {_double} is true:
  780. drop 2 charcoal
  781. if {drop.messages.%player%} is set:
  782. exit 3 sections
  783. message "&aZnalazles &e2 &aWegle drzewne!"
  784. else:
  785. drop charcoal
  786. if {drop.messages.%player%} is set:
  787. exit 3 sections
  788. message "&aZnalazles &e1 &aWegiel drzewny!"
  789. chance of 7%:
  790. if {drop.off.%player%.stone.zelazo} is set:
  791. exit 2 sections
  792. {_double} is true:
  793. drop 2 iron ingot
  794. if {drop.messages.%player%} is set:
  795. exit 3 sections
  796. message "&aZnalazles &e2 &aZelazne sztabki!"
  797. else:
  798. drop iron ingot
  799. if {drop.messages.%player%} is set:
  800. exit 3 sections
  801. message "&aZnalazles &e1 &aZelazna sztabke!"
  802. chance of 5%:
  803. if {drop.off.%player%.stone.zloto} is set:
  804. exit 2 sections
  805. {_double} is true:
  806. drop 2 golden ingot
  807. if {drop.messages.%player%} is set:
  808. exit 3 sections
  809. message "&aZnalazles &e2 &aSztabki zlota!"
  810. else:
  811. drop golden ingot
  812. if {drop.messages.%player%} is set:
  813. exit 3 sections
  814. message "&aZnalazles &e1 &aSztabke zlota!"
  815. chance of 3%:
  816. if {drop.off.%player%.stone.lapis} is set:
  817. exit 2 sections
  818. {_double} is true:
  819. drop 2 lapis item
  820. if {drop.messages.%player%} is set:
  821. exit 3 sections
  822. message "&aZnalazles &e2 &aOdlamki lazurytu!"
  823. else:
  824. drop lapis item
  825. if {drop.messages.%player%} is set:
  826. exit 3 sections
  827. message "&aZnalazles &e1 &aZlota Odlamek lazurytu!"
  828. chance of 3%:
  829. if {drop.off.%player%.stone.redstone} is set:
  830. exit 2 sections
  831. {_double} is true:
  832. drop 2 redstone
  833. if {drop.messages.%player%} is set:
  834. exit 3 sections
  835. message "&aZnalazles &e2 &aCzerwone proszki!"
  836. else:
  837. drop redstone
  838. if {drop.messages.%player%} is set:
  839. exit 3 sections
  840. message "&aZnalazles &e1 &aCzerwony proszek!"
  841. chance of 2%:
  842. if {drop.off.%player%.stone.emerald} is set:
  843. exit 2 sections
  844. {_double} is true:
  845. drop 2 emerald
  846. if {drop.messages.%player%} is set:
  847. exit 3 sections
  848. message "&aZnalazles &e2 &aEmeraldy!"
  849. else:
  850. drop emerald
  851. if {drop.messages.%player%} is set:
  852. exit 3 sections
  853. message "&aZnalazles &e1 &aEmeralda!"
  854. chance of 2%:
  855. if {drop.off.%player%.stone.diament} is set:
  856. exit 2 sections
  857. {_double} is true:
  858. drop 2 diamond
  859. if {drop.messages.%player%} is set:
  860. exit 3 sections
  861. message "&aZnalazles &e2 &aDiamenty!"
  862. else:
  863. drop diamond
  864. if {drop.messages.%player%} is set:
  865. exit 3 sections
  866. message "&aZnalazles &e1 &aDiamenta!"
Advertisement
Add Comment
Please, Sign In to add comment