Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function movetotree()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- end
- function othermove()
- while true do
- if not turtle.forward() then
- turtle.turnLeft()
- break
- end
- end
- end
- function drop()
- for d=1,14 do
- turtle.select(d)
- turtle.dropDown()
- end
- end
- function cut()
- turtle.dig()
- turtle.forward()
- while true do
- if turtle.digUp() then
- turtle.up()
- else if not turtle.down() then
- turtle.back()
- break
- end
- end
- end
- end
- function movetodrop()
- for g=1,7 do
- turtle.back()
- end
- end
- function refuel()
- if turtle.getFuelLevel()<175 then
- refuel2()
- end
- end
- function refuel2()
- turtle.select(16)
- turtle.turnRight()
- turtle.turnRight()
- turtle.suck()
- turtle.refuel(64)
- turtle.select(1)
- turtle.turnLeft()
- turtle.turnLeft()
- end
- function plant()
- turtle.select(14)
- turtle.place()
- turtle.select(1)
- end
- function saplings()
- turtle.select(14)
- turtle.turnRight()
- turtle.suck()
- turtle.select(1)
- turtle.turnLeft()
- end
- function getbonemeal()
- turtle.select(15)
- turtle.up()
- turtle.turnRight()
- turtle.suck()
- turtle.select(1)
- turtle.turnLeft()
- turtle.down()
- end
- function bonemeal()
- turtle.select(15)
- turtle.place()
- turtle.place()
- turtle.place()
- turtle.place()
- turtle.select(1)
- end
- while true do
- refuel()
- saplings()
- getbonemeal()
- turtle.forward()
- plant()
- bonemeal()
- cut()
- othermove()
- turtle.turnRight()
- turtle.back()
- plant()
- bonemeal()
- cut()
- othermove()
- othermove()
- turtle.turnRight()
- turtle.back()
- plant()
- bonemeal()
- cut()
- othermove()
- turtle.forward()
- turtle.forward()
- plant()
- bonemeal()
- cut()
- othermove()
- othermove()
- drop()
- turtle.up()
- turtle.turnRight()
- turtle.select(15)
- turtle.drop()
- turtle.turnLeft()
- turtle.down()
- sleep(130)
- end
Advertisement
Add Comment
Please, Sign In to add comment