Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- size = 0
- turtle.select(16)
- turtle.place()
- function moreSaplings()
- if turtle.getItemCount(16) < 1 then
- while turtle.getItemCount(16) < 1 do
- sleep(1)
- print("Waiting for Saplings")
- end
- print("Got Saplings")
- turtle.select(16)
- turtle.place()
- else
- print("Still got "..turtle.getItemCount(16).." Saplings")
- end
- end
- function refuel()
- if turtle.getFuelLevel() < 64 then
- while turtle.getItemCount(15) < 1 do
- sleep(1)
- print("Waiting for Fuel")
- end
- turtle.select(14)
- turtle.refuel()
- turtle.select(1)
- print("Done Refuelling")
- end
- end
- function detect()
- local sucess, info = turtle.inspect()
- if info.name == "BiomesOPlenty:logs1" and info.metadata == 3 then
- main()
- else
- print("Didn't Grow")
- end
- end
- function main()
- turtle.dig()
- turtle.forward()
- while turtle.detectUp() do
- turtle.digUp()
- turtle.up()
- size = size + 1
- end
- for i = 0, size do
- turtle.down()
- end
- size = 0
- turtle.back()
- turtle.select(16)
- turtle.place()
- for i = 1, 14 do
- turtle.select(i)
- turtle.dropDown()
- end
- end
- while true do
- detect()
- refuel()
- moreSaplings()
- sleep(5)
- end
Add Comment
Please, Sign In to add comment