Minecraft Maps / Other

ComputerCraft~Turtle CutJungleTree Program!

  • 4,461 views, 2 today
  • 1
  • 1
Linus123xbb's Avatar Linus123xbb
Level 27 : Expert Zombie
6
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
Progress100% complete
Tags

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome