Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - --Csstform
 - rednet.open("left")
 - function getInput()
 - local _,input = os.pullEvent("key")
 - return input
 - end
 - function sendCommand(id, command)
 - rednet.send(id, command)
 - end
 - function recieveCommand()
 - local senderId, message, distance = rednet.receive()
 - return message
 - end
 - function translate(input)
 - if input == "forward" then
 - turtle.forward()
 - elseif input == "left" then
 - turtle.turnLeft()
 - elseif input == "right" then
 - turtle.turnRight()
 - elseif input == "back" then
 - turtle.back()
 - end
 - end
 - while true do
 - local test = recieveCommand()
 - translate(test)
 - end
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment