norway240

Computer Craft: RC Turtle (CLIENT) (allows to accept 3 args)

Sep 4th, 2012
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. rednet.open("right")
  2. while true do
  3. local a, b, c = rednet.receive()
  4. local d, e, f = rednet.receive()
  5. local g, h, i = rednet.receive()
  6. local j, k, l = rednet.receive()
  7. print(b, e, h, k)
  8. if (e == ".") and (h == ".") and (k == ".") then
  9. shell.run(b)
  10. end
  11. if (e ~= ".") and (h == ".") and (k == ".") then
  12. shell.run(b,e)
  13. end
  14. if (e ~= ".") and (h ~= ".") and (k == ".") then
  15. shell.run(b,e,h)
  16. end
  17. if (e ~= ".") and (h ~= ".") and (k ~= ".") then
  18. shell.run(b,e,h,k)
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment