Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --LumberJack v1.0
- --while turtle.detect() do
- -- Up()
- --end
- --function cut()
- --for i = 0, 10, 1 do
- -- for j = 1, 4, 1 do
- --turtle.dig()
- -- turtle.turnRight()
- -- end
- -- turtle.digUp()
- --turtle.up()
- -- end
- --end
- function refuel()--to refuel is with coal or other
- if turtle.getFuelLevel() < 10 then
- turtle.select(16)
- turtle.refuel(10)
- turtle.select(1)
- end
- end
- function Plant()--to plant trees in slot 2
- turtle.select(2)
- if turtle.getItemCount(2) > 1 then
- turtle.place()
- end
- end
- refuel() --this loop is to tell him to go up
- turtle.dig()
- turtle.forward()
- turtle.select(1)
- while turtle.compareUp() do
- refuel()
- turtle.select(1)
- turtle.digUp()
- turtle.up()
- end
- while turtle.detectDown() == false do--this is to tell him to go down
- refuel()
- turtle.down()
- end
- turtle.back()
- Plant()
Add Comment
Please, Sign In to add comment