Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "packing"
- require "unpacking"
- require "fuel"
- miner = peripheral.find("digitalMiner")
- modem = peripheral.find("modem")
- rednet.open("left")
- io.write("Input buddy ID: ")
- buddy = tonumber(read())
- rednet.send(buddy, "con")
- function relocate(n)
- for i = 1,n,1 do
- turtle.forward()
- end
- end
- while true do
- --print("start")
- miner.start()
- toMine = miner.getToMine()
- term.clear()
- print(toMine)
- term.setCursorPos(1,1)
- if toMine == 0 then
- sleep(5)
- packing()
- rednet.send(buddy, "relocate")
- relocate(64)
- unpacking()
- refuel()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement