Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- shell.run("label set wireless-miner")
- while true do
- s,m = rednet.receive()
- if (m == "update") then
- shell.run("rm startup")
- shell.run("pastebin get gHTvE9A9 startup")
- elseif (m == "dig") then
- if not fs.exists("dig-api") then
- shell.run("pastebin get xtfZNRMW dig-api")
- end
- s1,m1 = rednet.receive()
- for i=1,2 do
- while not turtle.up() do
- turtle.digUp()
- end
- end
- shell.run("dig-api " .. m1 .. " 3 1")
- elseif (m == "refuel") then
- shell.run("refuel all")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement