Advertisement
babulm

Untitled

Feb 25th, 2020
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 KB | None | 0 0
  1. atmid = 3765
  2.  
  3. pipe = peripheral.wrap("top")
  4. rednet.open("left")
  5. function empfangen()
  6. id,uebertragung = rednet.receive()
  7. if id == atmid then
  8. data = textutils.unserialize(uebertragung)
  9. item = data.item
  10. menge = data.menge
  11. end
  12. end
  13.  
  14. identimtungsten = pipe.getItemIdentifierIDFor(254, 6) --MFSU
  15.  
  16.  
  17. identicobble = pipe.getItemIdentifierIDFor(900, 3) -- ME drive
  18. identicontroller = pipe.getItemIdentifierIDFor(900, 2) --Controller
  19. identiacces = pipe.getItemIdentifierIDFor(900, 6) -- Acces
  20. identiinterface = pipe.getItemIdentifierIDFor(900, 8) --interface
  21. identiimport = pipe.getItemIdentifierIDFor(901, 1) -- import
  22. identiexport = pipe.getItemIdentifierIDFor(901, 0) -- export
  23. identistorage = pipe.getItemIdentifierIDFor(901, 9) --storage
  24.  
  25. identimfsu = pipe.getItemIdentifierIDFor(227, 2) --MFSU
  26. identiglassfibre = pipe.getItemIdentifierIDFor(30184, 9) --Glassfibre
  27. identiquarry = pipe.getItemIdentifierIDFor(153, 0) -- quarry
  28. identienergytesseract = pipe.getItemIdentifierIDFor(2007, 0) --energytesseract
  29. identiquartz = pipe.getItemIdentifierIDFor(4362, 6) --quartz
  30. identigold = pipe.getItemIdentifierIDFor(266, 0) --gold
  31. identiiron = pipe.getItemIdentifierIDFor(265, 0) --iron
  32.  
  33. identidiamant = pipe.getItemIdentifierIDFor(264,0) --dia
  34. identilevelemitter = pipe.getItemIdentifierIDFor(901,4) --level emitter
  35. identisolarpanel = pipe.getItemIdentifierIDFor(246,3) --solar
  36. identilvsolar = pipe.getItemIdentifierIDFor(183,0) --lv
  37. identimvsolar = pipe.getItemIdentifierIDFor(183,1) --mv
  38. identihvsolar = pipe.getItemIdentifierIDFor(183,2) --hv
  39. identiuu = pipe.getItemIdentifierIDFor(30188,0) --uu
  40.  
  41. identioverclocker = pipe.getItemIdentifierIDFor(30125,0) --overclocker
  42. identitransformer = pipe.getItemIdentifierIDFor(30125,1) --transformer
  43. identistorage = pipe.getItemIdentifierIDFor(30125,2) --stoage
  44. identiuran = pipe.getItemIdentifierIDFor(30207,0) --uran
  45. identiquaduran = pipe.getItemIdentifierIDFor(30101,0) --quad
  46. identiadvheatvent = pipe.getItemIdentifierIDFor(30089,0) --adv heatvent
  47. identicompheatvent = pipe.getItemIdentifierIDFor(30090,0) --comp heat vent
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55. while true do
  56. empfangen()
  57. if item == "tungsten" then
  58. pipe.makeRequest(identitungsten, menge)
  59. end
  60. if item == "Me Drive" then
  61. pipe.makeRequest(identicobble, menge)
  62. end
  63. if item == "Me Controller" then
  64. pipe.makeRequest(identicontroller, menge)
  65. end
  66. if item == "Me Access Terminal" then
  67. pipe.makeRequest(identiacces, menge)
  68. end
  69. if item == "Me Interface" then
  70. pipe.makeRequest(identiinterface, menge)
  71. end
  72. if item == "Me Import Bus" then
  73. pipe.makeRequest(identiimport, menge)
  74. end
  75. if item == "Me Export Bus" then
  76. pipe.makeRequest(identiexport, menge)
  77. end
  78. if item == "Me Storage Bus" then
  79. pipe.makeRequest(identistorage, menge)
  80. end
  81.  
  82.  
  83.  
  84. if item == "MFSU" then
  85. pipe.makeRequest(identimfsu, menge)
  86. end
  87. if item == "Glass Fibre Cable" then
  88. pipe.makeRequest(identiglassfibre, menge)
  89. end
  90. if item == "Quarry" then
  91. pipe.makeRequest(identiquarry, menge)
  92. end
  93. if item == "Energy Tesseract" then
  94. pipe.makeRequest(identienergytesseract, menge)
  95. end
  96. if item == "Quartz" then
  97. pipe.makeRequest(identiquartz, menge)
  98. end
  99. if item == "Gold Ingot" then
  100. pipe.makeRequest(identigold, menge)
  101. end
  102. if item == "Iron Ingot" then
  103. pipe.makeRequest(identiiron, menge)
  104. end
  105.  
  106. if item == "Diamant" then
  107. pipe.makeRequest(identidiamant, menge)
  108. end
  109. if item == "Me Level Emitter" then
  110. pipe.makeRequest(identilevelemitter, menge)
  111. end
  112. if item == "Solar Panel" then
  113. pipe.makeRequest(identisolarpanel, menge)
  114. end
  115. if item == "Lv Solar" then
  116. pipe.makeRequest(identilvsolar, menge)
  117. end
  118. if item == "Mv Solar" then
  119. pipe.makeRequest(identimvsolar, menge)
  120. end
  121. if item == "Hv Solar" then
  122. pipe.makeRequest(identihvsolar, menge)
  123. end
  124. if item == "UU" then
  125. pipe.makeRequest(identiuu, menge)
  126. end
  127.  
  128.  
  129. if item == "Overclocker Upgrade" then
  130. pipe.makeRequest(identioverclocker, menge)
  131. end
  132. if item == "Transformer Upgrade" then
  133. pipe.makeRequest(identitransformer, menge)
  134. end
  135. if item == "Storage Upgrade" then
  136. pipe.makeRequest(identistorage, menge)
  137. end
  138. if item == "Uran Zelle" then
  139. pipe.makeRequest(identiuran, menge)
  140. end
  141. if item == "Quad Uran Zelle" then
  142. pipe.makeRequest(identiquaduran, menge)
  143. end
  144. if item == "Adv. Heat Vent" then
  145. pipe.makeRequest(identiadvheatvent, menge)
  146. end
  147. if item == "Comp Heat Vent" then
  148. pipe.makeRequest(identicompheatvent, menge)
  149. end
  150.  
  151.  
  152. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement