Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for a,b in pairs(rs.getSides()) do
- if peripheral.getType(b) == "modem" then
- rednet.open(b)
- end
- end
- while true do
- local id, msg = rednet.receive()
- print("ITEM RECIVED: ", msg)
- if msg == "00x0 -0" then
- print("Connection Terminated!")
- os.sleep(10)
- os.shutdown()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement