View difference between Paste ID: 3SKv0ZGR and SCFTFP2U
SHOW: | | - or go back to the newest paste.
1
	rednet.open("right")
2
	c=peripheral.wrap("right")
3
	while true do
4
	x,y,z=rednet.receive()
5
6
	if y=="Forward" then
7
	turtle.forward()
8
	end
9
10
	if y=="Back" then
11
	turtle.back()
12
	end
13
14
	if y=="Left" then
15
	turtle.turnLeft()
16
	end
17
18
	if y=="Right" then
19
	turtle.turnRight()
20
	end
21
22
	if y=="Up" then
23
	turtle.up()
24
	end
25
26
	if y=="Down" then
27
	turtle.down()
28
	end
29
30
	if y=="Dig" then
31
	turtle.dig()
32
	end
33
34
	if y=="Place" then
35
	turtle.place()
36
	end
37-
	if y=="Shutdown" then
37+
	
38-
	if peripheral.getType("front")=="computer" or peripheral.getType("front")=="turtle" then
38+
	if y=="Chat" then
39-
	c=peripheral.wrap("front")
39+
40-
	c.shutdown()
40+
	print(y)
41
	c.say(y)
42
	end
43
44-
        if y=="Slot1" then
44+
45-
        turtle.select(1)
45+