Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function retFuel()
- if turtle.getFuelLevel() > 50 then
- return true
- end
- return refuel()
- end
- function refuel()
- turtle.select(1)
- if turtle.getItemCount() > 15 then
- turtle.transferTo(16,10)
- turtle.select(16)
- turtle.refuel()
- return true
- end
- return false
- end
- local counter = 0
- local railcounter =0
- while retFuel()==true do
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- --turtle.select(3)
- --turtle.placeDown()
- counter = counter+1
- if counter == 4 then
- turtle.select(2)
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.place()
- turtle.turnLeft()
- turtle.turnLeft()
- counter = 0
- end
- railcounter = railcounter+1
- if railcounter < 5 then
- turtle.select(3)
- turtle.placeDown()
- end
- if railcounter >= 5 then
- turtle.down()
- turtle.digDown()
- turtle.down()
- turtle.digDown()
- --turtle.down()
- --turtle.digDown()
- turtle.select(5)
- turtle.placeDown()
- turtle.up()
- turtle.select(6)
- turtle.placeDown()
- turtle.up()
- turtle.select(4)
- turtle.placeDown()
- railcounter = 0
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement