Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function status()
- print("Checking Status...")
- print("Fuel Level: "..turtle.getFuelLevel())
- fLevel = turtle.getFuelLevel()
- if fLevel == 0 then
- print("Warning: Out of Fuel! Refueling...")
- turtle.refuel()
- print("Refueled")
- end
- print("Resuming...")
- end
- function mineLayer()
- x = 2
- while x > 0 do
- turtle.dig()
- turtle.forward()
- x = x - 1
- end
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- x = 2
- while x > 0 do
- turtle.dig()
- turtle.forward()
- x = x - 1
- end
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- x = 2
- while x > 0 do
- turtle.dig()
- turtle.forward()
- x = x - 1
- end
- turtle.turnRight()
- turtle.turnRight()
- turtle.digDown()
- turtle.down()
- end
- while true do
- status()
- mineLayer()
- end
Add Comment
Please, Sign In to add comment