Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkInv()
- for i = 3, 6 do
- if turtle.getItemCount(i) < 10 then
- fillInv()
- break
- end
- end
- end
- function fillInv()
- turtle.select(1)
- turtle.placeUp()
- for i=1,9 do
- turtle.suckUp()
- sleep(0.5)
- end
- turtle.digUp()
- end
- function checkFuel()
- print(tostring(turtle.getFuelLevel() ) )
- if turtle.getFuelLevel() < 10000 then
- turtle.select(2)
- turtle.placeUp()
- turtle.suckUp()
- turtle.select(3)
- turtle.refuel(2)
- turtle.select(2)
- turtle.digUp()
- end
- end
- function wire()
- for i=1,9 do
- if i == 5 then
- turtle.select(6)
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.placeDown()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.placeDown()
- turtle.forward()
- turtle.turnRight()
- end
- turtle.select(4)
- turtle.placeDown()
- turtle.select(5)
- turtle.placeDown()
- turtle.forward()
- end
- end
- function spaceing()
- for i=1,2 do
- turtle.select(4)
- turtle.placeDown()
- turtle.select(5)
- turtle.placeDown()
- turtle.forward()
- end
- end
- checkInv()
- sleep(50)
- for i=1, 9 do
- wire()
- spaceing()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement