Advertisement
asteroidsteam

HC-BB4.dll

Mar 27th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. for a,b in pairs(rs.getSides()) do
  2. if peripheral.getType(b) == "modem" then
  3. rednet.open(b)
  4. end
  5. end
  6. while true do
  7. local id, msg = rednet.receive()
  8. print("ITEM RECIVED: ", msg)
  9. if msg == "00x0 -0" then
  10. print("Connection Terminated!")
  11. os.sleep(10)
  12. os.shutdown()
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement