Guest User

Craft Cycle Skript.sk

a guest
Oct 11th, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.66 KB | None | 0 0
  1. # Idea by: Maximus & PleatMC #
  2. # Skript by: Maximus #
  3. # Feel free to change the options below to your liking #
  4.  
  5. options:
  6. P: &5[&eCraft Cycle&5]&7
  7. Perm: skript.op
  8.  
  9.  
  10. command /craftcycle <text>:
  11. permission: {@Perm}
  12. usage: /craftcycle (<enable/disable/set/item>)
  13. trigger:
  14. if arg-1 is equal to "on" or "enable":
  15. set {craftcycle} to true
  16. send "{@P} has been enabled!" to command sender
  17. execute console command "/craftcycle set"
  18.  
  19. if arg-1 is equal to "off" or "disable":
  20. set {craftcycle} to false
  21. send "{@P} has been disabled!" to command sender
  22. delete {craftitem}
  23.  
  24. if arg-1 is equal to "set":
  25. set {craftitem} to a random integer between 1 and 20
  26.  
  27. if arg-1 is equal to "item":
  28. if {craftitem} is set:
  29. if {craftitem} is equal to 1:
  30. send "{@P} Current Item: &f&oBucket" to command sender
  31. if {craftitem} is equal to 2:
  32. send "{@P} Current Item: &f&oDiamond Sword" to command sender
  33. if {craftitem} is equal to 3:
  34. send "{@P} Current Item: &f&oIron Sword" to command sender
  35. if {craftitem} is equal to 4:
  36. send "{@P} Current Item: &f&oDiamond Pickaxe" to command sender
  37. if {craftitem} is equal to 5:
  38. send "{@P} Current Item: &f&oIron Pickaxe" to command sender
  39. if {craftitem} is equal to 6:
  40. send "{@P} Current Item: &f&oIron Helmet" to command sender
  41. if {craftitem} is equal to 7:
  42. send "{@P} Current Item: &f&oIron Chestplate" to command sender
  43. if {craftitem} is equal to 8:
  44. send "{@P} Current Item: &f&oIron Leggings" to command sender
  45. if {craftitem} is equal to 9:
  46. send "{@P} Current Item: &f&oIron Boots" to command sender
  47. if {craftitem} is equal to 10:
  48. send "{@P} Current Item: &f&oDiamond Helmet" to command sender
  49. if {craftitem} is equal to 11:
  50. send "{@P} Current Item: &f&oDiamond Chestplate" to command sender
  51. if {craftitem} is equal to 12:
  52. send "{@P} Current Item: &f&oDiamond Leggings" to command sender
  53. if {craftitem} is equal to 13:
  54. send "{@P} Current Item: &f&oDiamond Boots" to command sender
  55. if {craftitem} is equal to 14:
  56. send "{@P} Current Item: &f&oGolden Apple" to command sender
  57. if {craftitem} is equal to 15:
  58. send "{@P} Current Item: &f&oBow" to command sender
  59. if {craftitem} is equal to 16:
  60. send "{@P} Current Item: &f&oFishing Rod" to command sender
  61. if {craftitem} is equal to 17:
  62. send "{@P} Current Item: &f&oBook" to command sender
  63. if {craftitem} is equal to 18:
  64. send "{@P} Current Item: &f&oEnchantment Table" to command sender
  65. if {craftitem} is equal to 19:
  66. send "{@P} Current Item: &f&oAnvil" to command sender
  67. if {craftitem} is equal to 20:
  68. send "{@P} Current Item: &f&oShears" to command sender
  69.  
  70.  
  71. command /cycleitems:
  72. trigger:
  73. send "{@P} &7&lCraft Cycle Items:"
  74. send "&7- Bucket"
  75. send "&7- Diamond Sword"
  76. send "&7- Iron Sword"
  77. send "&7- Diamond Pickaxe"
  78. send "&7- Iron Pickaxe"
  79. send "&7- Iron Helmet"
  80. send "&7- Iron Chestplate"
  81. send "&7- Iron Leggings"
  82. send "&7- Iron Boots"
  83. send "&7- Diamond Helmet"
  84. send "&7- Diamond Chestplate"
  85. send "&7- Diamond Leggings"
  86. send "&7- Diamond Boots"
  87. send "&7- Golden Apple"
  88. send "&7- Bow"
  89. send "&7- Fishing Rod"
  90. send "&7- Book"
  91. send "&7- Enchantment Table"
  92. send "&7- Anvil"
  93. send "&7- Shears"
  94.  
  95. command /cyclerewards:
  96. trigger:
  97. send "{@P} &7&lCraft Cycle Rewards:"
  98. send "&7- 1 Diamond"
  99. send "&7- 20 Arrows"
  100. send "&7- 5 XP Bottles"
  101. send "&7- 7 Gold Ingots"
  102. send "&7- 4 String"
  103.  
  104.  
  105. on craft of bucket:
  106. if {craftcycle} is true:
  107. if {craftitem} is equal to 1:
  108. set {craftprize} to a random integer between 1 and 5
  109. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oBucket"
  110.  
  111. if {craftprize} is equal to 1:
  112. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  113. if player has enough space for 1 diamond:
  114. give player 1 diamond
  115. else:
  116. drop 1 diamond at the player
  117. if {craftprize} is equal to 2:
  118. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  119. if player has enough space for 20 arrow:
  120. give player 20 arrow
  121. else:
  122. drop 20 arrow at the player
  123. if {craftprize} is equal to 3:
  124. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  125. if player has enough space for 7 gold ingots:
  126. give player 7 gold ingots
  127. else:
  128. drop 7 gold ingots at the player
  129. if {craftprize} is equal to 4:
  130. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  131. if player has enough space for 5 384:
  132. give player 5 384
  133. else:
  134. drop 5 384 at the player
  135. if {craftprize} is equal to 5:
  136. broadcast "{@P} They have been rewarded with &f&o4 String"
  137. if player has enough space for 4 string:
  138. give player 4 string
  139. else:
  140. drop 4 string at the player
  141.  
  142. broadcast "{@P} A new item has now been cycled!"
  143. execute console command "/craftcycle set"
  144.  
  145. on craft of diamond sword:
  146. if {craftcycle} is true:
  147. if {craftitem} is equal to 2:
  148. set {craftprize} to a random integer between 1 and 5
  149. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oDiamond Sword"
  150.  
  151. if {craftprize} is equal to 1:
  152. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  153. if player has enough space for 1 diamond:
  154. give player 1 diamond
  155. else:
  156. drop 1 diamond at the player
  157. if {craftprize} is equal to 2:
  158. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  159. if player has enough space for 20 arrow:
  160. give player 20 arrow
  161. else:
  162. drop 20 arrow at the player
  163. if {craftprize} is equal to 3:
  164. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  165. if player has enough space for 7 gold ingots:
  166. give player 7 gold ingots
  167. else:
  168. drop 7 gold ingots at the player
  169. if {craftprize} is equal to 4:
  170. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  171. if player has enough space for 5 384:
  172. give player 5 384
  173. else:
  174. drop 5 384 at the player
  175. if {craftprize} is equal to 5:
  176. broadcast "{@P} They have been rewarded with &f&o4 String"
  177. if player has enough space for 4 string:
  178. give player 4 string
  179. else:
  180. drop 4 string at the player
  181.  
  182. broadcast "{@P} A new item has now been cycled!"
  183. execute console command "/craftcycle set"
  184.  
  185. on craft of iron sword:
  186. if {craftcycle} is true:
  187. if {craftitem} is equal to 3:
  188. set {craftprize} to a random integer between 1 and 5
  189. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oIron Sword"
  190.  
  191. if {craftprize} is equal to 1:
  192. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  193. if player has enough space for 1 diamond:
  194. give player 1 diamond
  195. else:
  196. drop 1 diamond at the player
  197. if {craftprize} is equal to 2:
  198. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  199. if player has enough space for 20 arrow:
  200. give player 20 arrow
  201. else:
  202. drop 20 arrow at the player
  203. if {craftprize} is equal to 3:
  204. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  205. if player has enough space for 7 gold ingots:
  206. give player 7 gold ingots
  207. else:
  208. drop 7 gold ingots at the player
  209. if {craftprize} is equal to 4:
  210. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  211. if player has enough space for 5 384:
  212. give player 5 384
  213. else:
  214. drop 5 384 at the player
  215. if {craftprize} is equal to 5:
  216. broadcast "{@P} They have been rewarded with &f&o4 String"
  217. if player has enough space for 4 string:
  218. give player 4 string
  219. else:
  220. drop 4 string at the player
  221.  
  222. broadcast "{@P} A new item has now been cycled!"
  223. execute console command "/craftcycle set"
  224.  
  225. on craft of diamond pickaxe:
  226. if {craftcycle} is true:
  227. if {craftitem} is equal to 4:
  228. set {craftprize} to a random integer between 1 and 5
  229. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oDiamond Pickaxe"
  230.  
  231. if {craftprize} is equal to 1:
  232. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  233. if player has enough space for 1 diamond:
  234. give player 1 diamond
  235. else:
  236. drop 1 diamond at the player
  237. if {craftprize} is equal to 2:
  238. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  239. if player has enough space for 20 arrow:
  240. give player 20 arrow
  241. else:
  242. drop 20 arrow at the player
  243. if {craftprize} is equal to 3:
  244. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  245. if player has enough space for 7 gold ingots:
  246. give player 7 gold ingots
  247. else:
  248. drop 7 gold ingots at the player
  249. if {craftprize} is equal to 4:
  250. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  251. if player has enough space for 5 384:
  252. give player 5 384
  253. else:
  254. drop 5 384 at the player
  255. if {craftprize} is equal to 5:
  256. broadcast "{@P} They have been rewarded with &f&o4 String"
  257. if player has enough space for 4 string:
  258. give player 4 string
  259. else:
  260. drop 4 string at the player
  261.  
  262. broadcast "{@P} A new item has now been cycled!"
  263. execute console command "/craftcycle set"
  264.  
  265. on craft of iron pickaxe:
  266. if {craftcycle} is true:
  267. if {craftitem} is equal to 5:
  268. set {craftprize} to a random integer between 1 and 5
  269. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oIron Pickaxe"
  270.  
  271. if {craftprize} is equal to 1:
  272. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  273. if player has enough space for 1 diamond:
  274. give player 1 diamond
  275. else:
  276. drop 1 diamond at the player
  277. if {craftprize} is equal to 2:
  278. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  279. if player has enough space for 20 arrow:
  280. give player 20 arrow
  281. else:
  282. drop 20 arrow at the player
  283. if {craftprize} is equal to 3:
  284. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  285. if player has enough space for 7 gold ingots:
  286. give player 7 gold ingots
  287. else:
  288. drop 7 gold ingots at the player
  289. if {craftprize} is equal to 4:
  290. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  291. if player has enough space for 5 384:
  292. give player 5 384
  293. else:
  294. drop 5 384 at the player
  295. if {craftprize} is equal to 5:
  296. broadcast "{@P} They have been rewarded with &f&o4 String"
  297. if player has enough space for 4 string:
  298. give player 4 string
  299. else:
  300. drop 4 string at the player
  301.  
  302. broadcast "{@P} A new item has now been cycled!"
  303. execute console command "/craftcycle set"
  304.  
  305. on craft of iron helmet:
  306. if {craftcycle} is true:
  307. if {craftitem} is equal to 6:
  308. set {craftprize} to a random integer between 1 and 5
  309. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oIron Helmet"
  310.  
  311. if {craftprize} is equal to 1:
  312. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  313. if player has enough space for 1 diamond:
  314. give player 1 diamond
  315. else:
  316. drop 1 diamond at the player
  317. if {craftprize} is equal to 2:
  318. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  319. if player has enough space for 20 arrow:
  320. give player 20 arrow
  321. else:
  322. drop 20 arrow at the player
  323. if {craftprize} is equal to 3:
  324. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  325. if player has enough space for 7 gold ingots:
  326. give player 7 gold ingots
  327. else:
  328. drop 7 gold ingots at the player
  329. if {craftprize} is equal to 4:
  330. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  331. if player has enough space for 5 384:
  332. give player 5 384
  333. else:
  334. drop 5 384 at the player
  335. if {craftprize} is equal to 5:
  336. broadcast "{@P} They have been rewarded with &f&o4 String"
  337. if player has enough space for 4 string:
  338. give player 4 string
  339. else:
  340. drop 4 string at the player
  341.  
  342. broadcast "{@P} A new item has now been cycled!"
  343. execute console command "/craftcycle set"
  344.  
  345. on craft of iron chestplate:
  346. if {craftcycle} is true:
  347. if {craftitem} is equal to 7:
  348. set {craftprize} to a random integer between 1 and 5
  349. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oIron Chestplate"
  350.  
  351. if {craftprize} is equal to 1:
  352. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  353. if player has enough space for 1 diamond:
  354. give player 1 diamond
  355. else:
  356. drop 1 diamond at the player
  357. if {craftprize} is equal to 2:
  358. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  359. if player has enough space for 20 arrow:
  360. give player 20 arrow
  361. else:
  362. drop 20 arrow at the player
  363. if {craftprize} is equal to 3:
  364. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  365. if player has enough space for 7 gold ingots:
  366. give player 7 gold ingots
  367. else:
  368. drop 7 gold ingots at the player
  369. if {craftprize} is equal to 4:
  370. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  371. if player has enough space for 5 384:
  372. give player 5 384
  373. else:
  374. drop 5 384 at the player
  375. if {craftprize} is equal to 5:
  376. broadcast "{@P} They have been rewarded with &f&o4 String"
  377. if player has enough space for 4 string:
  378. give player 4 string
  379. else:
  380. drop 4 string at the player
  381.  
  382. broadcast "{@P} A new item has now been cycled!"
  383. execute console command "/craftcycle set"
  384.  
  385. on craft of iron leggings:
  386. if {craftcycle} is true:
  387. if {craftitem} is equal to 8:
  388. set {craftprize} to a random integer between 1 and 5
  389. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oIron Leggings"
  390.  
  391. if {craftprize} is equal to 1:
  392. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  393. if player has enough space for 1 diamond:
  394. give player 1 diamond
  395. else:
  396. drop 1 diamond at the player
  397. if {craftprize} is equal to 2:
  398. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  399. if player has enough space for 20 arrow:
  400. give player 20 arrow
  401. else:
  402. drop 20 arrow at the player
  403. if {craftprize} is equal to 3:
  404. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  405. if player has enough space for 7 gold ingots:
  406. give player 7 gold ingots
  407. else:
  408. drop 7 gold ingots at the player
  409. if {craftprize} is equal to 4:
  410. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  411. if player has enough space for 5 384:
  412. give player 5 384
  413. else:
  414. drop 5 384 at the player
  415. if {craftprize} is equal to 5:
  416. broadcast "{@P} They have been rewarded with &f&o4 String"
  417. if player has enough space for 4 string:
  418. give player 4 string
  419. else:
  420. drop 4 string at the player
  421.  
  422. broadcast "{@P} A new item has now been cycled!"
  423. execute console command "/craftcycle set"
  424.  
  425. on craft of iron boots:
  426. if {craftcycle} is true:
  427. if {craftitem} is equal to 9:
  428. set {craftprize} to a random integer between 1 and 5
  429. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oIron Boots"
  430.  
  431. if {craftprize} is equal to 1:
  432. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  433. if player has enough space for 1 diamond:
  434. give player 1 diamond
  435. else:
  436. drop 1 diamond at the player
  437. if {craftprize} is equal to 2:
  438. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  439. if player has enough space for 20 arrow:
  440. give player 20 arrow
  441. else:
  442. drop 20 arrow at the player
  443. if {craftprize} is equal to 3:
  444. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  445. if player has enough space for 7 gold ingots:
  446. give player 7 gold ingots
  447. else:
  448. drop 7 gold ingots at the player
  449. if {craftprize} is equal to 4:
  450. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  451. if player has enough space for 5 384:
  452. give player 5 384
  453. else:
  454. drop 5 384 at the player
  455. if {craftprize} is equal to 5:
  456. broadcast "{@P} They have been rewarded with &f&o4 String"
  457. if player has enough space for 4 string:
  458. give player 4 string
  459. else:
  460. drop 4 string at the player
  461.  
  462. broadcast "{@P} A new item has now been cycled!"
  463. execute console command "/craftcycle set"
  464.  
  465. on craft of diamond helmet:
  466. if {craftcycle} is true:
  467. if {craftitem} is equal to 10:
  468. set {craftprize} to a random integer between 1 and 5
  469. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oDiamond Helmet"
  470.  
  471. if {craftprize} is equal to 1:
  472. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  473. if player has enough space for 1 diamond:
  474. give player 1 diamond
  475. else:
  476. drop 1 diamond at the player
  477. if {craftprize} is equal to 2:
  478. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  479. if player has enough space for 20 arrow:
  480. give player 20 arrow
  481. else:
  482. drop 20 arrow at the player
  483. if {craftprize} is equal to 3:
  484. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  485. if player has enough space for 7 gold ingots:
  486. give player 7 gold ingots
  487. else:
  488. drop 7 gold ingots at the player
  489. if {craftprize} is equal to 4:
  490. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  491. if player has enough space for 5 384:
  492. give player 5 384
  493. else:
  494. drop 5 384 at the player
  495. if {craftprize} is equal to 5:
  496. broadcast "{@P} They have been rewarded with &f&o4 String"
  497. if player has enough space for 4 string:
  498. give player 4 string
  499. else:
  500. drop 4 string at the player
  501.  
  502. broadcast "{@P} A new item has now been cycled!"
  503. execute console command "/craftcycle set"
  504.  
  505. on craft of diamond chestplate:
  506. if {craftcycle} is true:
  507. if {craftitem} is equal to 11:
  508. set {craftprize} to a random integer between 1 and 5
  509. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oDiamond Chestplate"
  510.  
  511. if {craftprize} is equal to 1:
  512. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  513. if player has enough space for 1 diamond:
  514. give player 1 diamond
  515. else:
  516. drop 1 diamond at the player
  517. if {craftprize} is equal to 2:
  518. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  519. if player has enough space for 20 arrow:
  520. give player 20 arrow
  521. else:
  522. drop 20 arrow at the player
  523. if {craftprize} is equal to 3:
  524. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  525. if player has enough space for 7 gold ingots:
  526. give player 7 gold ingots
  527. else:
  528. drop 7 gold ingots at the player
  529. if {craftprize} is equal to 4:
  530. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  531. if player has enough space for 5 384:
  532. give player 5 384
  533. else:
  534. drop 5 384 at the player
  535. if {craftprize} is equal to 5:
  536. broadcast "{@P} They have been rewarded with &f&o4 String"
  537. if player has enough space for 4 string:
  538. give player 4 string
  539. else:
  540. drop 4 string at the player
  541.  
  542. broadcast "{@P} A new item has now been cycled!"
  543. execute console command "/craftcycle set"
  544.  
  545. on craft of diamond leggings:
  546. if {craftcycle} is true:
  547. if {craftitem} is equal to 12:
  548. set {craftprize} to a random integer between 1 and 5
  549. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oDiamond Leggings"
  550.  
  551. if {craftprize} is equal to 1:
  552. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  553. if player has enough space for 1 diamond:
  554. give player 1 diamond
  555. else:
  556. drop 1 diamond at the player
  557. if {craftprize} is equal to 2:
  558. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  559. if player has enough space for 20 arrow:
  560. give player 20 arrow
  561. else:
  562. drop 20 arrow at the player
  563. if {craftprize} is equal to 3:
  564. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  565. if player has enough space for 7 gold ingots:
  566. give player 7 gold ingots
  567. else:
  568. drop 7 gold ingots at the player
  569. if {craftprize} is equal to 4:
  570. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  571. if player has enough space for 5 384:
  572. give player 5 384
  573. else:
  574. drop 5 384 at the player
  575. if {craftprize} is equal to 5:
  576. broadcast "{@P} They have been rewarded with &f&o4 String"
  577. if player has enough space for 4 string:
  578. give player 4 string
  579. else:
  580. drop 4 string at the player
  581.  
  582. broadcast "{@P} A new item has now been cycled!"
  583. execute console command "/craftcycle set"
  584.  
  585. on craft of diamond boots:
  586. if {craftcycle} is true:
  587. if {craftitem} is equal to 13:
  588. set {craftprize} to a random integer between 1 and 5
  589. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oDiamond Boots"
  590.  
  591. if {craftprize} is equal to 1:
  592. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  593. if player has enough space for 1 diamond:
  594. give player 1 diamond
  595. else:
  596. drop 1 diamond at the player
  597. if {craftprize} is equal to 2:
  598. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  599. if player has enough space for 20 arrow:
  600. give player 20 arrow
  601. else:
  602. drop 20 arrow at the player
  603. if {craftprize} is equal to 3:
  604. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  605. if player has enough space for 7 gold ingots:
  606. give player 7 gold ingots
  607. else:
  608. drop 7 gold ingots at the player
  609. if {craftprize} is equal to 4:
  610. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  611. if player has enough space for 5 384:
  612. give player 5 384
  613. else:
  614. drop 5 384 at the player
  615. if {craftprize} is equal to 5:
  616. broadcast "{@P} They have been rewarded with &f&o4 String"
  617. if player has enough space for 4 string:
  618. give player 4 string
  619. else:
  620. drop 4 string at the player
  621.  
  622. broadcast "{@P} A new item has now been cycled!"
  623. execute console command "/craftcycle set"
  624.  
  625. on craft of golden apple:
  626. if {craftcycle} is true:
  627. if {craftitem} is equal to 14:
  628. set {craftprize} to a random integer between 1 and 5
  629. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oGolden Apple"
  630.  
  631. if {craftprize} is equal to 1:
  632. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  633. if player has enough space for 1 diamond:
  634. give player 1 diamond
  635. else:
  636. drop 1 diamond at the player
  637. if {craftprize} is equal to 2:
  638. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  639. if player has enough space for 20 arrow:
  640. give player 20 arrow
  641. else:
  642. drop 20 arrow at the player
  643. if {craftprize} is equal to 3:
  644. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  645. if player has enough space for 7 gold ingots:
  646. give player 7 gold ingots
  647. else:
  648. drop 7 gold ingots at the player
  649. if {craftprize} is equal to 4:
  650. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  651. if player has enough space for 5 384:
  652. give player 5 384
  653. else:
  654. drop 5 384 at the player
  655. if {craftprize} is equal to 5:
  656. broadcast "{@P} They have been rewarded with &f&o4 String"
  657. if player has enough space for 4 string:
  658. give player 4 string
  659. else:
  660. drop 4 string at the player
  661.  
  662. broadcast "{@P} A new item has now been cycled!"
  663. execute console command "/craftcycle set"
  664.  
  665. on craft of bow:
  666. if {craftcycle} is true:
  667. if {craftitem} is equal to 15:
  668. set {craftprize} to a random integer between 1 and 5
  669. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oBow"
  670.  
  671. if {craftprize} is equal to 1:
  672. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  673. if player has enough space for 1 diamond:
  674. give player 1 diamond
  675. else:
  676. drop 1 diamond at the player
  677. if {craftprize} is equal to 2:
  678. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  679. if player has enough space for 20 arrow:
  680. give player 20 arrow
  681. else:
  682. drop 20 arrow at the player
  683. if {craftprize} is equal to 3:
  684. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  685. if player has enough space for 7 gold ingots:
  686. give player 7 gold ingots
  687. else:
  688. drop 7 gold ingots at the player
  689. if {craftprize} is equal to 4:
  690. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  691. if player has enough space for 5 384:
  692. give player 5 384
  693. else:
  694. drop 5 384 at the player
  695. if {craftprize} is equal to 5:
  696. broadcast "{@P} They have been rewarded with &f&o4 String"
  697. if player has enough space for 4 string:
  698. give player 4 string
  699. else:
  700. drop 4 string at the player
  701.  
  702. broadcast "{@P} A new item has now been cycled!"
  703. execute console command "/craftcycle set"
  704.  
  705. on craft of fishing rod:
  706. if {craftcycle} is true:
  707. if {craftitem} is equal to 16:
  708. set {craftprize} to a random integer between 1 and 5
  709. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oFishing Rod"
  710.  
  711. if {craftprize} is equal to 1:
  712. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  713. if player has enough space for 1 diamond:
  714. give player 1 diamond
  715. else:
  716. drop 1 diamond at the player
  717. if {craftprize} is equal to 2:
  718. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  719. if player has enough space for 20 arrow:
  720. give player 20 arrow
  721. else:
  722. drop 20 arrow at the player
  723. if {craftprize} is equal to 3:
  724. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  725. if player has enough space for 7 gold ingots:
  726. give player 7 gold ingots
  727. else:
  728. drop 7 gold ingots at the player
  729. if {craftprize} is equal to 4:
  730. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  731. if player has enough space for 5 384:
  732. give player 5 384
  733. else:
  734. drop 5 384 at the player
  735. if {craftprize} is equal to 5:
  736. broadcast "{@P} They have been rewarded with &f&o4 String"
  737. if player has enough space for 4 string:
  738. give player 4 string
  739. else:
  740. drop 4 string at the player
  741.  
  742. broadcast "{@P} A new item has now been cycled!"
  743. execute console command "/craftcycle set"
  744.  
  745. on craft of book:
  746. if {craftcycle} is true:
  747. if {craftitem} is equal to 17:
  748. set {craftprize} to a random integer between 1 and 5
  749. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oBook"
  750.  
  751. if {craftprize} is equal to 1:
  752. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  753. if player has enough space for 1 diamond:
  754. give player 1 diamond
  755. else:
  756. drop 1 diamond at the player
  757. if {craftprize} is equal to 2:
  758. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  759. if player has enough space for 20 arrow:
  760. give player 20 arrow
  761. else:
  762. drop 20 arrow at the player
  763. if {craftprize} is equal to 3:
  764. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  765. if player has enough space for 7 gold ingots:
  766. give player 7 gold ingots
  767. else:
  768. drop 7 gold ingots at the player
  769. if {craftprize} is equal to 4:
  770. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  771. if player has enough space for 5 384:
  772. give player 5 384
  773. else:
  774. drop 5 384 at the player
  775. if {craftprize} is equal to 5:
  776. broadcast "{@P} They have been rewarded with &f&o4 String"
  777. if player has enough space for 4 string:
  778. give player 4 string
  779. else:
  780. drop 4 string at the player
  781.  
  782. broadcast "{@P} A new item has now been cycled!"
  783. execute console command "/craftcycle set"
  784.  
  785. on craft of enchantment table:
  786. if {craftcycle} is true:
  787. if {craftitem} is equal to 18:
  788. set {craftprize} to a random integer between 1 and 5
  789. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oEnchantment Table"
  790.  
  791. if {craftprize} is equal to 1:
  792. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  793. if player has enough space for 1 diamond:
  794. give player 1 diamond
  795. else:
  796. drop 1 diamond at the player
  797. if {craftprize} is equal to 2:
  798. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  799. if player has enough space for 20 arrow:
  800. give player 20 arrow
  801. else:
  802. drop 20 arrow at the player
  803. if {craftprize} is equal to 3:
  804. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  805. if player has enough space for 7 gold ingots:
  806. give player 7 gold ingots
  807. else:
  808. drop 7 gold ingots at the player
  809. if {craftprize} is equal to 4:
  810. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  811. if player has enough space for 5 384:
  812. give player 5 384
  813. else:
  814. drop 5 384 at the player
  815. if {craftprize} is equal to 5:
  816. broadcast "{@P} They have been rewarded with &f&o4 String"
  817. if player has enough space for 4 string:
  818. give player 4 string
  819. else:
  820. drop 4 string at the player
  821.  
  822. broadcast "{@P} A new item has now been cycled!"
  823. execute console command "/craftcycle set"
  824.  
  825. on craft of anvil:
  826. if {craftcycle} is true:
  827. if {craftitem} is equal to 19:
  828. set {craftprize} to a random integer between 1 and 5
  829. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oAnvil"
  830.  
  831. if {craftprize} is equal to 1:
  832. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  833. if player has enough space for 1 diamond:
  834. give player 1 diamond
  835. else:
  836. drop 1 diamond at the player
  837. if {craftprize} is equal to 2:
  838. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  839. if player has enough space for 20 arrow:
  840. give player 20 arrow
  841. else:
  842. drop 20 arrow at the player
  843. if {craftprize} is equal to 3:
  844. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  845. if player has enough space for 7 gold ingots:
  846. give player 7 gold ingots
  847. else:
  848. drop 7 gold ingots at the player
  849. if {craftprize} is equal to 4:
  850. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  851. if player has enough space for 5 384:
  852. give player 5 384
  853. else:
  854. drop 5 384 at the player
  855. if {craftprize} is equal to 5:
  856. broadcast "{@P} They have been rewarded with &f&o4 String"
  857. if player has enough space for 4 string:
  858. give player 4 string
  859. else:
  860. drop 4 string at the player
  861.  
  862. broadcast "{@P} A new item has now been cycled!"
  863. execute console command "/craftcycle set"
  864.  
  865. on craft of shears:
  866. if {craftcycle} is true:
  867. if {craftitem} is equal to 20:
  868. set {craftprize} to a random integer between 1 and 5
  869. broadcast "{@P} &f&l%player% &7has crafted the Cycled Item: &f&oShears"
  870.  
  871. if {craftprize} is equal to 1:
  872. broadcast "{@P} They have been rewarded with &f&o1 Diamond"
  873. if player has enough space for 1 diamond:
  874. give player 1 diamond
  875. else:
  876. drop 1 diamond at the player
  877. if {craftprize} is equal to 2:
  878. broadcast "{@P} They have been rewarded with &f&o20 Arrows"
  879. if player has enough space for 20 arrow:
  880. give player 20 arrow
  881. else:
  882. drop 20 arrow at the player
  883. if {craftprize} is equal to 3:
  884. broadcast "{@P} They have been rewarded with &f&o7 Gold Ingots"
  885. if player has enough space for 7 gold ingots:
  886. give player 7 gold ingots
  887. else:
  888. drop 7 gold ingots at the player
  889. if {craftprize} is equal to 4:
  890. broadcast "{@P} They have been rewarded with &f&o5 XP Bottles"
  891. if player has enough space for 5 384:
  892. give player 5 384
  893. else:
  894. drop 5 384 at the player
  895. if {craftprize} is equal to 5:
  896. broadcast "{@P} They have been rewarded with &f&o4 String"
  897. if player has enough space for 4 string:
  898. give player 4 string
  899. else:
  900. drop 4 string at the player
  901.  
  902. broadcast "{@P} A new item has now been cycled!"
  903. execute console command "/craftcycle set"
  904.  
  905.  
Advertisement
Add Comment
Please, Sign In to add comment