Guido_Fe

commandTurtle

Jan 6th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local ID=4
  2. --local wifi = peripheral.wrap("back")
  3. rednet.open("back")
  4. repeat
  5.     local event, key = os.pullEvent("key")
  6.     if key==keys.left then rednet.send(ID, "left") end
  7.     if key==keys.up then rednet.send("forward") end
  8.     if key==keys.right then rednet.send("right" end)
  9.     if key==keys.down then rednet.send("back") end
  10.     if key==keys.s then rednet.send("down") end
  11.     if key==keys.w then rednet.send("up") end
  12.     if key==keys.q then rednet.send("attack") end
  13. until key==keys.e
Add Comment
Please, Sign In to add comment