Posted 29 November 2013 - 06:16 PM
Hey,
I'm sharing my very first turtle, which is obviously the one that can bring me infinite fuel. It is supposed to feed my upcoming next turtles.
Don't hesitate to ask me any question, or live demo on your server.
I apologize if the topic is wrongly located, I can't managed to find some space to share my program here.
Features
The turtle :
-is meant to be autonomous : it will gather mode wood (then charcoal) than it consumes
-is automatically replanting the tree roots
-works with a chest and a furnace, which is loaded by the turtle.
-works only with a single type of wood. Trees can't have branches.
-gather the tree roots, apples or rubber during its trip, but it won't make extra moves to collect everything (charcoal is the priority)
-should work with any rectangular sized forrest size.
-The program is parametrable with a few variables at the start of the program.
-The setup is doable very early in survival mode. The hardest point being the 3 diamonds to craft the turtle axe.
Prerequisite
It is mandatory to respect a few guidelines to make it work :
-Slot 16 : Fuel. a few Charcoal items are necessary for the first start. Lava bucket won't work and Coal will slow the turtle down.
-Slot 15 : Tree roots.
-Slot 14 : One block sample used to detect the edges of the forest.
-Slot 1 : a wood block sample of the type that will be cut.
-Torches : put a torch so that every tree is two blocks close to at least one torch.
-Trees have to be put every 4 blocks.
First start
I'd advise to put a halfstack of charcoal and 2 times more tree roots than the turtle has to plant. Put two blocks on the edge to avoid intruders in the field.
Problems encountered
-the turtle is not able to compare a tree root block in its inventory and a growing root : compare fails. It obliges me to add an extra item in the inventory
-There is no algorithm to cut branches : the turtle digs frop top to bottom only. For some wood type i'd recommand put a roof to avoid big branchy trees. Bad news is that it slows the growth down.
-Until now the rubber tree seem to be the most efficient (qucik growth in a single trunk and extra loot)
-The variable choice is quite arbitrary. The turtle might no be profitable in some situations.
Possible improvements
-it might be very useful to dope the production with bone meal.
-find which wood type is the most optimised.
-the turtle might wait for each tree to grow completely before moving (instead of avoinding the root). It might save a lot of useless fuel consuming. It works only if a tree always grows (is it sure?).
-Try to reduce the prerequisites.
-The turtle should be able to build the forrest completely.
-Maybe a system with water to concentrate the tree root drops but it doesn't seem so interesting.
-Detect tree growth with redstone to move only when the trees are all grown. It might be too expensive.
-Find a way to evaluate the necessary fuel and wait time better between each run.
Code
Charcoal Generator turtle
http://pastebin.com/s1eyyMDG
Plan
Here is a plan of a working tree farm.
I'm taking any suggestion, questions, improvements, commentaries.
@Eyolfur
I'm sharing my very first turtle, which is obviously the one that can bring me infinite fuel. It is supposed to feed my upcoming next turtles.
Don't hesitate to ask me any question, or live demo on your server.
I apologize if the topic is wrongly located, I can't managed to find some space to share my program here.
Features
The turtle :
-is meant to be autonomous : it will gather mode wood (then charcoal) than it consumes
-is automatically replanting the tree roots
-works with a chest and a furnace, which is loaded by the turtle.
-works only with a single type of wood. Trees can't have branches.
-gather the tree roots, apples or rubber during its trip, but it won't make extra moves to collect everything (charcoal is the priority)
-should work with any rectangular sized forrest size.
-The program is parametrable with a few variables at the start of the program.
-The setup is doable very early in survival mode. The hardest point being the 3 diamonds to craft the turtle axe.
Prerequisite
It is mandatory to respect a few guidelines to make it work :
-Slot 16 : Fuel. a few Charcoal items are necessary for the first start. Lava bucket won't work and Coal will slow the turtle down.
-Slot 15 : Tree roots.
-Slot 14 : One block sample used to detect the edges of the forest.
-Slot 1 : a wood block sample of the type that will be cut.
-Torches : put a torch so that every tree is two blocks close to at least one torch.
-Trees have to be put every 4 blocks.
First start
I'd advise to put a halfstack of charcoal and 2 times more tree roots than the turtle has to plant. Put two blocks on the edge to avoid intruders in the field.
Problems encountered
-the turtle is not able to compare a tree root block in its inventory and a growing root : compare fails. It obliges me to add an extra item in the inventory
-There is no algorithm to cut branches : the turtle digs frop top to bottom only. For some wood type i'd recommand put a roof to avoid big branchy trees. Bad news is that it slows the growth down.
-Until now the rubber tree seem to be the most efficient (qucik growth in a single trunk and extra loot)
-The variable choice is quite arbitrary. The turtle might no be profitable in some situations.
Possible improvements
-it might be very useful to dope the production with bone meal.
-find which wood type is the most optimised.
-the turtle might wait for each tree to grow completely before moving (instead of avoinding the root). It might save a lot of useless fuel consuming. It works only if a tree always grows (is it sure?).
-Try to reduce the prerequisites.
-The turtle should be able to build the forrest completely.
-Maybe a system with water to concentrate the tree root drops but it doesn't seem so interesting.
-Detect tree growth with redstone to move only when the trees are all grown. It might be too expensive.
-Find a way to evaluate the necessary fuel and wait time better between each run.
Code
Charcoal Generator turtle
http://pastebin.com/s1eyyMDG
Plan
Here is a plan of a working tree farm.
E E E E E E E E E E E E E E E E E
E E empty : anything works
E A A A A E E = Edge : any block
E E A = Tree (with dirt under)
E L L E L = Light (torch)
E E T = Turtle (initial position)
E A A A A E C = Chest
E E F = Furnace
E L E Block T and F need an empty block underneath, and an empty block above F
E E One block is necessary between the trees and the edge
E A A A A E
E E
E L L E
E E
E A A A A E
E C T E
E E F E E E E E E E E E E E E E E
I'm taking any suggestion, questions, improvements, commentaries.
@Eyolfur