Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Tim_ofzo WoodChopper
- -- pastebin get 70AY2N6F woodchopper
- -- Left Chest = Logs
- -- Right Chest = Saplings
- -- Settings:
- local minFuelLevel = 200
- -- Functions:
- function forward(blocks)
- for i= 1, blocks, 1 do
- turtle.forward()
- end
- end
- 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 moveForward()
- forward(4)
- end
- function moveBack()
- turtle.turnLeft(2)
- forward(4)
- turtle.turnLeft(2)
- end
- function chop()
- turtle.select(2)
- if turtle.compare() then
- turtle.dig()
- turtle.up()
- end
- end
- refuel()
- sleep(1)
- suckSaplings()
- sleep(1)
- moveForward()
- sleep(1)
- chop()
- sleep(1)
- moveBack()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement