View difference between Paste ID: ua2KUR4B and GQWdXb5u
SHOW: | | - or go back to the newest paste.
1
rednet.open("right")
2
3
for i=1, 16 do
4
	turtle.select(i)
5
	turtle.dropUp(64)
6
end
7
8
while true do
9
	x, y, z = rednet.receive()		
10
	if y == 1 then
11
		y = 0
12
		for i=1, 16 do
13
			a = turtle.getItemCount(i)
14
			y = a + y
15
		end
16
	print(y)
17-
	rednet.send(6253,y)
17+
	sleep(0.5)
18
	rednet.send(6342,y)
19
	elseif y == 0 then 
20
		for i=1, 16 do
21
			turtle.select(i)
22
			turtle.dropUp(64)
23
		end
24
	elseif y == 1000000 then 
25
		for i=1, 16 do
26
			turtle.select(i)
27
			turtle.drop(64)
28
		end
29
	end		
30
end
31