Advertisement
osmarks

MW Autocrafturtle

Apr 14th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. local f = fs.open("conf", "r")
  2. local conf = textutils.unserialise(f.readAll())
  3. f.close()
  4.  
  5. rednet.open(conf.modem)
  6.  
  7. local function query(m)
  8. local msg
  9. repeat
  10. rednet.broadcast(m, "mw")
  11. _, msg = rednet.receive("mw", 1)
  12. until msg
  13. return msg
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement