Jump to content

Recommended Posts

Posted

Hey, I'm wanting to setup an automatic tree farm / factory that produces weapons (muskets and the like), and want to know if there is a way to do this without using forestry, as it was removed from tekkit, and I don't want to manually read-add it to my server, and force all players to add it to their tekkit as well. Suggestions? Note that this question also covers automatic farms of various types (tree, sugarcane, wheat, etc).

Posted

Um, yes of course.

Tree farms with a single turtle and transposer are quite easy.

Basically turtle sits near the ground, preloaded with a few saplings and a few logs. plant one sapling in front of it to get it started, then have code like this:

1) It loops constantly, searching for a log in front of it. (it needs to always have 1 log in it to do a compare() function)

2) When the tree grows, this search will be successful, then it executes more code:

3) It digs the log, digs above it (to make room between the leaves), then moves up. Times 7 or 8 or however tall birch trees can get (use birch trees since they always have straight shapes)

4) Then it comes back down again, and places a new sapling.

5) It checks how many logs it has in its inventory, and if it has near to a full stack, it drops all but one into a chest.

6) Go back to step 1 now, looping constantly looking for logs.

NOTE: you need a transposer nearby, hooked with one or two pneumatic tubes to the turtle. This will catch and suck up falling saplings and load them into the turtle. The turtle itself can power the transposer every so often, or you can use a RP timer.

Of course, if you are a better programmer and are imaginative, you could have a single turtle manage a whole forest (walks around in a grid checking multiple tree sites in order, etc.)

The code is so simple, that I would not suggest going with any other design, although it is of course also possible with deployers, block breakers, etc. You could also consider building your farm near a skeleton spawner so that you can grow trees with the infinite bonemeal.

By the way, if you have bonemeal and are using a turtle, you would just change step #1 above to "loop constantly, checking to see if any bonemeal has been pumped into the turtle's inventory. if so, place it into a deployer to grow the tree instantly, and then proceed to step #2. Otherwise keep waiting"

Posted

I built one with fillers (3 placing strips of saplings and on to break all the blocks blocks alternately) and a black whole band to suck the drops into a pipe but that could be done with a grid of transposers.

Posted

Um, yes of course.

Tree farms with a single turtle and transposer are quite easy.

Basically turtle sits near the ground, preloaded with a few saplings and a few logs. plant one sapling in front of it to get it started, then have code like this:

1) It loops constantly, searching for a log in front of it. (it needs to always have 1 log in it to do a compare() function)

2) When the tree grows, this search will be successful, then it executes more code:

3) It digs the log, digs above it (to make room between the leaves), then moves up. Times 7 or 8 or however tall birch trees can get (use birch trees since they always have straight shapes)

4) Then it comes back down again, and places a new sapling.

5) It checks how many logs it has in its inventory, and if it has near to a full stack, it drops all but one into a chest.

6) Go back to step 1 now, looping constantly looking for logs.

NOTE: you need a transposer nearby, hooked with one or two pneumatic tubes to the turtle. This will catch and suck up falling saplings and load them into the turtle. The turtle itself can power the transposer every so often, or you can use a RP timer.

Of course, if you are a better programmer and are imaginative, you could have a single turtle manage a whole forest (walks around in a grid checking multiple tree sites in order, etc.)

The code is so simple, that I would not suggest going with any other design, although it is of course also possible with deployers, block breakers, etc. You could also consider building your farm near a skeleton spawner so that you can grow trees with the infinite bonemeal.

By the way, if you have bonemeal and are using a turtle, you would just change step #1 above to "loop constantly, checking to see if any bonemeal has been pumped into the turtle's inventory. if so, place it into a deployer to grow the tree instantly, and then proceed to step #2. Otherwise keep waiting"

Sounds like a good idea... but I don't know how to code a turtle. Most coding I know is password protected doors following the tutorial on their wiki.

I built one with fillers (3 placing strips of saplings and on to break all the blocks blocks alternately) and a black whole band to suck the drops into a pipe but that could be done with a grid of transposers.

Care to elaborate, not sure if I understood exactly what you meant. I have never used the black hole band.

Posted

Um, yes of course.

Tree farms with a single turtle and transposer are quite easy.

Basically turtle sits near the ground, preloaded with a few saplings and a few logs. plant one sapling in front of it to get it started, then have code like this:

1) It loops constantly, searching for a log in front of it. (it needs to always have 1 log in it to do a compare() function)

