Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local initialized = false
- while not initialized do
- print("Place fuel in slot 1.")
- print("Place torches in slot 2.")
- print("Press ENTER to start.")
- read()
- -- fuel
- turtle.select(1)
- initialized = true
- while turtle.getFuelLevel() < 129 do
- if turtle.refuel(1) then
- print("Refueling.")
- else
- print("Invalid fuel.")
- print()
- initialized = false
- break
- end
- end
- end
- -- setup
- turtle.select(2)
- -- dig
- print("Starting digging.")
- for i = 1, 64 do
- turtle.dig()
- turtle.forward()
- end
- -- turn around
- print("Turning around.")
- turtle.digDown()
- turtle.down()
- turtle.turnLeft()
- turtle.turnLeft()
- -- placing torch
- print("Placing torch.")
- turtle.placeUp()
- -- dig
- print("Starting digging.")
- for i = 1, 7 do
- turtle.dig()
- turtle.forward()
- end
- -- placing torch
- print("Placing torch.")
- turtle.placeUp()
- for i = 1, 7 do
- -- dig
- print("Starting digging.")
- for j = 1, 8 do
- turtle.dig()
- turtle.forward()
- end
- -- placing torch
- print("Placing torch.")
- turtle.placeUp()
- end
- -- finished
- print("Finished digging.")
Advertisement
Add Comment
Please, Sign In to add comment