Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- atmid =
- pipe = peripheral.wrap("bottom")
- rednet.open("top")
- function empfangen()
- id,uebertragung = rednet.receive()
- if id == atmid then
- data = textutils.unserialize(uebertragung)
- item = data.item
- menge = data.menge
- end
- end
- identimtungsten = pipe.getItemIdentifierIDFor(254, 6) --MFSU
- identicobble = pipe.getItemIdentifierIDFor(900:3, 0) -- ME drive
- identicontroller = pipe.getItemIdentifierIDFor(900, 2) --Controller
- identiacces = pipe.getItemIdentifierIDFor(900, 6) -- Acces
- identiinterface = pipe.getItemIdentifierIDFor(900, 8) --interface
- identiimport = pipe.getItemIdentifierIDFor(901, 1) -- import
- identiexport = pipe.getItemIdentifierIDFor(901, 0) -- export
- identistorage = pipe.getItemIdentifierIDFor(901, 9) --storage
- identimfsu = pipe.getItemIdentifierIDFor(227, 2) --MFSU
- identiglassfibre = pipe.getItemIdentifierIDFor(30184, 9) --Glassfibre
- identiquarry = pipe.getItemIdentifierIDFor(153, 0) -- quarry
- identienergytesseract = pipe.getItemIdentifierIDFor(2007, 0) --energytesseract
- identiquartz = pipe.getItemIdentifierIDFor(4362, 6) --quartz
- identigold = pipe.getItemIdentifierIDFor(266, 0) --gold
- identiiron = pipe.getItemIdentifierIDFor(265, 0) --iron
- while true do
- empfangen()
- if item == "tungsten" then
- pipe.makeRequest(identitungsten, menge)
- end
- if item == "Me Drive" then
- pipe.makeRequest(identicobble, menge)
- end
- if item == "Me Controller" then
- pipe.makeRequest(identicontroller, menge)
- end
- if item == "Me Access Terminal" then
- pipe.makeRequest(identiacces, menge)
- end
- if item == "Me Interface" then
- pipe.makeRequest(identiinterface, menge)
- end
- if item == "Me Import Bus" then
- pipe.makeRequest(identiimport, menge)
- end
- if item == "Me Export Bus" then
- pipe.makeRequest(identiexport, menge)
- end
- if item == "Me Storage Bus" then
- pipe.makeRequest(identistorage, menge)
- end
- if item == "MFSU" then
- pipe.makeRequest(identimfsu, menge)
- end
- if item == "Glass Fibre Cable" then
- pipe.makeRequest(identiglassfibre, menge)
- end
- if item == "Quarry" then
- pipe.makeRequest(identiquarry, menge)
- end
- if item == "Energy Tesseract" then
- pipe.makeRequest(identienergytesseract, menge)
- end
- if item == "Quartz" then
- pipe.makeRequest(identiquartz, menge)
- end
- if item == "Gold Ingot" then
- pipe.makeRequest(identigold, menge)
- end
- if item == "Iron Ingot" then
- pipe.makeRequest(identiiron, menge)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement