Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Ari's Turtle Interface")
- rednet.open("right")
- while true do
- local senderid,message = rednet.receive()
- if senderid == 69 and message == "w"
- then turtle.forward()
- elseif senderid == 69 and message == "s"
- then turtle.back()
- elseif senderid == 69 and message == "a"
- then turtle.turnLeft()
- elseif senderid == 69 and message == "d"
- then turtle.turnRight()
- elseif senderid == 69 and message == "up"
- then turtle.digUp(left)
- elseif senderid == 69 and message == "pageUp"
- then turtle.up()
- elseif senderid == 69 and message == "pageDown"
- then turtle.down()
- elseif senderid== 69 and message == "down"
- then turtle.digDown(left)
- elseif senderid== 69 and message == "left"
- then turtle.placeDown()
- elseif senderid== 69 and message == "right"
- then turtle.placeUp()
- elseif senderid== 69 and message == "space"
- then turtle.dig(left)
- elseif senderid== 69 and message == "f"
- then turtle.suck()
- elseif senderid == 69 and message == "r"
- then turtle.suckUp()
- elseif senderid == 69 and message == "v"
- then turtle.suckDown()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement