Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function moveDown(x)
- for i = 1 , x, 1
- do
- turtle.down();
- end
- end
- function checkinvfull()
- local full = true
- for i = 3 , 16, 1
- do
- if turtle.getItemCount(i) < 1
- then
- full = false
- end
- end
- return full
- end
- function dropAll()
- for i = 3 , 16, 1
- do
- turtle.select(i)
- turtle.dropDown()
- end
- end
- function putChest()
- turtle.select(2)
- turtle.digDown()
- turtle.placeDown()
- dropAll()
- end
- local height = 2
- local lenght = 200
- turtle.select(1)
- for i = 1 , lenght, 1
- do
- turtle.select(1)
- if turtle.getFuelLevel() < 2
- then
- turtle.refuel(2)
- end
- for ia = 1 , height, 1
- do
- turtle.turnLeft()
- turtle.dig()
- turtle.turnRight()
- turtle.dig()
- turtle.turnRight()
- turtle.dig()
- turtle.turnLeft()
- turtle.digUp()
- turtle.up()
- end
- moveDown(height)
- if checkinvfull()
- then
- putChest()
- end
- turtle.forward()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement