Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --item.SpatialStorageCell.16Cubed
- ECInput = peripheral.wrap("top")
- ECOutput = peripheral.wrap("bottom")
- ioPort = peripheral.wrap("right")
- freqRange = 60
- while fs.exists("freq") == false do
- term.clear()
- term.setCursorPos(1,1)
- print("Frequency not set!")
- end
- file = fs.open("freq", "r")
- freq = file.readAll()
- file.close()
- while true do
- var1 = ECInput.getStackInSlot(1)
- if var1 ~= nil then
- print("something in chest")
- if var1["name"] == "item.ItemSpatialStorageCell.16Cubed" and ECInput.getFrequency() == freqRange + freq then
- print("found drive")
- ECOutput.setFrequency(freqRange)
- ECInput.pushItem("East",1)
- var = ioPort.getStackInSlot(2)
- while var == nil do
- rs.setAnalogOutput("right", 1)
- sleep(0.5)
- rs.setOutput("right", false)
- var = ioPort.getStackInSlot(2)
- print("Attempting to deploy image")
- end
- rednet.broadcast("down",freq)
- ioPort.pushItem("down",1)
- else
- rednet.broadcast("up",freq)
- end
- end
- sleep(0.05)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement