poke5555

Untitled

Jul 8th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.58 KB | None | 0 0
  1. while true do
  2. os.pullEvent("redstone")
  3. if rs.getInput("bottom") then
  4. sleep(1)
  5.  
  6. turtle.select(9)
  7. for i = 16, 1, -1 do
  8. turtle.select(i)
  9. turtle.suck()
  10. end
  11.  
  12. local InSlots = { 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 }
  13. local draconiccore = false
  14. local dragonheart = false
  15. local draconiumblock = false
  16. local wyverncore = false
  17. local awakeneddraconiumingot = false
  18. local netherstar = false
  19. local werc = false
  20. local wyvernenergycore = false
  21. local awakeneddraconiniccore = false
  22. local chaosshard = false
  23. local diamond = false
  24. local gapple = false
  25. local endereye = false
  26. local emerald = false
  27. local emeraldblock = false
  28. local dracingot = false
  29. local rsf = false
  30. local cc = false
  31. local ii = false
  32. local wss = false
  33. local dis = false
  34.  
  35. for k, v in pairs(InSlots) do
  36. local data = turtle.getItemDetail(v)
  37. if data then
  38. if data.name == "draconicevolution:draconic_core" then
  39. draconiccore = true
  40. elseif data.name == "draconicevolution:dragon_heart" then
  41. dragonheart = true
  42. elseif data.name == "draconicevolution:draconium_block" then
  43. draconiumblock = true
  44. elseif data.name == "draconicevolution:wyvern_core" then
  45. wyverncore = true
  46. elseif data.name == "draconicevolution:draconic_ingot" then
  47. awakeneddraconiumingot = true
  48. elseif data.name == "minecraft:nether_star" then
  49. netherstar = true
  50. elseif data.name == "draconicevolution:energy_crystal" then
  51. werc = true
  52. elseif data.name == "draconicevolution:wyvern_energy_core" then
  53. wyvernenergycore = true
  54. elseif data.name == "minecraft:diamond" then
  55. diamond = true
  56. elseif data.name == "draconicevolution:chaos_shard" then
  57. chaosshard = true
  58. elseif data.name == "draconicevolution:awakened_core" then
  59. awakeneddraconiniccore = true
  60. elseif data.name == "minecraft:golden_apple" then
  61. gapple = true
  62. elseif data.name == "minecraft:ender_eye" then
  63. endereye = true
  64. elseif data.name == "minecraft:emerald" then
  65. emerald = true
  66. elseif data.name == "minecraft:emerald_block" then
  67. emerald = true
  68. elseif data.name == "draconicevolution:draconium_ingot" then
  69. dracingot = true
  70. elseif data.name == "draconicevolution:reactor_part" then
  71. rsf = true
  72. elseif data.name == "draconicevolution:chaotic_core" then
  73. cc = true
  74. elseif data.name == "minecraft:skull" then
  75. wss = true
  76. elseif data.name == "minecraft:iron_ingot" then
  77. ii = true
  78. elseif data.name == "draconicevolution:dislocator" then
  79. dis = true
  80. end
  81. end
  82.  
  83. if draconiccore and dragonheart and draconiumblock then
  84. print("Making Awakened Draconium Blocks")
  85. for i = 16, 1, -1 do
  86. local data = turtle.getItemDetail(v)
  87. if data then
  88. if data.name == "draconicevolution:draconic_core" then
  89. turtle.transferTo(1)
  90. elseif data.name == "draconicevolution:dragon_heart" then
  91. turtle.transferTo(2)
  92. elseif data.name == "draconicevolution:draconium_block" then
  93. turtle.transferTo(3)
  94. end
  95. end
  96. end
  97.  
  98. break --#
  99.  
  100. elseif netherstar and awakeneddraconiumingot and wyverncore then
  101. print("Making Awakened Core")
  102. turtle.turnRight()
  103. turtle.select(2)
  104. turtle.drop()
  105. turtle.up()
  106. turtle.drop()
  107. turtle.up()
  108. turtle.drop()
  109. turtle.turnRight()
  110. turtle.forward()
  111. turtle.turnLeft()
  112. turtle.drop()
  113. turtle.down()
  114. turtle.drop()
  115. turtle.turnLeft()
  116. turtle.turnLeft()
  117. turtle.select(1)
  118. turtle.drop()
  119. turtle.turnLeft()
  120. turtle.turnLeft()
  121. turtle.down()
  122. turtle.select(3)
  123. turtle.drop()
  124. turtle.turnRight()
  125. turtle.forward()
  126. turtle.turnLeft()
  127. turtle.drop()
  128. turtle.up()
  129. turtle.drop()
  130. turtle.up()
  131. turtle.drop()
  132. turtle.down()
  133. turtle.down()
  134. turtle.turnLeft()
  135. turtle.forward()
  136. turtle.forward()
  137. break --#
  138.  
  139. elseif wyverncore and werc and wyvernenergycore and diamond then
  140. print("Making Draconic Energy Relay")
  141. turtle.select(1)
  142. turtle.turnRight()
  143. turtle.drop()
  144. turtle.up()
  145. turtle.select(3)
  146. turtle.drop()
  147. turtle.up()
  148. turtle.drop()
  149. turtle.turnRight()
  150. turtle.forward()
  151. turtle.turnLeft()
  152. turtle.drop()
  153. turtle.down()
  154. turtle.drop()
  155. turtle.turnLeft()
  156. turtle.turnLeft()
  157. turtle.select(2)
  158. turtle.drop()
  159. turtle.turnLeft()
  160. turtle.turnLeft()
  161. turtle.down()
  162. turtle.select(4)
  163. turtle.drop()
  164. turtle.turnRight()
  165. turtle.forward()
  166. turtle.turnLeft()
  167. turtle.drop()
  168. turtle.up()
  169. turtle.drop()
  170. turtle.up()
  171. turtle.drop()
  172. turtle.down()
  173. turtle.down()
  174. turtle.turnLeft()
  175. turtle.forward()
  176. turtle.forward()
  177. break --#
  178.  
  179. elseif chaosshard and awakeneddraconiniccore and awakeneddraconiumingot then
  180. print("Making Chaos Core")
  181. turtle.select(1)
  182. turtle.turnRight()
  183. turtle.drop()
  184. turtle.up()
  185. turtle.drop()
  186. turtle.up()
  187. turtle.drop()
  188. turtle.turnRight()
  189. turtle.forward()
  190. turtle.turnLeft()
  191. turtle.drop()
  192. turtle.down()
  193. turtle.select(3)
  194. turtle.drop()
  195. turtle.turnLeft()
  196. turtle.turnLeft()
  197. turtle.select(2)
  198. turtle.drop()
  199. turtle.turnLeft()
  200. turtle.turnLeft()
  201. turtle.select(3)
  202. turtle.down()
  203. turtle.drop()
  204. turtle.turnRight()
  205. turtle.forward()
  206. turtle.turnLeft()
  207. turtle.drop()
  208. turtle.up()
  209. turtle.drop()
  210. turtle.down()
  211. turtle.turnLeft()
  212. turtle.forward()
  213. turtle.forward()
  214. break --#
  215.  
  216. elseif endereye and gapple and diamond then
  217. print("Making Upgrade")
  218. print("Insert your Armour or Tool and the upgrade you wish to add!")
  219. turtle.select(1)
  220. turtle.turnRight()
  221. turtle.drop()
  222. turtle.up()
  223. turtle.drop()
  224. turtle.up()
  225. turtle.select(2)
  226. turtle.drop()
  227. turtle.turnRight()
  228. turtle.forward()
  229. turtle.turnLeft()
  230. turtle.drop()
  231. turtle.down()
  232. turtle.select(3)
  233. turtle.drop()
  234. turtle.down()
  235. turtle.drop()
  236. turtle.turnRight()
  237. turtle.forward()
  238. turtle.turnLeft()
  239. turtle.select(4)
  240. turtle.drop()
  241. turtle.turnLeft()
  242. turtle.forward()
  243. turtle.forward()
  244. break --#
  245.  
  246. elseif emerald and netherstar and wyverncore then
  247. print("Making Upgrade")
  248. print("Insert your Armour or Tool and the upgrade you wish to add!")
  249. turtle.select(1)
  250. turtle.turnRight()
  251. turtle.drop()
  252. turtle.up()
  253. turtle.drop()
  254. turtle.up()
  255. turtle.select(2)
  256. turtle.drop()
  257. turtle.turnRight()
  258. turtle.forward()
  259. turtle.turnLeft()
  260. turtle.drop()
  261. turtle.down()
  262. turtle.select(3)
  263. turtle.drop()
  264. turtle.down()
  265. turtle.drop()
  266. turtle.turnRight()
  267. turtle.forward()
  268. turtle.turnLeft()
  269. turtle.select(4)
  270. turtle.drop()
  271. turtle.turnLeft()
  272. turtle.forward()
  273. turtle.forward()
  274. break --#
  275.  
  276. elseif awakeneddraconiniccore and emeraldblock and wyverncore then
  277. print("Making Upgrade")
  278. print("Insert your Armour or Tool and the upgrade you wish to add!")
  279. turtle.select(1)
  280. turtle.turnRight()
  281. turtle.drop()
  282. turtle.up()
  283. turtle.drop()
  284. turtle.up()
  285. turtle.select(2)
  286. turtle.drop()
  287. turtle.turnRight()
  288. turtle.forward()
  289. turtle.turnLeft()
  290. turtle.drop()
  291. turtle.down()
  292. turtle.select(3)
  293. turtle.drop()
  294. turtle.down()
  295. turtle.drop()
  296. turtle.turnRight()
  297. turtle.forward()
  298. turtle.turnLeft()
  299. turtle.select(4)
  300. turtle.drop()
  301. turtle.turnLeft()
  302. turtle.forward()
  303. turtle.forward()
  304. break --#
  305.  
  306. elseif chaosshard and awakeneddraconiumingot and dracingot then
  307. print("Making Reactor Core")
  308. turtle.select(1)
  309. turtle.turnRight()
  310. turtle.drop()
  311. turtle.up()
  312. turtle.drop()
  313. turtle.up()
  314. turtle.drop()
  315. turtle.turnRight()
  316. turtle.forward()
  317. turtle.turnLeft()
  318. turtle.drop()
  319. turtle.down()
  320. turtle.select(3)
  321. turtle.drop()
  322. turtle.turnLeft()
  323. turtle.turnLeft()
  324. turtle.select(2)
  325. turtle.drop()
  326. turtle.turnLeft()
  327. turtle.turnLeft()
  328. turtle.select(3)
  329. turtle.drop()
  330. turtle.down()
  331. turtle.drop()
  332. turtle.turnRight()
  333. turtle.forward()
  334. turtle.turnLeft()
  335. turtle.drop()
  336. turtle.turnLeft()
  337. turtle.forward()
  338. turtle.forward()
  339. break --#
  340.  
  341. elseif cc and rsf then
  342. print("Making Reactor Stabilizer Frame")
  343. turtle.select(2)
  344. turtle.turnRight()
  345. turtle.drop()
  346. turtle.up()
  347. turtle.select(3)
  348. turtle.drop()
  349. turtle.up()
  350. turtle.select(4)
  351. turtle.drop()
  352. turtle.turnRight()
  353. turtle.forward()
  354. turtle.turnLeft()
  355. turtle.drop()
  356. turtle.down()
  357. turtle.drop()
  358. turtle.turnLeft()
  359. turtle.turnLeft()
  360. turtle.select(1)
  361. turtle.drop()
  362. turtle.turnLeft()
  363. turtle.turnLeft()
  364. turtle.down()
  365. turtle.select(4)
  366. turtle.drop()
  367. turtle.turnRight()
  368. turtle.forward()
  369. turtle.turnLeft()
  370. turtle.select(5)
  371. turtle.drop()
  372. turtle.up()
  373. turtle.select(6)
  374. turtle.drop()
  375. turtle.down()
  376. turtle.turnLeft()
  377. turtle.forward()
  378. turtle.forward()
  379. break --#
  380.  
  381. elseif wss then
  382. print("Making EEF")
  383. turtle.turnRight()
  384. turtle.select(1)
  385. turtle.drop()
  386. turtle.up()
  387. turtle.drop()
  388. turtle.up()
  389. turtle.drop()
  390. turtle.turnRight()
  391. turtle.forward()
  392. turtle.turnLeft()
  393. turtle.drop()
  394. turtle.down()
  395. turtle.drop()
  396. turtle.turnLeft()
  397. turtle.turnLeft()
  398. turtle.select(4)
  399. turtle.drop()
  400. turtle.turnLeft()
  401. turtle.turnLeft()
  402. turtle.select(1)
  403. turtle.down()
  404. turtle.drop()
  405. turtle.turnRight()
  406. turtle.forward()
  407. turtle.turnLeft()
  408. turtle.drop()
  409. turtle.up()
  410. turtle.select(2)
  411. turtle.drop()
  412. turtle.turnRight()
  413. turtle.select(3)
  414. turtle.drop()
  415. turtle.select(2)
  416. turtle.turnLeft()
  417. turtle.up()
  418. turtle.drop()
  419. turtle.drop()
  420. turtle.down()
  421. turtle.down()
  422. turtle.turnLeft()
  423. turtle.forward()
  424. turtle.forward()
  425. break --#
  426.  
  427. else if ii and dracingot then
  428. print("Making Reactor Energy Injector")
  429. turtle.select(1)
  430. turtle.turnRight()
  431. turtle.drop()
  432. turtle.up()
  433. turtle.drop()
  434. turtle.select(2)
  435. turtle.up()
  436. turtle.drop()
  437. turtle.turnRight()
  438. turtle.forward()
  439. turtle.turnLeft()
  440. turtle.drop()
  441. turtle.down()
  442. turtle.drop()
  443. turtle.turnLeft()
  444. turtle.turnLeft()
  445. turtle.select(3)
  446. turtle.drop()
  447. turtle.turnLeft()
  448. turtle.turnLeft()
  449. turtle.down()
  450. turtle.select(2)
  451. turtle.drop()
  452. turtle.turnRight()
  453. turtle.forward()
  454. turtle.turnLeft()
  455. turtle.select(4)
  456. turtle.drop()
  457. turtle.up()
  458. turtle.drop()
  459. turtle.turnRight()
  460. turtle.drop()
  461. turtle.turnLeft()
  462. turtle.up()
  463. turtle.drop()
  464. turtle.down()
  465. turtle.down()
  466. turtle.turnLeft()
  467. turtle.forward()
  468. turtle.forward()
  469. break --#
  470.  
  471. elseif dis then
  472. print("Making Advanced Dislocator")
  473. turtle.select(1)
  474. turtle.turnRight()
  475. turtle.drop()
  476. turtle.up()
  477. turtle.select(2)
  478. turtle.drop()
  479. turtle.up()
  480. turtle.drop()
  481. turtle.turnRight()
  482. turtle.forward()
  483. turtle.turnLeft()
  484. turtle.drop()
  485. turtle.select(4)
  486. turtle.down()
  487. turtle.drop()
  488. turtle.turnLeft()
  489. turtle.turnLeft()
  490. turtle.select(3)
  491. turtle.drop()
  492. turtle.turnLeft()
  493. turtle.turnLeft()
  494. turtle.select(4)
  495. turtle.down()
  496. turtle.drop()
  497. turtle.turnRight()
  498. turtle.forward()
  499. turtle.turnLeft()
  500. turtle.drop()
  501. turtle.up()
  502. turtle.drop()
  503. turtle.down()
  504. turtle.turnLeft()
  505. turtle.forward()
  506. turtle.forward()
  507. break --#
  508. end
  509. end
  510. end
  511. sleep(2)
  512. print("ree")
  513. end
  514. end
Add Comment
Please, Sign In to add comment