Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- t = turtle
- funtion listen()
- senderID, message, protocol = rednet.receive()
- write("Received: " .. message .. "\n")
- if message == "forward" then
- t.forward()
- elseif message == "back" then
- t.back()
- elseif message == "left" then
- t.turnLeft()
- elseif message == "right" then
- t.turnRight()
- elseif message == "up" then
- t.goUp()
- elseif message == "down" then
- t.goDown()
- end
- end
- while(true) do
- listen()
- end
Advertisement
Add Comment
Please, Sign In to add comment