Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.refuel()
- local torchDistance = 0
- do
- turtle.select(2)
- turtle.placeDown()
- if turtle.detect()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.turnLeft()
- turtle.dig()
- turtle.up()
- turtle.dig()
- turtle.turnRight()
- turtle.turnRight()
- turtle.dig()
- turtle.down()
- turtle.dig()
- turtle.turnLeft()
- else
- turtle.forward()
- while ivFull() = false
- function ivFull()
- local full = true
- for i = 1,16 do
- if turtle.getItemCount(i) == 0 then
- full = false
- end
- end
- return full
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement