Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- while true do
- local sender, message = rednet.receive()
- if message == "w" then turtle.forward() print("w")
- elseif message == "a" then turtle.turnLeft() print("a")
- elseif message == "s" then turtle.back() print("s")
- elseif message == "d" then turtle.turnRight() print("d")
- elseif message == "q" then turtle.up() print("q")
- elseif message == "e" then turtle.down() print("e")
- elseif message == "b" then turtle.dig() print("b")
- elseif message == "c" then turtle.suckDown(64) print("c")
- elseif message == "r" then turtle.refuel(64) print("r")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement