Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chat = peripheral.wrap("top")
- rednet.open("left")
- while true do
- local ch = { os.pullEvent("chat_message") }
- if ch[3] == "up" then
- rednet.send(555,"up")
- elseif ch[3] == "down" then
- print("down")
- rednet.send(555,"down")
- elseif ch[3] == "forward" then
- print("forward")
- rednet.send(555,"forward")
- elseif ch[3] == "dig down" then
- print("dig down")
- rednet.send(555,"digdown")
- elseif ch[3] == "dig up" then
- print("dig up")
- rednet.send(555,"digup")
- elseif ch[3] == "left" then
- print("left")
- rednet.send(555,"left")
- elseif ch[3] == "right" then
- print("right")
- rednet.send(555,"right")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement