Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- id,msg,prot = rednet.receive()
- rednet.open("left")
- function Commands()
- if msg == "Down" then
- turtle.down()
- elseif msg == "Forward" then
- turtle.forward()
- elseif msg == "turnLeft" then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- elseif msg == "turnRight" then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- elseif msg == "Turn Around" then
- turtle.turnLeft()
- turtle.turnLeft()
- elseif msg == "Up" then
- turtle.up()
- end
- end
- function Start()
- if msg == "Begin" then
- while true do
- Commands()
- end
- end
- end
- Start()
Add Comment
Please, Sign In to add comment