Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- function supplyPower(x)
- t = x
- print(t)
- rednet.broadcast("quarry("..t..")")
- i = 0
- n = t*16
- while i < n do
- turtle.select(1)
- turtle.forward()
- turtle.placeDown()
- if turtle.getFuelLevel() <= 20 then
- turtle.turnRight()
- turtle.turnRight()
- turtle.select(2)
- turtle.place()
- turtle.select(3)
- turtle.suck(1)
- turtle.refuel(1)
- turtle.select(2)
- turtle.dig()
- turtle.turnLeft()
- turtle.turnLeft()
- os.sleep(10)
- else
- os.sleep(12)
- end
- turtle.select(1)
- turtle.digDown()
- i = i+1
- end
- os.reboot()
- end
- print("How many chunks?")
- local input = read()
- x = tonumber(input)
- print("Mining "..x.." chunks")
- supplyPower(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement