Advertisement
Guest User

Untitled

a guest
Oct 7th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 19.54 KB | None | 0 0
  1. coaldust = db.getItem("Coal Dust")
  2. charcoaldust = db.getItem("Charcoal Dust")
  3. glass = db.getItem("Glass")
  4. elecirc = db.getItem("Electronic Circuit")
  5. gen = db.getItem("Generator")
  6. copcable = db.getItem("Copper Cable")
  7. red = db.getItem("Redstone")
  8. refiron = db.getItem("Refined Iron")
  9. rub = db.getItem("Rubber")
  10. cop = db.getItem("Copper")
  11. cobble = db.getItem("Cobblestone")
  12. tin = db.getItem("Tin")
  13. bat = db.getItem("RE-Battery")
  14. machblock = db.getItem("Machine Block")
  15. piec = db.getItem("Furnace")
  16. iron = db.getItem("Iron Ingot")
  17. planks = db.getItem("Wooden Planks")
  18. wood = db.getItem("Wood")
  19. ironfurnace = db.getItem("Iron Furnace")
  20. miningpipe = db.getItem("MiningPipe")
  21. treetap = db.getItem("Treetap")
  22. glow = db.getItem("Glowstone Dust")
  23. lapis = db.getItem("Lapis Lazuli")
  24. advcirc = db.getItem("Advanced Circuit")
  25. goldcable = db.getItem("Gold Cable")
  26. insgoldcable = db.getItem("2xIns. Gold Cable")
  27. gold = db.getItem("Gold Ingot")
  28. emptycell = db.getItem("Empty Cell")
  29. stone = db.getItem("Stone")
  30. bronze = db.getItem("Bronze Ingot")
  31. sturdymachine = db.getItem("Sturdy Machine")
  32. chest = db.getItem("Chest")
  33. diamond = db.getItem("Diamond")
  34. stick = db.getItem("Stick")
  35. woodengear = db.getItem("Wooden Gear")
  36. stonegear = db.getItem("Stone Gear")
  37. irongear = db.getItem("Iron Gear")
  38. goldgear = db.getItem("Gold Gear")
  39. diamondgear = db.getItem("Diamond Gear")
  40. piston = db.getItem("Piston")
  41. flint = db.getItem("Flint")
  42. rawcarbonfibre = db.getItem("Raw Carbon Fibre")
  43. rawcarbonmesh = db.getItem("Raw Carbon Mesh")
  44. elefurnace = db.getItem("Electric Furnace")
  45. advmachblock = db.getItem("Advanced Machine Block")
  46. advalloy = db.getItem("Advanced Alloy")
  47. carbonplate = db.getItem("Carbon Plate")
  48. mvtransformer = db.getItem("MV-Transformer")
  49. inksac = db.getItem("Ink Sac")
  50. yellow = db.getItem("Dandelion Yellow")
  51. craftingtable = db.getItem("Crafting Table")
  52. landmark = db.getItem("Land Mark")
  53. redstonetorche = db.getItem("Redstone Torche")
  54. energycrystal = db.getItem("Energy Crystal")
  55. mfe = db.getItem("MFE")
  56. lapotron = db.getItem("Lapotron Crystal")
  57. solar = db.getItem("Solar Panel")
  58. lvtransformer = db.getItem("LV-Transformer")
  59. macerator = db.getItem("Macerator")
  60. electrolyzedwatercell = db.getItem("Electrolyzed Water Cell")
  61. extractor = db.getItem("Extractor")
  62. obsidian = db.getItem("Obsidian")
  63. compressor = db.getItem("Compressor")
  64. miningdrill = db.getItem("Mining Drill")
  65. brass = db.getItem("Brass Ingot")
  66. dirt = db.getItem("Dirt")
  67. ironpickaxe = db.getItem("Iron Pickaxe")
  68. miningwell = db.getItem("Mining Well")
  69. tank = db.getItem("Tank")
  70. lvsolar = db.getItem("Low Voltage Solar Array")
  71. combustionengine = db.getItem("Combustion Engine")
  72. coolantcell = db.getItem("Coolant Cell")
  73. batpack = db.getItem("BatPack")
  74. lapisblock = db.getItem("Lapis Lazuli Block")
  75. uumater = db.getItem("UU-Matter")
  76. iridiumore = db.getItem("Iridium Ore")
  77. iridiumplate = db.getItem("Iridium Plate")
  78. wool = db.getItem("Wool")
  79. rubberboots = db.getItem("Rubber Boots")
  80. nanoboots = db.getItem("NanoSuit Boots")
  81. redwafer = db.getItem("Red-Doped Wafer")
  82. nanoleg = db.getItem("NanoSuit Leggings")
  83. nanoarmor = db.getItem("NanoSuit Bodyarmor")
  84. nanohelmet = db.getItem("NanoSuit Helmet")
  85. reinfglass = db.getItem("Reinforced Glass")
  86. recycler = db.getItem("Recycler")
  87. glasspane = db.getItem("Glass Pane")
  88. redchip = db.getItem("Computer Redstone Chip")
  89. ironchip = db.getItem("Computer Iron Chip")
  90. blanktransmitercard = db.getItem("Blank Transmitter Card")
  91. copchest = db.getItem("Copper Chest")
  92. silver = db.getItem("Silver Ingot")
  93. silverchest = db.getItem("Silver Chest")
  94. paper = db.getItem("Paper")
  95. sugarcanes = db.getItem("Sugar Canes")
  96. blanksensorcard = db.getItem("Blank Sensor Card")
  97. bronzegear = db.getItem("Bronze Gear")
  98. inshvcable = db.getItem("4xIns. HV Cable")
  99. hvcable = db.getItem("HV Cable")
  100. solarrec = {charcoaldust,glass,charcoaldust,glass,charcoaldust,glass,elecirc,gen,elecirc}
  101. elecircrec = {copcable,copcable,copcable,red,refiron,red,copcable,copcable,copcable}
  102. copcablerec = {rub,rub,rub,cop,cop,cop,rub,rub,rub}
  103. genrec = {bat,nil,nil,machblock,nil,nil,piec,nil,nil}
  104. batrec = {nil,copcable,nil,tin,red,tin,tin,red,tin}
  105. machblockrec = {refiron,refiron,refiron,refiron,nil,refiron,refiron,refiron,refiron}
  106. piecrec = {cobble,cobble,cobble,cobble,nil,cobble,cobble,cobble,cobble}
  107. ironfurnacerec = {nil,iron,nil,iron,nil,iron,iron,piec,iron}
  108. drillrec = {nil,refiron,nil,refiron,elecirc,refiron,refiron,bat,refiron}
  109. planksrec = {wood,nil,nil,nil,nil,nil,nil,nil,nil}
  110. batboxrec = {planks,copcable,planks,bat,bat,bat,planks,planks,planks}
  111. batpackrec = {bat,elecirc,bat,bat,tin,bat,bat,nil,bat}
  112. elefurnacerec = {nil,elecirc,nil,red,ironfurnace,red,nil,nil,nil}
  113. minerrec = {elecirc,machblock,elecirc,nil,miningpipe,nil,nil,miningpipe,nil}
  114. miningpiperec = {refiron,nil,refiron,refiron,nil,refiron,refiron,treetap,refiron}
  115. treetaprec = {nil,planks,nil,planks,planks,planks,planks,nil,nil}
  116. advcircrec = {red,glow,red,lapis,elecirc,lapis,red,glow,red}
  117. goldcablerec = {gold,gold,gold,nil,nil,nil,nil,nil,nil}
  118. insgoldcablerec = {rub,rub,nil,goldcable,nil,nil,nil,nil,nil}
  119. ovscannerrec = {nil,glow,nil,glow,advcirc,glow,insgoldcable,bat,insgoldcable}
  120. extractorrec = {treetap,machblock,treetap,treetap,elecirc,treetap,nil,nil,nil}
  121. emptycellrec = {nil,tin,nil,tin,nil,tin,nil,tin,nil}
  122. pumprec = {emptycell,elecirc,emptycell,emptycell,machblock,emptycell,miningpipe,treetap,miningpipe}
  123. compressorrec = {stone,nil,stone,stone,machblock,stone,stone,elecirc,stone}
  124. sturdymachinerec = {bronze,bronze,bronze,bronze,nil,bronze,bronze,bronze,bronze}
  125. bronzerec = {cop,cop,nil,cop,tin,nil,nil,nil,nil}
  126. thermionicfabricatorrec = {gold,glass,gold,glass,sturdymachine,glass,gold,chest,gold}
  127. chestrec = {planks,planks,planks,planks,nil,planks,planks,planks,planks}
  128. pistonrec = {planks,planks,planks,cobble,iron,cobble,cobble,red,cobble}
  129. woodengearrec = {nil,stick,nil,stick,nil,stick,nil,stick,nil}
  130. stonegearrec = {nil,cobble,nil,cobble,woodengear,cobble,nil,cobble,nil}
  131. irongearrec = {nil,iron,nil,iron,stonegear,iron,nil,iron,nil}
  132. goldgearrec = {nil,gold,nil,gold,irongear,gold,nil,gold,nil}
  133. diamondgearrec = {nil,diamond,nil,diamond,goldgear,diamond,nil,diamond,nil}
  134. redstoneenginerec = {planks,planks,planks,nil,glass,nil,woodengear,piston,woodengear}
  135. steamenginerec = {cobble,cobble,cobble,nil,glass,nil,stonegear,piston,stonegear}
  136. combustionenginerec = {iron,iron,iron,nil,glass,nil,irongear,piston,irongear}
  137. stickrec = {planks,nil,nil,planks,nil,nil,nil,nil,nil}
  138. chainsawrec = {nil,refiron,refiron,refiron,elecirc,refiron,bat,refiron,nil}
  139. maceratorrec = {flint,flint,flint,cobble,machblock,cobble,nil,elecirc,nil}
  140. rawcarbonfibrerec = {coaldust,coaldust,nil,coaldust,coaldust,nil,nil,nil,nil}
  141. rawcarbonmeshrec = {rawcarbonfibre,rawcarbonfibre,nil,nil,nil,nil,nil,nil,nil}
  142. inductionfurnacerec = {cop,cop,cop,cop,elefurnace,cop,cop,advmachblock,cop}
  143. advmachblockrec = {nil,advalloy,nil,carbonplate,machblock,carbonplate,nil,advalloy,nil}
  144. mixedmetalingotrec = {refiron,refiron,refiron,bronze,bronze,bronze,tin,tin,tin}
  145. mvtransformerrec = {nil,insgoldcable,nil,nil,machblock,nil,nil,insgoldcable,nil}
  146. transupgraderec = {glass,glass,glass,insgoldcable,mvtransformer,insgoldcable,glass,elecirc,glass}
  147. craftingtablerec = {planks,planks,nil,planks,planks,nil,nil,nil,nil}
  148. fillerrec = {inksac,landmark,inksac,yellow,craftingtable,yellow,goldgear,chest,goldgear}
  149. landmarkrec = {lapis,nil,nil,redstonetorche,nil,nil,nil,nil,nil}
  150. redstonetorcherec = {red,nil,nil,stick,nil,nil,nil,nil,nil}
  151. energycrystalrec = {red,red,red,red,diamond,red,red,red,red}
  152. mferec = {insgoldcable,energycrystal,insgoldcable,energycrystal,machblock,energycrystal,insgoldcable,energycrystal,insgoldcable}
  153. lapotronrec = {lapis,elecirc,lapis,lapis,energycrystal,lapis,lapis,elecirc,lapis}
  154. mfsurec = {lapotron,advcirc,lapotron,lapotron,mfe,lapotron,lapotron,advmachblock,lapotron}
  155. lvtransformerrec = {planks,copcable,planks,cop,cop,cop,planks,copcable,planks}
  156. lvsolarrec = {solar,solar,solar,solar,lvtransformer,solar,solar,solar,solar}
  157. rotarymaceratorrec = {refiron,refiron,refiron,refiron,macerator,refiron,refiron,advmachblock,refiron}
  158. centrifugeextractorrec = {electrolyzedwatercell,electrolyzedwatercell,electrolyzedwatercell,electrolyzedwatercell,extractor,electrolyzedwatercell,electrolyzedwatercell,advmachblock,electrolyzedwatercell}
  159. electrolyzerrec = {copcable,nill,copcable,copcable,elecirc,copcable,emptycell,machblock,emptycell}
  160. singularitycompressorrec = {obsidian,obsidian,obsidian,obsidian,compressor,obsidian,obsidian,advmachblock,obsidian}
  161. diamonddrillrec = {nil,diamond,nil,diamond,miningdrill,diamond,nil,nil,nil}
  162. pneumatictuberec = {brass,glass,brass,nil,nil,nil,nil,nil,nil}
  163. massfabricatorrec = {glow,advcirc,glow,advmachblock,lapotron,advmachblock,glow,advcirc,glow}
  164. recyclerrec = {nil,glow,nil,dirt,compressor,dirt,refiron,dirt,refiron}
  165. miningwellrec = {iron,red,iron,iron,irongear,iron,iron,ironpickaxe,iron}
  166. bpumprec = {tank,nil,nil,miningwell,nil,nil,nil,nil,nil}
  167. tankrec = {glass,glass,glass,glass,nil,glass,glass,glass,glass}
  168. ironpickaxerec = {iron,iron,iron,nil,stick,nil,nil,stick,nil}
  169. mvsolarrec = {lvsolar,lvsolar,lvsolar,lvsolar,mvtransformer,lvsolar,lvsolar,lvsolar,lvsolar}
  170. regularelectricenginerec = {nil,bat,nil,nil,combustionengine,nil,nil,elecirc,nil}
  171. overclockupgraderec = {coolantcell,coolantcell,coolantcell,copcable,elecirc,copcable,nil,nil,nil}
  172. lapisblockrec = {lapis,lapis,lapis,lapis,lapis,lapis,lapis,lapis,lapis}
  173. lappackrec = {lapisblock,advcirc,lapisblock,lapisblock,batpack,lapisblock,lapisblock,nil,lapisblock}
  174. iridiumorerec = {uumater,uumater,uumater,nil,uumater,nil,uumater,uumater,uumater}
  175. iridiumplaterec = {iridiumore,advalloy,iridiumore,advalloy,diamond,advalloy,iridiumore,advalloy,iridiumore}
  176. rubberbootsrec = {rub,nil,rub,rub,nil,rub,rub,wool,rub}
  177. nanosuitbootsrec = {carbonplate,nil,carbonplate,carbonplate,energycrystal,carbonplate,nil,nil,nil}
  178. nanosuitlegrec = {carbonplate,energycrystal,carbonplate,carbonplate,nil,carbonplate,carbonplate,nil,carbonplate}
  179. nanosuitarmorrec = {carbonplate,nil,carbonplate,carbonplate,energycrystal,carbonplate,carbonplate,carbonplate,carbonplate}
  180. nanosuithelmetrec = {carbonplate,energycrystal,carbonplate,carbonplate,glass,carbonplate,nil,nil,nil}
  181. quantumbootsrec = {iridiumplate,nanoboots,iridiumplate,rubberboots,lapotron,rubberboots,nil,nil,nil}
  182. quantumleggingsrec = {machblock,lapotron,machblock,iridiumplate,nanoleg,iridiumplate,glow,nil,glow}
  183. quantumbodyrec = {advalloy,nanoarmor,advalloy,iridiumplate,lapotron,iridiumplate,iridiumplate,advalloy,iridiumplate}
  184. quantumhelmetrec = {nil,nanohelmet,nil,iridiumplate,lapotron,iridiumplate,advcirc,reinfglass,advcirc}
  185. filterrec = {cobble,cobble,cobble,gold,piston,gold,cobble,redwafer,cobble}
  186. reinfglassrec = {glass,advalloy,glass,glass,glass,glass,glass,advalloy,glass}
  187. bronzerec = {cop,cop,nil,cop,tin,nil,nil,nil,nil}
  188. slowgrinderrec = {refiron,macerator,refiron,advalloy,recycler,advalloy,refiron,advmachblock,refiron}
  189. glasspanerec = {glass,glass,glass,glass,glass,glass,nil,nil,nil}
  190. computerrec = {stone,stone,stone,stone,red,stone,stone,glasspane,stone}
  191. monitorrec = {stone,stone,stone,stone,glasspane,stone,stone,stone,stone}
  192. redchiprec = {stick,stick,stick,red,red,red,stick,stick,stick}
  193. ironchiprec = {stick,stick,stick,redchip,iron,redchip,stick,stick,stick}
  194. sensorrec = {nil,cobble,nil,nil,redchip,nil,nil,stick,nil}
  195. blanktransmitercardrec = {redstonetorche,nil,redstonetorche,cobble,redchip,cobble,cobble,cobble,cobble}
  196. sensorcontrollerrec = {cobble,ironchip,cobble,ironchip,blanktransmitercard,ironchip,cobble,ironchip,cobble}
  197. copchestrec = {cop,cop,cop,cop,chest,cop,cop,cop,cop}
  198. silverchestrec = {silver,glass,silver,glass,copchest,glass,silver,glass,silver}
  199. blanksensorcardrec = {paper,paper,paper,paper,redchip,paper,paper,paper,paper}
  200. paperrec = {sugarcanes,sugarcanes,sugarcanes,nil,nil,nil,nil,nil,nil}
  201. invsensorrec = {planks,planks,planks,planks,blanksensorcard,planks,planks,planks,planks}
  202. bronzegearrec = {nil,bronze,nil,bronze,stonegear,bronze,nil,bronze,nil}
  203. fermenterrec = {bronzegear,glass,bronzegear,glass,sturdymachine,glass,bronzegear,glass,bronzegear}
  204. biogasenginerec = {bronze,bronze,bronze,nil,glass,nil,bronzegear,piston,bronzegear}
  205. carpenterrec = {bronze,glass,bronze,bronze,sturdymachine,bronze,bronze,glass,bronze}
  206. hvtransformerrec = {nil,inshvcable,nil,elecirc,mvtransformer,energycrystal,nil,inshvcable,nil}
  207. inshvcablerec = {rub,rub,nil,rub,hvcable,nil,nil,nil,nil}
  208. hvcablerec = {refiron,refiron,refiron,nil,nil,nil,nil,nil,nil}
  209. fasteleenginerec = {bat,bat,bat,combustionengine,advalloy,combustionengine,elecirc,advalloy,elecirc}
  210. automaticcrafttablerec = {nil,woodengear,nil,woodengear,craftingtable,woodengear,nil,woodengear,nil}
  211. os.loadAPI("/rom/monitorapi")
  212. function surowce(surowiec)
  213. monitorapi.printM("left","Wloz " ..surowiec.. ", i nacisnij przycisk") os.pullEvent()
  214. end
  215. function crafting()
  216. monitorapi.clear("left")
  217. if b == "Furnace" then craftuj(piecrec)
  218. elseif b == "Copper Cable" then craftuj(copcablerec)
  219. elseif b == "Electronic Circuit" then craftuj(elecircrec)
  220. elseif b == "Iron Furnace" then craftuj(ironfurnacerec)
  221. elseif b == "RE-Battery" then craftuj(batrec)
  222. elseif b == "Mining Drill" then craftuj(drillrec)
  223. elseif b == "Wooden Planks" then craftuj(planksrec)
  224. elseif b == "Batbox" then craftuj(batboxrec)
  225. elseif b == "BatPack" then craftuj(batpackrec)
  226. elseif b == "Electric Furnace" then craftuj(elefurnacerec)
  227. elseif b == "Treetap" then craftuj(treetaprec)
  228. elseif b == "MiningPipe" then craftuj(miningpiperec)
  229. elseif b == "Miner" then craftuj(minerrec)
  230. elseif b == "Machine Block" then craftuj(machblockrec)
  231. elseif b == "Advanced Circuit" then craftuj(advcircrec)
  232. elseif b == "Gold Cable" then craftuj(goldcablerec)
  233. elseif b == "2xIns. Gold Cable" then craftuj(insgoldcablerec)
  234. elseif b == "OV Scanner" then craftuj(ovscannerrec)
  235. elseif b == "Generator" then craftuj(genrec)
  236. elseif b == "Extractor" then craftuj(extractorrec)
  237. elseif b == "Empty Cell" then craftuj(emptycellrec)
  238. elseif b == "Pump" then craftuj(pumprec)
  239. elseif b == "Compressor" then craftuj(compressorrec)
  240. elseif b == "Sturdy Machine" then craftuj(sturdymachinerec)
  241. elseif b == "Thermionic Fabricator" then craftuj(thermionicfabricatorrec)
  242. elseif b == "Chest" then craftuj(chestrec)
  243. elseif b == "Stick" then craftuj(stickrec)
  244. elseif b == "Wooden Gear" then craftuj(woodengearrec)
  245. elseif b == "Stone Gear" then craftuj(stonegearrec)
  246. elseif b == "Iron Gear" then craftuj(irongearrec)
  247. elseif b == "Gold Gear" then craftuj(goldgearrec)
  248. elseif b == "Diamond Gear" then craftuj(diamondgearrec)
  249. elseif b == "Piston" then craftuj(pistonrec)
  250. elseif b == "Redstone Engine" then craftuj(redstoneenginerec)
  251. elseif b == "Steam Engine" then craftuj(steamenginerec)
  252. elseif b == "Combustion Engine" then craftuj(combustionenginerec)
  253. elseif b == "Chainsaw" then craftuj(chainsawrec)
  254. elseif b == "Solar Panel" then craftuj(solarrec)
  255. elseif b == "Macerator" then craftuj(maceratorrec)
  256. elseif b == "Induction Furnace" then craftuj(inductionfurnacerec)
  257. elseif b == "MV-Transformer" then craftuj(mvtransformerrec)
  258. elseif b == "Transformer Upgrade" then craftuj(transupgraderec)
  259. elseif b == "Redstone Torche" then craftuj(redstonetorcherec)
  260. elseif b == "Land Mark" then craftuj(landmarkrec)
  261. elseif b == "Crafting Table" then craftuj(craftingtablerec)
  262. elseif b == "Filler" then craftuj(fillerrec)
  263. elseif b == "Energy Crystal" then craftuj(energycrystalrec)
  264. elseif b == "MFE" then craftuj(mferec)
  265. elseif b == "MFSU" then craftuj(mfsurec)
  266. elseif b == "Lapotron Crystal" then craftuj(lapotronrec)
  267. elseif b == "LV-Transformer" then craftuj(lvtransformerrec)
  268. elseif b == "Low Voltage Solar Array" then craftuj(lvsolarrec)
  269. elseif b == "Advanced Machine Block" then craftuj(advmachblockrec)
  270. elseif b == "Advanced Alloy" then craftuj(mixedmetalingotrec) monitorapi.printM("left","Wloz Mix Metal Ingot do compressora") os.pullEvent()
  271. elseif b == "Carbon Plate" then craftuj(rawcarbonmeshrec) monitorapi.printM("left","Wloz Raw Carbon Mesh do compressora") os.pullEvent()
  272. elseif b == "Raw Carbon Mesh" then craftuj(rawcarbonmeshrec)
  273. elseif b == "Raw Carbon Fibre" then craftuj(rawcarbonfibrerec)
  274. elseif b == "Rotary Macerator" then craftuj(rotarymaceratorrec)
  275. elseif b == "Centrifuge Extractor" then craftuj(centrifugeextractorrec)
  276. elseif b == "Electrolyzer" then craftuj(electrolyzerrec)
  277. elseif b == "Singularity Compressor" then craftuj(singularitycompressorrec)
  278. elseif b == "Diamond Drill" then craftuj(diamonddrillrec)
  279. elseif b == "Pneumatic Tube" then craftuj(pneumatictuberec)
  280. elseif b == "Massfabricator" then craftuj(massfabricatorrec)
  281. elseif b == "Recycler" then craftuj(recyclerrec)
  282. elseif b == "Mining Well" then craftuj(miningwellrec)
  283. elseif b == "Tank" then craftuj(tankrec)
  284. elseif b == "BPump" then craftuj(bpumprec)
  285. elseif b == "Iron Pickaxe" then craftuj(ironpickaxerec)
  286. elseif b == "MV Solar" then craftuj(mvsolarrec)
  287. elseif b == "Regular Electric Engine" then craftuj(regularelectricenginerec)
  288. elseif b == "Overclocker Upgrade" then craftuj(overclockupgraderec)
  289. elseif b == "Lapis Lazuli Block" then craftuj(lapisblockrec)
  290. elseif b == "Lappack" then craftuj(lappackrec)
  291. elseif b == "Iridium Ore" then craftuj(iridiumorerec)
  292. elseif b == "Iridium Plate" then craftuj(iridiumplaterec)
  293. elseif b == "Rubber Boots" then craftuj (rubberbootsrec)
  294. elseif b == "NanoSuit Boots" then craftuj(nanosuitbootsrec)
  295. elseif b == "NanoSuit Leggings" then craftuj(nanosuitlegrec)
  296. elseif b == "NanoSuit Bodyarmor" then craftuj(nanosuitarmorrec)
  297. elseif b == "NanoSuit Helmet" then craftuj(nanosuithelmetrec)
  298. elseif b == "QuantumSuit Boots" then craftuj(quantumbootsrec)
  299. elseif b == "QuantumSuit Leggings" then craftuj(quantumleggingsrec)
  300. elseif b == "QuantumSuit Bodyarmor" then craftuj(quantumbodyrec)
  301. elseif b == "QuantumSuit Helmet" then craftuj(quantumhelmetrec)
  302. elseif b == "Filter" then craftuj(filterrec)
  303. elseif b == "Land" then craftuj(landmarkrec)
  304. elseif b == "Reinforced Glass" then craftuj(reinfglassrec)
  305. elseif b == "Bronze Ingot" then craftuj(bronzerec)
  306. elseif b == "Slow Grinder" then craftuj(slowgrinderrec)
  307. elseif b == "Glass Pane" then craftuj(glasspanerec)
  308. elseif b == "Computer" then craftuj(computerrec)
  309. elseif b == "Monitor" then craftuj(monitorrec)
  310. elseif b == "Computer Redstone Chip" then craftuj(redchiprec)
  311. elseif b == "Computer Iron Chip" then craftuj(ironchiprec)
  312. elseif b == "Sensor" then craftuj(sensorrec)
  313. elseif b == "Blank Transmitter Card" then craftuj(blanktransmitercardrec)
  314. elseif b == "Sensor Controller" then craftuj(sensorcontrollerrec)
  315. elseif b == "Copper Chest" then craftuj(copchestrec)
  316. elseif b == "Silver Chest" then craftuj(silverchestrec)
  317. elseif b == "Blank Sensor Card" then craftuj(blanksensorcardrec)
  318. elseif b == "Paper" then craftuj(paperrec)
  319. elseif b == "Inventory SensorModule" then craftuj(invsensorrec)
  320. elseif b == "Bronze Gear" then craftuj(bronzegearrec)
  321. elseif b == "Fermenter" then craftuj(fermenterrec)
  322. elseif b == "Biogas Engine" then craftuj(biogasenginerec)
  323. elseif b == "Carpenter" then craftuj(carpenterrec)
  324. elseif b == "HV Cable" then craftuj(hvcablerec)
  325. elseif b == "4xIns. HV Cable" then craftuj(inshvcablerec)
  326. elseif b == "HV-Transformer" then craftuj(hvtransformerrec)
  327. elseif b == "Fast Electric Engine" then craftuj(fasteleenginerec)
  328. elseif b == "Automatic Crafting Table" then craftuj(automaticcrafttablerec)
  329. elseif b == nil then
  330. else
  331.     surowce(b)
  332. end
  333. end
  334. function craftuj(recka)
  335. a = false
  336. while not a do
  337. workbench.setRecipe("right",recka)
  338. a,b = workbench.craft("right", 1)
  339. if a == false then
  340. b=tostring(b)
  341. crafting()
  342. a = false
  343. end
  344. end
  345. end
  346.  
  347. while true do
  348. print("Co mam craftowac?")
  349. d = read()
  350. print("Ile?")
  351. c = read()
  352. c = tonumber(c)
  353. k = 0
  354. while k<c do
  355. b = d
  356. crafting()
  357. monitorapi.clear("left")
  358. monitorapi.printM("left","Wykonano")
  359. k=k+1
  360. end
  361. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement