Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- chest = peripheral.wrap("front")
- while true do
- print("Transfering coal...")
- for i=1,16,1 do
- turtle.select(i)
- turtle.suck() end
- print("Counting coal...")
- local currently_counted
- currently_counted =0
- local total_counted
- total_counted =0
- for j=1,16,1 do
- currently_counted = currently_counted + turtle.getItemCount(j)
- total_counted = total_counted + turtle.getItemCount(j) end
- print("Counted", total_counted, "coal")
- print("Returning coal...")
- for i=1,16,1 do
- turtle.select(i)
- turtle.drop() end
- if currently_counted < 192 then
- rednet.send(14, "Send more coal!")
- print("requesting more coal!")
- end
- sleep(1200)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement