Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local height = {...}[1]
- function checkEC()
- local dump = false
- for i=3,16,1 do
- turtle.select(i)
- if turtle.getItemCount() > 16 then
- dump = true
- end
- if i == 16 && turtle.getItemCount() > 0 then
- dump = true
- end
- end
- if dump == true then
- turtle.select(1)
- turtle.digUp()
- turtle.placeUp()
- for i=3,16,1 do
- turtle.select(i)
- turtle.dropUp()
- end
- turtle.select(1)
- turtle.mineUp()
- end
- if turtle.getFuelLevel() < 1000 then
- turtle.digUp()
- turtle.select(2)
- turtle.placeUp()
- turtle.suckUp()
- turtle.refuel()
- turtle.digUp()
- end
- end
- function mine()
- checkEC()
- while turtle.detect() do
- turtle.dig()
- end
- end
- function move()
- while turtle.detect() do
- mine()
- end
- turtle.forward()
- end
- function main()
- for y=1,height-5,1 do
- turtle.digDown()
- turtle.dig()
- for x=1,15,1 do
- for z=1,15,1 do
- move()
- end
- if x % 1 == 0 then
- turtle.turnLeft()
- move()
- turtle.turnLeft()
- else
- turtle.turnRight()
- move()
- turtle.turnRight()
- end
- end
- end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment