Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function refuel()
- if turtle.getFuelLevel() < 200 then
- turtle.select(1)
- turtle.refuel(10)
- print("Refueled")
- else
- print("Enough Fuel")
- end
- end
- function mine()
- while turtle.detect() do
- turtle.dig()
- sleep(0.5)
- end
- turtle.forward()
- while turtle.detectUp() do
- turtle.digUp()
- sleep(0.5)
- end
- end
- function checkFull()
- if turtle.getItemCount(16) > 0 then
- turtle.digDown()
- turtle.select(3)
- turtle.placeDown()
- print("Chest Placed")
- for i = 5,16 do
- turtle.select(i)
- turtle.dropDown()
- end
- turtle.select(2)
- end
- end
- function whole()
- mine()
- turtle.turnRight()
- mine()
- turtle.turnLeft()
- mine()
- turtle.turnLeft()
- mine()
- turtle.turnRight()
- end
- function wholecheck()
- checkFull()
- whole()
- end
- print("Welcome to the Tunneling Turtle interface")
- sleep(2)
- print("How long will the tunnel be?")
- local x = read()
- refuel()
- sleep(0.5)
- for i = 1,(x/2) do
- wholecheck()
- end
- print("Hope You Are Happy With Your Tunnel")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement