Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ID = nil
- turtle.select(1)
- function fuel()
- fuellvl = turtle.getFuelLevel()
- if (fuellvl == 0) then
- turtle.select(16)
- turtle.refuel()
- turtle.select(1)
- end
- end
- while true do
- if turtle.compare() == true then
- sleep(10)
- else
- turtle.select(2)
- while (turtle.compare() == true) do
- turtle.dig()
- turtle.digUp()
- fuel()
- turtle.up()
- end
- while (turtle.detectDown() == false) do
- turtle.down()
- end
- turtle.turnLeft()
- ID = turtle.getItemCount() - 1
- turtle.drop(ID)
- turtle.select(3)
- turtle.drop()
- turtle.turnRight()
- turtle.select(1)
- if turtle.getItemCount() == 0 then
- turtle.turnRight()
- turtle.suck(1)
- turtle.turnLeft()
- end
- turtle.suck()
- turtle.place()
- end
- end
Add Comment
Please, Sign In to add comment