Advertisement
LDDestroier

RC Turtle Client

Aug 1st, 2014
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for k,v in pairs({"right","left","top","bottom","front","back"}) do
  2.         if peripheral.getType(v)=="modem" then
  3.                 rednet.open(v)
  4.                 isOpen=true
  5.         end
  6. end
  7. print("Computercraft Turtle Control Client")
  8. print("-----------------------------------")
  9. print("   W     E  T Y")
  10. print(" A S D   Q  G H")
  11. print(" U I O P    B N")
  12. while true do
  13.   local event, key = os.pullEvent("char")
  14.   rednet.broadcast(key)
  15.   if key == "x" then
  16.     break
  17.   end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement