View difference between Paste ID: vvMVCt7L and SCFTFP2U
SHOW: | | - or go back to the newest paste.
1
	rednet.open("right")
2
        id=9163
3-
	x,y,z=rednet.receive()
3+
4
	id,y,z=rednet.receive()
5
6
	if y=="Forward" then
7
	if turtle.detect()==false then
8
	turtle.forward()
9
	sleep(0.5)
10
        rednet.send(id,"Forward")
11
	end
12
	end
13
14
	if y=="Back" then
15
	turtle.back()
16
	sleep(0.5)
17
	rednet.send(id,"Back")
18
	end
19
20
	if y=="Left" then
21
	turtle.turnLeft()
22
	sleep(0.5)
23
	rednet.send(id,"Left")
24
	end
25
26
	if y=="Right" then
27
	turtle.turnRight()
28
	sleep(0.5)
29
	rednet.send(id,"Right")
30
	end
31
32
	if y=="Up" then
33
	turtle.up()
34
	sleep(0.5)
35
	rednet.send(id,"Up")
36
	end
37-
	if y=="Shutdown" then
37+
38-
	if peripheral.getType("front")=="computer" or peripheral.getType("front")=="turtle" then
38+
39-
	c=peripheral.wrap("front")
39+
40-
	c.shutdown()
40+
41
	rednet.send(id,"Down")
42
	end
43
44-
        if y=="Slot1" then
44+
45-
        turtle.select(1)
45+
46-
        end
46+
47-
        if y=="Slot2" then
47+
48-
        turtle.select(2)
48+
49-
        end
49+
50-
        if y=="Slot3" then
50+
51-
        turtle.select(3)
51+
52-
        end
52+
	if turtle.detect()==true then
53-
        if y=="Slot4" then
53+
        rednet.send(id,"blocked")
54-
        turtle.select(4)
54+
        else
55-
        end
55+
56-
        if y=="Slot5" then
56+
57-
        turtle.select(5)
57+
58-
        end
58+