Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function forwardtest()
- while true do
- if not turtle.forward() then
- turtle.back()
- break
- end
- end
- end
- function aircheck()
- for z=1,8 do
- turtle.down()
- end
- end
- function forwardturn()
- while true do
- if not turtle.forward() then
- turtle.turnLeft()
- break
- end
- end
- end
- function drop()
- turtle.select(16)
- turtle.digDown()
- for d=1,14 do
- turtle.select(d)
- turtle.dropDown()
- end
- turtle.select(16)
- turtle.placeDown()
- end
- function cut()
- turtle.dig()
- turtle.forward()
- while true do
- if turtle.digUp() then
- turtle.up()
- else if not turtle.down() then
- turtle.turnLeft()
- break
- end
- end
- end
- end
- function movetodrop16trees()
- for g=1,6 do
- turtle.back()
- end
- end
- function check4trees()
- if turtle.getFuelLevel()<175 then
- refuel()
- end
- end
- function check16trees()
- if turtle.getFuelLevel()<600 then
- refuel()
- end
- end
- function refuel()
- 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 getsaplings()
- 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