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
- 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
- while true do
- empfangen()
- 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
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement