View difference between Paste ID: k2Eh27RF and T0uBiuW6
SHOW: | | - or go back to the newest paste.
1
rednet.open('left')
2
print("pinging")
3
repeat
4
local id, command = rednet.receive()
5
if command == "ping" then
6
rednet.send(id,"ping")
7
end
8
until command == "ping"
9
print("Syncing.")
10
repeat
11
local id, command = rednet.receive(3)
12
until command == "sync"
13
id, fromId = rednet.receive()
14
fromId = tonumber(fromId)
15
rednet.send(fromId,os.getComputerID())
16
print("Nothing to display xD")
17
rednet.open('left')
18
while true do
19
local id, command = rednet.receive()
20
if command == "ping" then
21
sleep(1)
22
rednet.send(id,"ping")
23
else
24
if id == fromId then
25
if command == "eclipse" then 
26
shell.run("eclipse")
27
end
28
if command == "tpBase" then 
29
shell.run("tpBase")
30
end
31
if command == "tpConnur" then
32
shell.run("tpConnur")
33
end
34
if command == "forward" then
35
turtle.forward()
36
end
37
if command == "back" then
38
turtle.back()
39
end
40
if command == "left" then
41
turtle.turnLeft()
42
end
43
if command == "right" then
44
turtle.turnRight()
45
end
46
if command == "up" then
47
turtle.up()
48
end
49
if command == "down" then
50
turtle.down()
51
end
52
if command == "dig" then
53
turtle.dig()
54
end
55
if command == "place" then
56
turtle.place()
57
end
58
end
59
end
60
end