Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- for i=1, 16 do
- turtle.select(i)
- turtle.dropUp(64)
- end
- while true do
- x, y, z = rednet.receive()
- if y == 1 then
- y = 0
- for i=1, 16 do
- a = turtle.getItemCount(i)
- y = a + y
- end
- print(y)
- rednet.send(6253,y)
- elseif y == 0 then
- for i=1, 16 do
- turtle.select(i)
- turtle.dropUp(64)
- end
- elseif y == 1000000 then
- for i=1, 16 do
- turtle.select(i)
- turtle.dropUp(64)
- end
- end
- end
Add Comment
Please, Sign In to add comment