poke5555

AFC

Jul 15th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.18 KB | None | 0 0
  1. while true do
  2. os.pullEvent("redstone")
  3. if rs.getInput("bottom") or rs.getInput("top") or rs.getInput("right") or rs.getInput("left") or rs.getInput("front") or rs.getInput("back") then
  4.  
  5. turtle.select(16)
  6. for i = 16, 9, -1 do
  7. turtle.select(i)
  8. turtle.suck()
  9. end
  10.  
  11. local InSlots = { 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
  12. local draconiccore = false
  13. local dragonheart = false
  14. local draconiumblock = false
  15. local wyverncore = false
  16. local awakeneddraconiumingot = false
  17. local netherstar = false
  18. local werc = false
  19. local wyvernenergycore = false
  20. local awakeneddraconiniccore = false
  21. local chaosshard = false
  22. local diamond = false
  23. local gapple = false
  24. local endereye = false
  25. local emerald = false
  26. local eb = false
  27. local dracingot = false
  28. local rsf = false
  29. local cc = false
  30. local ii = false
  31. local wss = false
  32. local dis = false
  33. local bfci = false
  34. local dfci = false
  35. local furnace = false
  36. local de = false
  37.  
  38.  
  39. for k, v in pairs(InSlots) do
  40. local data = turtle.getItemDetail(v)
  41. if data then
  42. if data.name == "draconicevolution:draconic_core" then
  43. draconiccore = true
  44. elseif data.name == "draconicevolution:dragon_heart" then
  45. dragonheart = true
  46. elseif data.name == "draconicevolution:draconium_block" then
  47. draconiumblock = true
  48. elseif data.name == "draconicevolution:wyvern_core" then
  49. wyverncore = true
  50. elseif data.name == "draconicevolution:draconic_ingot" then
  51. awakeneddraconiumingot = true
  52. elseif data.name == "minecraft:nether_star" then
  53. netherstar = true
  54. elseif data.name == "draconicevolution:energy_crystal" then
  55. werc = true
  56. elseif data.name == "draconicevolution:wyvern_energy_core" then
  57. wyvernenergycore = true
  58. elseif data.name == "minecraft:diamond" then
  59. diamond = true
  60. elseif data.name == "draconicevolution:chaos_shard" then
  61. chaosshard = true
  62. elseif data.name == "draconicevolution:awakened_core" then
  63. awakeneddraconiniccore = true
  64. elseif data.name == "minecraft:golden_apple" then
  65. gapple = true
  66. elseif data.name == "minecraft:ender_eye" then
  67. endereye = true
  68. elseif data.name == "minecraft:emerald" then
  69. emerald = true
  70. elseif data.name == "minecraft:emerald_block" then
  71. eb = true
  72. elseif data.name == "draconicevolution:draconium_ingot" then
  73. dracingot = true
  74. elseif data.name == "draconicevolution:reactor_part" then
  75. rsf = true
  76. elseif data.name == "draconicevolution:chaotic_core" then
  77. cc = true
  78. elseif data.name == "minecraft:skull" then
  79. wss = true
  80. elseif data.name == "minecraft:iron_ingot" then
  81. ii = true
  82. elseif data.name == "draconicevolution:dislocator" then
  83. dis = true
  84. elseif data.name == "draconicevolution:crafting_injector" and data.damage== 0 then
  85. bfci = true
  86. elseif data.name == "draconicevolution:crafting_injector" and data.damage== 1 then
  87. wfci = true
  88. elseif data.name == "draconicevolution:crafting_injector" and data.damage== 2 then
  89. dfci = true
  90. elseif data.name == "minecraft:furnace" then
  91. furnace = true
  92. elseif data.name == "minecraft:dragon_egg" then
  93. de = true
  94. end
  95. end
  96.  
  97. if draconiccore and dragonheart and draconiumblock then
  98. print("Making Awakened Draconium Blocks")
  99. for i = 16, 11, -1 do
  100. turtle.select(i)
  101. local data = turtle.getItemDetail()
  102. if data then
  103. if data.name == "draconicevolution:draconic_core" then
  104. turtle.transferTo(1)
  105. elseif data.name == "draconicevolution:dragon_heart" then
  106. turtle.transferTo(2)
  107. elseif data.name == "draconicevolution:draconium_block" then
  108. turtle.transferTo(3)
  109. end
  110. end
  111. end
  112. turtle.select(1)
  113. turtle.turnRight()
  114. turtle.drop()
  115. turtle.up()
  116. turtle.drop()
  117. turtle.up()
  118. turtle.drop()
  119. turtle.turnRight()
  120. turtle.forward()
  121. turtle.turnLeft()
  122. turtle.drop()
  123. turtle.down()
  124. turtle.drop()
  125. turtle.turnLeft()
  126. turtle.turnLeft()
  127. turtle.select(3)
  128. turtle.drop()
  129. turtle.select(1)
  130. turtle.turnLeft()
  131. turtle.turnLeft()
  132. turtle.down()
  133. turtle.drop()
  134. turtle.turnRight()
  135. turtle.forward()
  136. turtle.turnLeft()
  137. turtle.drop()
  138. turtle.select(2)
  139. turtle.drop()
  140. turtle.turnLeft()
  141. turtle.forward()
  142. turtle.forward()
  143.  
  144.  
  145. break --#
  146.  
  147. elseif netherstar and awakeneddraconiumingot and wyverncore then
  148. print("Making Awakened Core")
  149. for i = 16, 11, -1 do
  150. turtle.select(i)
  151. local data = turtle.getItemDetail()
  152. if data then
  153. if data.name == "minecraft:nether_star" then
  154. turtle.transferTo(1)
  155. elseif data.name == "draconicevolution:draconic_ingot" then
  156. turtle.transferTo(2)
  157. elseif data.name == "draconicevolution:wyvern_core" then
  158. turtle.transferTo(3)
  159. end
  160. end
  161. end
  162. turtle.select(2)
  163. turtle.turnRight()
  164. turtle.drop()
  165. turtle.up()
  166. turtle.drop()
  167. turtle.up()
  168. turtle.drop()
  169. turtle.turnRight()
  170. turtle.forward()
  171. turtle.turnLeft()
  172. turtle.drop()
  173. turtle.down()
  174. turtle.drop()
  175. turtle.turnLeft()
  176. turtle.turnLeft()
  177. turtle.select(1)
  178. turtle.drop()
  179. turtle.turnLeft()
  180. turtle.turnLeft()
  181. turtle.down()
  182. turtle.select(3)
  183. turtle.drop()
  184. turtle.turnRight()
  185. turtle.forward()
  186. turtle.turnLeft()
  187. turtle.drop()
  188. turtle.up()
  189. turtle.drop()
  190. turtle.up()
  191. turtle.drop()
  192. turtle.down()
  193. turtle.down()
  194. turtle.turnLeft()
  195. turtle.forward()
  196. turtle.forward()
  197.  
  198. break --#
  199.  
  200. elseif wyverncore and werc and wyvernenergycore and diamond then
  201. print("Making Draconic Energy Relay")
  202. turtle.select(16)
  203. for i = 16, 11, -1 do
  204. turtle.select(i)
  205. local data = turtle.getItemDetail()
  206. if data then
  207. if data.name == "minecraft:diamond" then
  208. turtle.transferTo(1)
  209. elseif data.name == "draconicevolution:energy_crystal" then
  210. turtle.transferTo(4)
  211. elseif data.name == "draconicevolution:wyvern_core" then
  212. turtle.transferTo(3)
  213. elseif data.name == "draconicevolution:wyvern_energy_core" then
  214. turtle.transferTo(2)
  215. end
  216. end
  217. end
  218. turtle.select(3)
  219. turtle.turnRight()
  220. turtle.drop()
  221. turtle.select(1)
  222. turtle.up()
  223. turtle.drop()
  224. turtle.up()
  225. turtle.drop()
  226. turtle.turnRight()
  227. turtle.forward()
  228. turtle.turnLeft()
  229. turtle.drop()
  230. turtle.down()
  231. turtle.drop()
  232. turtle.turnLeft()
  233. turtle.turnLeft()
  234. turtle.select(4)
  235. turtle.drop()
  236. turtle.turnLeft()
  237. turtle.turnLeft()
  238. turtle.select(2)
  239. turtle.down()
  240. turtle.drop()
  241. turtle.turnRight()
  242. turtle.forward()
  243. turtle.turnLeft()
  244. turtle.drop()
  245. turtle.up()
  246. turtle.drop()
  247. turtle.up()
  248. turtle.drop()
  249. turtle.down()
  250. turtle.down()
  251. turtle.turnLeft()
  252. turtle.forward()
  253. turtle.forward()
  254. break --#
  255.  
  256. elseif chaosshard and awakeneddraconiniccore and awakeneddraconiumingot then
  257. print("Making Chaos Core")
  258. for i = 16, 11, -1 do
  259. turtle.select(i)
  260. local data = turtle.getItemDetail()
  261. if data then
  262. if data.name == "draconicevolution:draconic_ingot" then
  263. turtle.transferTo(1)
  264. elseif data.name == "draconicevolution:awakened_core" then
  265. turtle.transferTo(2)
  266. elseif data.name == "draconicevolution:chaos_shard" then
  267. turtle.transferTo(3)
  268. end
  269. end
  270. end
  271. turtle.select(1)
  272. turtle.turnRight()
  273. turtle.drop()
  274. turtle.up()
  275. turtle.drop()
  276. turtle.up()
  277. turtle.drop()
  278. turtle.turnRight()
  279. turtle.forward()
  280. turtle.turnLeft()
  281. turtle.drop()
  282. turtle.select(2)
  283. turtle.down()
  284. turtle.drop()
  285. turtle.turnLeft()
  286. turtle.turnLeft()
  287. turtle.select(3)
  288. turtle.drop()
  289. turtle.select(2)
  290. turtle.turnLeft()
  291. turtle.turnLeft()
  292. turtle.down()
  293. turtle.drop()
  294. turtle.turnRight()
  295. turtle.forward()
  296. turtle.turnLeft()
  297. turtle.drop()
  298. turtle.up()
  299. turtle.drop()
  300. turtle.down()
  301. turtle.down()
  302. turtle.turnLeft()
  303. turtle.forward()
  304. turtle.forward()
  305.  
  306. break --#
  307.  
  308. elseif endereye and gapple and diamond then
  309. print("Making Basic Upgrade")
  310. print("Insert your Armour or Tool and the upgrade you wish to add!")
  311. for i = 16, 11, -1 do
  312. turtle.select(i)
  313. local data = turtle.getItemDetail()
  314. if data then
  315. if data.name == "minecraft:ender_eye" then
  316. turtle.transferTo(1)
  317. elseif data.name == "minecraft:golden_apple" then
  318. turtle.transferTo(2)
  319. elseif data.name == "minecraft:diamond" then
  320. turtle.transferTo(3)
  321. elseif data.name == "draconicevolution:draconic_core" then
  322. turtle.transferTo(4)
  323. end
  324. end
  325. end
  326. turtle.select(4)
  327. turtle.turnRight()
  328. turtle.drop()
  329. turtle.up()
  330. turtle.select(2)
  331. turtle.drop()
  332. turtle.up()
  333. turtle.drop()
  334. turtle.turnRight()
  335. turtle.forward()
  336. turtle.turnLeft()
  337. turtle.select(1)
  338. turtle.drop()
  339. turtle.down()
  340. turtle.drop()
  341. turtle.down()
  342. turtle.select(3)
  343. turtle.drop()
  344. turtle.turnRight()
  345. turtle.forward()
  346. turtle.turnLeft()
  347. turtle.drop()
  348. turtle.turnLeft()
  349. turtle.forward()
  350. turtle.forward()
  351.  
  352.  
  353. break --#
  354.  
  355. elseif emerald and netherstar and wyverncore then
  356. print("Making Wyvern Upgrade")
  357. print("Insert your Armour or Tool and the upgrade you wish to add!")
  358. for i = 16, 11, -1 do
  359. turtle.select(i)
  360. local data = turtle.getItemDetail()
  361. if data then
  362. if data.name == "draconicevolution:draconic_core" then
  363. turtle.transferTo(1)
  364. elseif data.name == "minecraft:nether_star" then
  365. turtle.transferTo(2)
  366. elseif data.name == "minecraft:emerald" then
  367. turtle.transferTo(3)
  368. elseif data.name == "draconicevolution:wyvern_core" then
  369. turtle.transferTo(4)
  370. end
  371. end
  372. end
  373. turtle.select(4)
  374. turtle.turnRight()
  375. turtle.drop()
  376. turtle.up()
  377. turtle.select(2)
  378. turtle.drop()
  379. turtle.up()
  380. turtle.drop()
  381. turtle.turnRight()
  382. turtle.forward()
  383. turtle.turnLeft()
  384. turtle.select(1)
  385. turtle.drop()
  386. turtle.down()
  387. turtle.drop()
  388. turtle.down()
  389. turtle.select(3)
  390. turtle.drop()
  391. turtle.turnRight()
  392. turtle.forward()
  393. turtle.turnLeft()
  394. turtle.drop()
  395. turtle.turnLeft()
  396. turtle.forward()
  397. turtle.forward()
  398.  
  399. break --#
  400.  
  401. elseif eb and awakeneddraconiniccore then
  402. print("Making Draconic Upgrade")
  403. print("Insert your Armour or Tool and the upgrade you wish to add!")
  404. for i = 16, 11, -1 do
  405. turtle.select(i)
  406. local data = turtle.getItemDetail()
  407. if data then
  408. if data.name == "minecraft:nether_star" then
  409. turtle.transferTo(1)
  410. elseif data.name == "draconicevolution:wyvern_core" then
  411. turtle.transferTo(2)
  412. elseif data.name == "minecraft:emerald_block" then
  413. turtle.transferTo(3)
  414. elseif data.name == "draconicevolution:awakened_core" then
  415. turtle.transferTo(4)
  416. end
  417. end
  418. end
  419. turtle.select(4)
  420. turtle.turnRight()
  421. turtle.drop()
  422. turtle.up()
  423. turtle.select(2)
  424. turtle.drop()
  425. turtle.up()
  426. turtle.drop()
  427. turtle.turnRight()
  428. turtle.forward()
  429. turtle.turnLeft()
  430. turtle.select(1)
  431. turtle.drop()
  432. turtle.down()
  433. turtle.drop()
  434. turtle.down()
  435. turtle.select(3)
  436. turtle.drop()
  437. turtle.turnRight()
  438. turtle.forward()
  439. turtle.turnLeft()
  440. turtle.drop()
  441. turtle.turnLeft()
  442. turtle.forward()
  443. turtle.forward()
  444.  
  445. break --#
  446.  
  447. elseif cc and de then
  448. print("Making Chaotic Upgrade")
  449. print("Insert your Armour or Tool and the upgrade you wish to add!")
  450. for i = 16, 11, -1 do
  451. turtle.select(i)
  452. local data = turtle.getItemDetail()
  453. if data then
  454. if data.name == "draconicevolution:wyvern_core" then
  455. turtle.transferTo(1)
  456. elseif data.name == "draconicevolution:awakened_core" then
  457. turtle.transferTo(2)
  458. elseif data.name == "minecraft:dragon_egg" then
  459. turtle.transferTo(3)
  460. elseif data.name == "draconicevolution:chaotic_core" then
  461. turtle.transferTo(4)
  462. end
  463. end
  464. end
  465. turtle.select(4)
  466. turtle.turnRight()
  467. turtle.drop()
  468. turtle.up()
  469. turtle.select(2)
  470. turtle.drop()
  471. turtle.up()
  472. turtle.drop()
  473. turtle.turnRight()
  474. turtle.forward()
  475. turtle.turnLeft()
  476. turtle.select(1)
  477. turtle.drop()
  478. turtle.down()
  479. turtle.drop()
  480. turtle.down()
  481. turtle.select(3)
  482. turtle.drop()
  483. turtle.turnRight()
  484. turtle.forward()
  485. turtle.turnLeft()
  486. turtle.drop()
  487. turtle.turnLeft()
  488. turtle.forward()
  489. turtle.forward()
  490.  
  491. break --#
  492.  
  493. elseif chaosshard and awakeneddraconiumingot and dracingot then
  494. print("Making Reactor Core")
  495. for i = 16, 11, -1 do
  496. turtle.select(i)
  497. local data = turtle.getItemDetail()
  498. if data then
  499. if data.name == "draconicevolution:draconic_ingot" then
  500. turtle.transferTo(2)
  501. elseif data.name == "draconicevolution:draconium_ingot" then
  502. turtle.transferTo(1)
  503. elseif data.name == "draconicevolution:chaos_shard" then
  504. turtle.transferTo(3)
  505. end
  506. end
  507. end
  508. turtle.select(1)
  509. turtle.turnRight()
  510. turtle.drop()
  511. turtle.up()
  512. turtle.drop()
  513. turtle.up()
  514. turtle.drop()
  515. turtle.turnRight()
  516. turtle.forward()
  517. turtle.turnLeft()
  518. turtle.select(2)
  519. turtle.drop()
  520. turtle.down()
  521. turtle.drop()
  522. turtle.turnLeft()
  523. turtle.turnLeft()
  524. turtle.select(3)
  525. turtle.drop()
  526. turtle.select(2)
  527. turtle.turnLeft()
  528. turtle.turnLeft()
  529. turtle.down()
  530. turtle.drop()
  531. turtle.turnRight()
  532. turtle.forward()
  533. turtle.turnLeft()
  534. turtle.drop()
  535. turtle.turnLeft()
  536. turtle.forward()
  537. turtle.forward()
  538. break --#
  539.  
  540. elseif cc and rsf then
  541. print("Making Reactor Stabilizer")
  542. for i = 16, 11, -1 do
  543. turtle.select(i)
  544. local data = turtle.getItemDetail()
  545. if data then
  546. if data.name == "draconicevolution:reactor_part" and data.damage == 3 then
  547. turtle.transferTo(1)
  548. elseif data.name == "draconicevolution:reactor_part" and data.damage== 4 then
  549. turtle.transferTo(2)
  550. elseif data.name == "draconicevolution:draconic_energy_core" then
  551. turtle.transferTo(3)
  552. elseif data.name == "draconicevolution:draconic_ingot" then
  553. turtle.transferTo(5)
  554. elseif data.name == "draconicevolution:chaotic_core" then
  555. turtle.transferTo(4)
  556. elseif data.name == "draconicevolution:reactor_part" and data.damage== 0 then
  557. turtle.transferTo(6)
  558. end
  559. end
  560. end
  561. turtle.turnRight()
  562. turtle.select(1)
  563. turtle.drop()
  564. turtle.up()
  565. turtle.select(2)
  566. turtle.drop()
  567. turtle.up()
  568. turtle.select(3)
  569. turtle.drop()
  570. turtle.turnRight()
  571. turtle.forward()
  572. turtle.turnLeft()
  573. turtle.select(4)
  574. turtle.drop()
  575. turtle.down()
  576. turtle.select(5)
  577. turtle.drop()
  578. turtle.turnLeft()
  579. turtle.turnLeft()
  580. turtle.select(6)
  581. turtle.drop()
  582. turtle.turnLeft()
  583. turtle.turnLeft()
  584. turtle.select(5)
  585. turtle.down()
  586. turtle.drop()
  587. turtle.turnRight()
  588. turtle.forward()
  589. turtle.turnLeft()
  590. turtle.drop()
  591. turtle.up()
  592. turtle.drop()
  593. turtle.down()
  594. turtle.down()
  595. turtle.turnLeft()
  596. turtle.forward()
  597. turtle.forward()
  598.  
  599. break --#
  600.  
  601. elseif wss then
  602. print("Making EEF")
  603. for i = 16, 13, -1 do
  604. turtle.select(i)
  605. local data = turtle.getItemDetail()
  606. if data then
  607. if data.name == "minecraft:ender_eye" then
  608. turtle.transferTo(1)
  609. elseif data.name == "draconicevolution:draconic_core" then
  610. turtle.transferTo(2)
  611. elseif data.name == "draconicevolution:wyvern_core" then
  612. turtle.transferTo(3)
  613. elseif data.name == "minecraft:skull" then
  614. turtle.transferTo(4)
  615. end
  616. end
  617. end
  618. turtle.select(1)
  619. turtle.turnRight()
  620. turtle.drop()
  621. turtle.up()
  622. turtle.drop()
  623. turtle.up()
  624. turtle.drop()
  625. turtle.turnRight()
  626. turtle.forward()
  627. turtle.turnLeft()
  628. turtle.drop()
  629. turtle.down()
  630. turtle.drop()
  631. turtle.turnLeft()
  632. turtle.turnLeft()
  633. turtle.select(4)
  634. turtle.drop()
  635. turtle.select(1)
  636. turtle.turnLeft()
  637. turtle.turnLeft()
  638. turtle.down()
  639. turtle.drop()
  640. turtle.turnRight()
  641. turtle.forward()
  642. turtle.turnLeft()
  643. turtle.drop()
  644. turtle.select(2)
  645. turtle.up()
  646. turtle.drop()
  647. turtle.turnRight()
  648. turtle.drop()
  649. turtle.turnLeft()
  650. turtle.up()
  651. turtle.select(3)
  652. turtle.drop()
  653. turtle.down()
  654. turtle.down()
  655. turtle.turnLeft()
  656. turtle.forward()
  657. turtle.forward()
  658. break --#
  659.  
  660. else if ii and dracingot then
  661. print("Making Reactor Energy Injector")
  662. for i = 16, 13, -1 do
  663. turtle.select(i)
  664. local data = turtle.getItemDetail()
  665. if data then
  666. if data.name == "minecraft:iron_ingot" then
  667. turtle.transferTo(1)
  668. elseif data.name == "draconicevolution:draconium_ingot" then
  669. turtle.transferTo(2)
  670. elseif data.name == "draconicevolution:wyvern_core" then
  671. turtle.transferTo(4)
  672. elseif data.name == "draconicevolution:reactor_part" then
  673. turtle.transferTo(3)
  674. end
  675. end
  676. end
  677. turtle.select(1)
  678. turtle.turnRight()
  679. turtle.drop()
  680. turtle.up()
  681. turtle.drop()
  682. turtle.select(2)
  683. turtle.up()
  684. turtle.drop()
  685. turtle.turnRight()
  686. turtle.forward()
  687. turtle.turnLeft()
  688. turtle.drop()
  689. turtle.down()
  690. turtle.drop()
  691. turtle.turnLeft()
  692. turtle.turnLeft()
  693. turtle.select(4)
  694. turtle.drop()
  695. turtle.turnLeft()
  696. turtle.turnLeft()
  697. turtle.select(2)
  698. turtle.down()
  699. turtle.drop()
  700. turtle.turnRight()
  701. turtle.forward()
  702. turtle.turnLeft()
  703. turtle.select(3)
  704. turtle.drop()
  705. turtle.up()
  706. turtle.drop()
  707. turtle.turnRight()
  708. turtle.drop()
  709. turtle.turnLeft()
  710. turtle.up()
  711. turtle.drop()
  712. turtle.down()
  713. turtle.down()
  714. turtle.turnLeft()
  715. turtle.forward()
  716. turtle.forward()
  717. break --#
  718.  
  719. elseif dis then
  720. print("Making Advanced Dislocator")
  721. for i = 16, 13, -1 do
  722. turtle.select(i)
  723. local data = turtle.getItemDetail()
  724. if data then
  725. if data.name == "draconicevolution:wyvern_core" then
  726. turtle.transferTo(1)
  727. elseif data.name == "draconicevolution:draconium_ingot" then
  728. turtle.transferTo(2)
  729. elseif data.name == "minecraft:ender_pearl" then
  730. turtle.transferTo(3)
  731. elseif data.name == "draconicevolution:dislocator" then
  732. turtle.transferTo(4)
  733. end
  734. end
  735. end
  736. turtle.turnRight()
  737. turtle.select(1)
  738. turtle.drop()
  739. turtle.up()
  740. turtle.select(2)
  741. turtle.drop()
  742. turtle.up()
  743. turtle.drop()
  744. turtle.turnRight()
  745. turtle.forward()
  746. turtle.turnLeft()
  747. turtle.drop()
  748. turtle.down()
  749. turtle.drop()
  750. turtle.turnLeft()
  751. turtle.turnLeft()
  752. turtle.select(4)
  753. turtle.drop()
  754. turtle.turnLeft()
  755. turtle.turnLeft()
  756. turtle.select(3)
  757. turtle.down()
  758. turtle.drop()
  759. turtle.turnRight()
  760. turtle.forward()
  761. turtle.turnLeft()
  762. turtle.drop()
  763. turtle.up()
  764. turtle.drop()
  765. turtle.down()
  766. turtle.turnLeft()
  767. turtle.forward()
  768. turtle.forward()
  769. break --#
  770.  
  771. elseif bfci then
  772. print("Making Wyvern Fusion Crafting Injector")
  773. for i = 16, 12, -1 do
  774. turtle.select(i)
  775. local data = turtle.getItemDetail()
  776. if data then
  777. if data.name == "draconicevolution:draconium_block" then
  778. turtle.transferTo(1)
  779. elseif data.name == "draconicevolution:wyvern_core" then
  780. turtle.transferTo(2)
  781. elseif data.name == "draconicevolution:draconic_core" then
  782. turtle.transferTo(3)
  783. elseif data.name == "minecraft:diamond" then
  784. turtle.transferTo(4)
  785. elseif data.name == "draconicevolution:crafting_injector" then
  786. turtle.transferTo(5)
  787. end
  788. end
  789. end
  790. turtle.select(1)
  791. turtle.turnRight()
  792. turtle.drop()
  793. turtle.up()
  794. turtle.select(2)
  795. turtle.drop()
  796. turtle.up()
  797. turtle.select(3)
  798. turtle.drop()
  799. turtle.turnRight()
  800. turtle.forward()
  801. turtle.turnLeft()
  802. turtle.drop()
  803. turtle.down()
  804. turtle.select(4)
  805. turtle.drop()
  806. turtle.turnLeft()
  807. turtle.turnLeft()
  808. turtle.select(5)
  809. turtle.drop()
  810. turtle.turnLeft()
  811. turtle.turnLeft()
  812. turtle.down()
  813. turtle.select(4)
  814. turtle.drop()
  815. turtle.turnRight()
  816. turtle.forward()
  817. turtle.turnLeft()
  818. turtle.drop()
  819. turtle.up()
  820. turtle.drop()
  821. turtle.down()
  822. turtle.turnLeft()
  823. turtle.forward()
  824. turtle.forward()
  825.  
  826. break --#
  827.  
  828. elseif wfci then
  829. print("Making Draconic Fusion Crafting Injector")
  830. for i = 16, 12, -1 do
  831. turtle.select(i)
  832. local data = turtle.getItemDetail()
  833. if data then
  834. if data.name == "draconicevolution:draconic_block" then
  835. turtle.transferTo(1)
  836. elseif data.name == "draconicevolution:wyvern_core" then
  837. turtle.transferTo(2)
  838. elseif data.name == "minecraft:diamond" then
  839. turtle.transferTo(3)
  840. elseif data.name == "draconicevolution:crafting_injector" then
  841. turtle.transferTo(4)
  842. end
  843. end
  844. end
  845. turtle.select(1)
  846. turtle.turnRight()
  847. turtle.drop()
  848. turtle.up()
  849. turtle.select(2)
  850. turtle.drop()
  851. turtle.up()
  852. turtle.drop()
  853. turtle.turnRight()
  854. turtle.forward()
  855. turtle.turnLeft()
  856. turtle.select(3)
  857. turtle.drop()
  858. turtle.down()
  859. turtle.drop()
  860. turtle.turnLeft()
  861. turtle.turnLeft()
  862. turtle.select(4)
  863. turtle.drop()
  864. turtle.turnLeft()
  865. turtle.turnLeft()
  866. turtle.select(3)
  867. turtle.down()
  868. turtle.drop()
  869. turtle.turnRight()
  870. turtle.forward()
  871. turtle.turnLeft()
  872. turtle.drop()
  873. turtle.turnLeft()
  874. turtle.forward()
  875. turtle.forward()
  876. break --#
  877.  
  878. elseif dfci then
  879. print("Making Chaotic Fusion Crafting Injector")
  880. for i = 16, 12, -1 do
  881. turtle.select(i)
  882. local data = turtle.getItemDetail()
  883. if data then
  884. if data.name == "minecraft:dragon_egg" then
  885. turtle.transferTo(1)
  886. elseif data.name == "draconicevolution:chaotic_core" then
  887. turtle.transferTo(2)
  888. elseif data.name == "minecraft:diamond" then
  889. turtle.transferTo(3)
  890. elseif data.name == "draconicevolution:crafting_injector" then
  891. turtle.transferTo(4)
  892. end
  893. end
  894. end
  895. turtle.turnRight()
  896. turtle.select(1)
  897. turtle.drop()
  898. turtle.select(2)
  899. turtle.up()
  900. turtle.drop()
  901. turtle.select(3)
  902. turtle.up()
  903. turtle.drop()
  904. turtle.turnRight()
  905. turtle.forward()
  906. turtle.turnLeft()
  907. turtle.drop()
  908. turtle.down()
  909. turtle.drop()
  910. turtle.turnLeft()
  911. turtle.turnLeft()
  912. turtle.select(4)
  913. turtle.drop()
  914. turtle.turnLeft()
  915. turtle.turnLeft()
  916. turtle.select(3)
  917. turtle.down()
  918. turtle.drop()
  919. turtle.turnLeft()
  920. turtle.forward()
  921.  
  922. break --#
  923.  
  924. elseif furnace then
  925. print("Making Draconium Chest")
  926. for i = 16, 11, -1 do
  927. turtle.select(i)
  928. local data = turtle.getItemDetail()
  929. if data then
  930. if data.name == "minecraft:chest" then
  931. turtle.transferTo(5)
  932. elseif data.name == "draconicevolution:draconic_core" then
  933. turtle.transferTo(2)
  934. elseif data.name == "minecraft:crafting_table" then
  935. turtle.transferTo(3)
  936. elseif data.name == "minecraft:furnace" then
  937. turtle.transferTo(4)
  938. elseif data.name == "draconicevolution:draconium_block" then
  939. turtle.transferTo(1)
  940. end
  941. end
  942. end
  943. turtle.select(1)
  944. turtle.turnRight()
  945. turtle.drop()
  946. turtle.select(2)
  947. turtle.up()
  948. turtle.drop()
  949. turtle.up()
  950. turtle.drop()
  951. turtle.turnRight()
  952. turtle.forward()
  953. turtle.turnLeft()
  954. turtle.select(3)
  955. turtle.drop()
  956. turtle.down()
  957. turtle.drop()
  958. turtle.turnLeft()
  959. turtle.turnLeft()
  960. turtle.select(5)
  961. turtle.drop()
  962. turtle.turnLeft()
  963. turtle.turnLeft()
  964. turtle.select(4)
  965. turtle.down()
  966. turtle.drop()
  967. turtle.turnRight()
  968. turtle.forward()
  969. turtle.turnLeft()
  970. turtle.drop()
  971. turtle.up()
  972. turtle.drop()
  973. turtle.turnRight()
  974. turtle.drop()
  975. turtle.turnLeft()
  976. turtle.up()
  977. turtle.drop()
  978. turtle.down()
  979. turtle.down()
  980. turtle.turnLeft()
  981. turtle.forward()
  982. turtle.forward()
  983.  
  984.  
  985. break --#
  986.  
  987. end
  988. end
  989. end
  990.  
  991. print("ree")
  992. end
  993. end
Add Comment
Please, Sign In to add comment