Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- while true do
- local ID, msg, did = rednet.receive()
- if msg == "fwd" then
- print("fwd")
- turtle.forward()
- end
- if msg == "left" then
- print("left")
- turtle.turnLeft()
- end
- if msg == "right" then
- print("right")
- turtle.turnRight()
- end
- if msg == "back" then
- print("back")
- turtle.back()
- end
- if msg == "up" then
- print("up")
- turtle.up()
- end
- if msg == "down" then
- print("down")
- turtle.down()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement