Posted 13 January 2013 - 02:32 PM
I made a simple jungle tree feller. (Will only take out the trunk, not the branches)
Code
Instructions:
1. Place the turtle here:
2. Place your fuel in slot #16 (use a lava bucket - 1000 moves).
3. Place 1 jungle log in slot #15
Please note that this program will work with any 2x2 tree that is added with any mod. The only thing you will have to change is the type of log in slot 15. The turtle will come down by itself.
Code
function fuel()
if turtle.getFuelLevel() < 10 then
turtle.select(16)
turtle.refuel(1)
turtle.select(1)
end
end
function detectdown()
turtle.select(15)
while turtle.compareDown() do
fuel()
turtle.digDown()
turtle.down()
end
end
function cut()
fuel()
turtle.dig()
turtle.turnRight()
turtle.dig()
turtle.turnLeft()
end
fuel()
turtle.dig()
turtle.forward()
turtle.select(15)
while turtle.compareUp() do
cut()
fuel()
turtle.digUp()
turtle.up()
end
cut()
fuel()
turtle.forward()
turtle.turnRight()
turtle.dig()
turtle.forward()
fuel()
detectdown()
Instructions:
1. Place the turtle here:
2. Place your fuel in slot #16 (use a lava bucket - 1000 moves).
3. Place 1 jungle log in slot #15
Please note that this program will work with any 2x2 tree that is added with any mod. The only thing you will have to change is the type of log in slot 15. The turtle will come down by itself.