Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Please Insert an Ender Chest in the 16th slot")
- sleep(5)
- print("Now enter a length:")
- local x = read()
- print("Mining has started!")
- function tryForward()
- if turtle.forward() == false then
- turtle.dig()
- end
- end
- function refuel()
- if turtle.getFuelLevel() < 100 then
- for i = 1,16 do
- turtle.select(i)
- turtle.refuel(64)
- turtle.select(1)
- end
- end
- end
- function depositItems()
- turnAround()
- turtle.select(16)
- turtle.place()
- for i = 1,15 do
- turtle.select(i)
- turtle.drop()
- end
- turtle.select(16)
- turtle.dig()
- turtle.select(1)
- turnAround()
- end
- function turnAround()
- turtle.turnRight()
- turtle.turnRight()
- end
- function right()
- turtle.turnRight()
- end
- function mainDig()
- turtle.dig()
- right()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement