Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function movetotree()
- for i=1,7 do
- turtle.forward()
- end
- end
- function drop()
- for d=1,15 do
- turtle.select(i)
- turtle.dropDown()
- end
- end
- function cut()
- while true do
- if not turtle.digUp() then
- turtle.up()
- else turtle.back()
- break
- end
- end
- end
- function movetodrop()
- for g=1,7 do
- turtle.back()
- end
- end
- function refuel()
- if (turtle.getFuel()=="Unlimited") then
- break
- else turtle.select(16)
- turtle.suck()
- turtle.refuel(64)
- turtle.select(1)
- function plant()
- turtle.select(15)
- turtle.place()
- turtle.select(1)
- end
- function saplings()
- turtle.select(15)
- turtle.suckRight()
- turtle.select(1)
- end
- while true do
- refuel()
- saplings()
- movetotree()
- for z=1,64 do
- plant()
- sleep(180)
- cut()
- end
- movetodrop()
- drop()
- end
Advertisement
Add Comment
Please, Sign In to add comment