Turtle Tree Farm Help

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here

Wantoea

New Member
Jul 29, 2019
4
0
0
I want to make an original tree farm using turtles, but i need some help with the code.

What i want the turtle to do is:

Plant a sapling then when it grows cut down the tree and the leaves (collecting both the wood and all the saplings) then i want it to plant a sapling and output its inventory to and adjacent inventory.
(I will be using birch saplings)

If anyone could help me with this i would greatly appreciate it, and whilst i am trying to learn how to do this sort of thing, i need help with this particular project.
 

trunksbomb

New Member
Jul 29, 2019
390
0
0
How much Lua do you know? Programming in general?

Will you be using bonemeal or waiting for the sapling to grow?

The pseudocode would be something like:
Code:
while turtle has saplings do
  plant sapling
  compare log in inventory to block in front of turtle
  if block is a log then
    while block in front of turtle is a log do
      break block in front
      break block above
      move turtle up
    end
    begin moving turtle back down until it hits the ground
  end
 
  repeat
end
 

Wantoea

New Member
Jul 29, 2019
4
0
0
I don't really know much at all, I'm new to the topic.

And i wont be using bonemeal.
 

Abdiel

New Member
Jul 29, 2019
1,062
0
0
If you want help, show us what you've got so far.

If you want someone to do all the work for you, say so.

There's nothing wrong with that, just be clear about what you're asking for.
 

Geometry

New Member
Jul 29, 2019
468
0
1
Breaking the leaves makes it significantly harder to write the program. Most people handle getting the sapling with water stream/transposers/obsidian pipes/golems.

If you can't program, and don't want to learn, then your best option is to use someone elses program. Like this: http://www.computercraft.info/forum...ltimate-wood-chopper-selfbuildingmenueasy086/
That is indeed a very good program, as I produce stacks upon stacks of logs every minecraft day using it ;)
 

Wantoea

New Member
Jul 29, 2019
4
0
0
If you want help, show us what you've got so far.

If you want someone to do all the work for you, say so.

There's nothing wrong with that, just be clear about what you're asking for.
I want someone else to do the work but i will learn from it.
 

VADemon

Active Member
Mar 24, 2013
13
1
28
I know, it comes a bit late but I created my own turtle farm script for the big 2*2 trees:
http://pastebin.com/UVE5yy99
It automatically chops down the tree, plants the saplings in a 2*2 shape and drops down (place a chest) the wood.
An example screenshot how to place saplings, turtle and the chest: https://syping.de/vad/dropbox_public/web/uploads/ftb/13278.png
1) Place saplings
2) Refuel the turtle
3) Run the programm

Warning: keep the chunk loaded or edit the last lines of the script so the turtle stops everytime it finishes.
 
Last edited: