SHOW:
|
|
- or go back to the newest paste.
1 | print("Ari's Turtle Interface") | |
2 | rednet.open("right") | |
3 | while true do | |
4 | local senderid,message = rednet.receive() | |
5 | - | if senderid == 68 and message == "w" |
5 | + | if senderid == 69 and message == "w" |
6 | then turtle.forward() | |
7 | - | elseif senderid == 68 and message == "s" |
7 | + | elseif senderid == 69 and message == "s" |
8 | then turtle.back() | |
9 | - | elseif senderid == 68 and message == "a" |
9 | + | elseif senderid == 69 and message == "a" |
10 | then turtle.turnLeft() | |
11 | - | elseif senderid == 68 and message == "d" |
11 | + | elseif senderid == 69 and message == "d" |
12 | then turtle.turnRight() | |
13 | - | elseif senderid == 68 and message == "up" |
13 | + | elseif senderid == 69 and message == "up" |
14 | then turtle.digUp(left) | |
15 | - | elseif senderid == 68 and message == "pageUp" |
15 | + | elseif senderid == 69 and message == "pageUp" |
16 | then turtle.up() | |
17 | - | elseif senderid == 68 and message == "pageDown" |
17 | + | elseif senderid == 69 and message == "pageDown" |
18 | then turtle.down() | |
19 | - | elseif senderid==68 and message == "down" |
19 | + | elseif senderid== 69 and message == "down" |
20 | then turtle.digDown(left) | |
21 | - | elseif senderid==68 and message == "left" |
21 | + | elseif senderid== 69 and message == "left" |
22 | then turtle.placeDown() | |
23 | - | elseif senderid==68 and message == "right" |
23 | + | elseif senderid== 69 and message == "right" |
24 | then turtle.placeUp() | |
25 | - | elseif senderid==68 and message == "space" |
25 | + | elseif senderid== 69 and message == "space" |
26 | then turtle.dig(left) | |
27 | - | elseif senderid==68 and message == "f" |
27 | + | elseif senderid== 69 and message == "f" |
28 | then turtle.suck() | |
29 | - | elseif senderid == 68 and message == "r" |
29 | + | elseif senderid == 69 and message == "r" |
30 | then turtle.suckUp() | |
31 | - | elseif senderid == 68 and message == "v" |
31 | + | elseif senderid == 69 and message == "v" |
32 | then turtle.suckDown() | |
33 | end | |
34 | ||
35 | end |