2) When the tree grows, this search will be successful, then it executes more code:

3) It digs the log, digs above it (to make room between the leaves), then moves up. Times 7 or 8 or however tall birch trees can get (use birch trees since they always have straight shapes)

4) Then it comes back down again, and places a new sapling.

5) It checks how many logs it has in its inventory, and if it has near to a full stack, it drops all but one into a chest.

6) Go back to step 1 now, looping constantly looking for logs.

NOTE: you need a transposer nearby, hooked with one or two pneumatic tubes to the turtle. This will catch and suck up falling saplings and load them into the turtle. The turtle itself can power the transposer every so often, or you can use a RP timer.

Of course, if you are a better programmer and are imaginative, you could have a single turtle manage a whole forest (walks around in a grid checking multiple tree sites in order, etc.)

The code is so simple, that I would not suggest going with any other design, although it is of course also possible with deployers, block breakers, etc. You could also consider building your farm near a skeleton spawner so that you can grow trees with the infinite bonemeal.

By the way, if you have bonemeal and are using a turtle, you would just change step #1 above to "loop constantly, checking to see if any bonemeal has been pumped into the turtle's inventory. if so, place it into a deployer to grow the tree instantly, and then proceed to step #2. Otherwise keep waiting"

I would suggest checking if there's a block above it instead of having a set number of blocks to dig up.

Posted

I would suggest checking if there's a block above it instead of having a set number of blocks to dig up.

Won't always work. Sometimes the trunk extends above the highest leaf in the ring immediately around the trunk. In such situations, your turtle wouldn't get the whole tree, and it would sit around blocking light and potentially stopping tall (or even any) new trees from growing.

Posted

Here , I threw togther a quick tree farm program. It's getting kinda late here so I don't have time to finish it right now(adding sapling refueling, comments etc.).

Picture of the intended setup:

20121003220236.png

PS. This program was written for CC 1.4, if you want me to make it work for 1.3 or if you have any questions about the code feel free to message me (:.

Posted

Won't always work. Sometimes the trunk extends above the highest leaf in the ring immediately around the trunk. In such situations, your turtle wouldn't get the whole tree, and it would sit around blocking light and potentially stopping tall (or even any) new trees from growing.

Uhm, I'm not quite sure what you mean.

Posted

Uhm, I'm not quite sure what you mean.

The turtle cant start below the logs, because a sapling needs to be there to grow, and saplings cant be on top of turtles.

Thus, the turtle must be to the side of the logs.

The digging up is to get rid of LEAVES in the way, not to harvest the logs. That's why I said every step you dig forward (for the logs) and up (to make a path through the leaves). Thus, if you only ever check up to decide whether to move up, you'll only be checking the leaves. There might be logs higher up than the leaves, and if so, you'll miss them and everything will get screwed up.

ideally youd want to check the logs forward one and up one from you, but turtles cant check diagonally. Thus, it's simpler to just have it go up a fixed number of blocks more than the max height trees can grow.

Posted

The turtle cant start below the logs, because a sapling needs to be there to grow, and saplings cant be on top of turtles.

Thus, the turtle must be to the side of the logs.

The digging up is to get rid of LEAVES in the way, not to harvest the logs. That's why I said every step you dig forward (for the logs) and up (to make a path through the leaves). Thus, if you only ever check up to decide whether to move up, you'll only be checking the leaves. There might be logs higher up than the leaves, and if so, you'll miss them and everything will get screwed up.

ideally youd want to check the logs forward one and up one from you, but turtles cant check diagonally. Thus, it's simpler to just have it go up a fixed number of blocks more than the max height trees can grow.

Or you make the turtle dig and go forward one when it detects that the tree has grown then dig upwards to harvest the tree.

Posted

Yeah that would work. I only tested it on one tree, so it was sitting still like 95% of the time and it didnt matter. But if you had one turtle managing a whole forest, then you would probably want to do it your way, yes.

Posted

Here , I threw togther a quick tree farm program. It's getting kinda late here so I don't have time to finish it right now(adding sapling refueling, comments etc.).

Picture of the intended setup:

20121003220236.png

PS. This program was written for CC 1.4, if you want me to make it work for 1.3 or if you have any questions about the code feel free to message me (:.

There is no program? Or have you just not put up the code for it yet? You have all been a great help trying to figure out the best way to attempt my request. I'm going to try out a few of the suggestions tonight.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...