redwood planting-harvest code for turtles

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

IdioticMage

New Member
Jul 29, 2019
1
0
0
I've just started using computercraft and found a little code to cut down a redwood, but the problem with that code was I had to place the saplings and wait until the tree grew before i could get the turtle to do anything. So i made a few adjustments to the code, basically the turtle will plant saplings and wait for it to grow and then chop the redwood and dump it's inventory into a chest. It will refuel itself using harvested wood before storing it in the chest(i haven't worked out the ideal fuel efficiency so you may want to change the number in the refuel parameter in the code)....
... There are some conditions that need to be met for it to work but it's simple enough.
First you use the refuel command to make sure it has enough fuel to chop the tree down.
the turtle needs to be level with the bottom left of the redwood trunk.
You need at least a double wood chest under the turtle (any upgraded chest needs to be directly under the turtle).
You put a stack of redwood saplings in the bottom right slot and a redwood block in the top left slot.
Ideally you would have the program in a new directory (mkdir command) but you can load the program from a disk to the left of the turtle.
Then you just run the program.

If you use the chunk loading module on the turtle (crafting table) the turtle will carry on wherever you go.

pastebin here http://pastebin.com/y8vXg8ew