Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.refuel()
- Height = 5
- -- Length.
- function Dig1()
- local length = 20
- for i = 1, length, 1 do
- turtle.dig()
- turtle.forward()
- end
- end
- -- Mining loop.
- function Mine()
- Dig1()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- Dig1()
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- -- Width.
- function Strip()
- local width = 10
- for i = 1, width, 1 do
- Mine()
- end
- end
- -- Calling the turtle to the dropoff area.
- function Home()
- local length = 20
- local hdepth = 0
- local inventory = 16
- local x = 1
- turtle.turnRight()
- turtle.turnRight()
- turtle.turnRight()
- for i = 1, length, 1 do
- turtle.forward()
- end
- for i = 1, inventory, 1 do
- turtle.select(x)
- turtle.dropDown()
- x = x + 1
- end
- turtle.turnRight()
- end
- -- Calling the turtle back to the mining area.
- function Back()
- local bdepth = 1
- for i = 1, bdepth, 1 do
- turtle.digDown()
- turtle.down()
- bdepth = bdepth + 1
- end
- end
- for i = 1, Height, 1 do
- Strip()
- Home()
- Back()
- end
- -- pastebin get 2L56gVFY ext
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement