Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Tim_ofzo
- -- pastebin get
- -- Left Chest = Logs
- -- Right Chest = Saplings
- -- Settings:
- local minFuelLevel = 200
- -- Functions:
- function suckSaplings()
- turtle.select(1)
- turtle.turnRight()
- turtle.suck(64)
- turtle.turnLeft()
- end
- function dropLogs()
- turtle.turnLeft()
- for i=3,15 do
- turtle.dropDown()
- end
- turtle.turnRight()
- end
- function refuel()
- if turtle.getFuelLevel() < minFuelLevel then
- turtle.turnLeft()
- turtle.select(16)
- turtle.suck(64)
- turtle.turnRight()
- turtle.refuel(63)
- end
- end
- function place()
- turtle.select(1)
- turtle.place()
- end
- function grow()
- turtle.select(16)
- turtle.place()
- end
- function chop()
- turtle.select(2)
- if turtle.compare() == true then
- turtle.dig()
- turtle.up()
- end
- end
- while true do
- refuel()
- sleep(1)
- suckSaplings()
- sleep(1)
- place()
- sleep(1)
- grow()
- sleep(1)
- chop()
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement