Advertisement
amr2003

client

Feb 20th, 2015
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1. local chat = peripheral.wrap("top")
  2. rednet.open("left")
  3. while true do
  4.     local ch = { os.pullEvent("chat_message") }
  5.     if ch[3] == "up" then
  6.         rednet.send(555,"up")
  7.     elseif ch[3] == "down" then
  8.         print("down")
  9.         rednet.send(555,"down")
  10.     elseif ch[3] == "forward" then
  11.         print("forward")
  12.         rednet.send(555,"forward")
  13.     elseif ch[3] == "dig down" then
  14.         print("dig down")
  15.         rednet.send(555,"digdown")
  16.     elseif ch[3] == "dig up" then
  17.         print("dig up")
  18.         rednet.send(555,"digup")
  19.     elseif ch[3] == "left" then
  20.         print("left")
  21.         rednet.send(555,"left")
  22.     elseif ch[3] == "right" then
  23.         print("right")
  24.         rednet.send(555,"right")
  25.     end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement