1

ComputerCraft~Turtle CutJungleTree Program!

Get Embed Code

Forum:
HTML:
Link:
avatar
Linus123xbb
Level 21 : Expert Zombie
These will be released every so often and I will try my best kepping these porgrams as intressting as possible!
Consider subscribing to stay updated!

If you want to try this program yourself the code is at the bottom of this description!

IMPORTANT!
If you want to try this make sure your turtle is in the cornor of the tree otherwise it won't work (look at picture 2)
Don't forget to put some coal in the first slot of the turtle's inventory.
Optional:
If you want to use this on other bigger trees using other mods like feed the beast you have to change this:

local function cutLayer()
digmove()
(READ THIS BEFORE COMPLAINING IN THE COMMENTS!)
this all depends on how big your tree is, if it's 2x2 do not bother changing the code
but if your tree is 3x3 you need to add 'digmove()' below 'local function cutLayer()' but if your tree contains wood in the middle please note this will not work for those trees. Reason is becuase this was based on Twilight Oak Trees (on feed the beast) If you want to cut down a tree even bigger than 3x3 just add 'digmove' keep adding that if you want it even bigger
turtle.turnRight()
end


Here's the code for the Automatic TreeCutter
Enjoy!

local function checkFuel()
if turtle.getFuelLevel() < 20 then
turtle.select(1)
turtle.refuel(1)
end
end

local function digmove()
checkFuel()
turtle.dig()
turtle.forward()
end

local function layerUp()
checkFuel()
turtle.digUp()
turtle.up()
end

local function cutLayer()
digmove()
digmove()
turtle.turnRight()
end

local function cutTree()
cutLayer()
cutLayer()
cutLayer()
cutLayer()
layerUp()
end

local function down()
cutTree()
repeat
checkFuel()
turtle.down()
until turtle.detectDown()
end

while turtle.detectUp() do
cutTree()
if turtle.detectUp() == false then
down()
end
end
Progress: 100% Complete
Tags:ComputerCraft, Turtle, Redstone, Lua, Coding, Fun, JungleTree, Random, Computercraft, Program, Tree, Wood, Minecraft, Feed, The, Beast

More Projects by Linus123xbbView All

Last updated 04/03/13
by Linus123xbb
Posted 2011-10-12 14:07:50
by Linus123xbb

Comments : 0

Join us to post comments.