Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Notes:
- - Put in the port at which the robot and the reciever will communicate through.
- - This program should be ran on it's own server/computer
- - Make sure to run the program before using the quarry
- - The reciever should have a wireless network card
- --]]
- local component = require("component")
- local event = require("event")
- local computer = require("computer")
- local port = --Port
- if (not(component.modem.isOpen(port))) then
- component.modem.open(port)
- end
- repeat
- local _, _, _, _, _, message = event.pull("modem_message")
- print("Seconds: " .. computer.uptime() .. " Message: " .. message)
- until message == "Quarry is finished"
- component.modem.close(port)
Advertisement
Add Comment
Please, Sign In to add comment