Advertisement
babulm

Untitled

Dec 12th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. atmid =
  2.  
  3. pipe = peripheral.wrap("bottom")
  4. rednet.open("top")
  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, 0) -- 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.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39. while true do
  40. empfangen()
  41. if item == "tungsten" then
  42. pipe.makeRequest(identitungsten, menge)
  43. end
  44. if item == "Me Drive" then
  45. pipe.makeRequest(identicobble, menge)
  46. end
  47. if item == "Me Controller" then
  48. pipe.makeRequest(identicontroller, menge)
  49. end
  50. if item == "Me Access Terminal" then
  51. pipe.makeRequest(identiacces, menge)
  52. end
  53. if item == "Me Interface" then
  54. pipe.makeRequest(identiinterface, menge)
  55. end
  56. if item == "Me Import Bus" then
  57. pipe.makeRequest(identiimport, menge)
  58. end
  59. if item == "Me Export Bus" then
  60. pipe.makeRequest(identiexport, menge)
  61. end
  62. if item == "Me Storage Bus" then
  63. pipe.makeRequest(identistorage, menge)
  64. end
  65.  
  66.  
  67.  
  68. if item == "MFSU" then
  69. pipe.makeRequest(identimfsu, menge)
  70. end
  71. if item == "Glass Fibre Cable" then
  72. pipe.makeRequest(identiglassfibre, menge)
  73. end
  74. if item == "Quarry" then
  75. pipe.makeRequest(identiquarry, menge)
  76. end
  77. if item == "Energy Tesseract" then
  78. pipe.makeRequest(identienergytesseract, menge)
  79. end
  80. if item == "Quartz" then
  81. pipe.makeRequest(identiquartz, menge)
  82. end
  83. if item == "Gold Ingot" then
  84. pipe.makeRequest(identigold, menge)
  85. end
  86. if item == "Iron Ingot" then
  87. pipe.makeRequest(identiiron, menge)
  88. end
  89.  
  90. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement