Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Tunnel()
- while(true) do
- TunnelLeftToRight()
- TunnelRightToLeft()
- end
- end
- function TunnelLeftToRight()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- turtle.turnRight()
- end
- function TunnelRightToLeft()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- turtle.turnLeft()
- end
- function Refuel()
- for i = 1, 16 do
- turtle.select(i)
- turtle.refuel()
- end
- end
- funtion Menu()
- Refuel()
- print("Mining by Keokix_")
- print("Select mode:")
- print("1: Strip mining, 3x1 and every 3rd block, 3 in each side")
- print("2: Excavate - Are is adjustable when selecting this")
- print("3: Tunnel - 3x3 Tunnel")
- print("Please select a mode:")
- input = io.read()
- if(input == 1) then
- StripMining()
- elseif(input == 2) then
- print("Please define the length in front direction: ")
- length = io.read()
- print("Please define the width (going in right direction):")
- width = io.read()
- Excavate(length, width)
- elseif(input == 3) then
- Tunnel()
- else
- print("Invalid input, Try again!")
- Menu()
- end
- end
- Menu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement