Posted 20 October 2012 - 02:35 PM
This is just a simple tree farm program that I made. It also can remove noob towers (1x1 pilars).
Here is the code:
here is the command for pastebin:
pastebin get YA77iB9n [insert name here]
How does it work?
Place your turtle below the tree or noob tower you want to cut down and run the program. Make sure it has enough fuel.
EDIT: Just changed it so it doesn't need any blocks to figure out what it's going to dig, and it mines any block above it. I can't test this atm, I'm currently on an iPod.
Here is the code:
turtle.select(1)
while turtle.detectUp() do
while not turtle.up() do
turtle.digUp()
end
end
h = turtle.getItemCount(1)
for i = 0, h do
turtle.down()
end
print("Blocks that were mined: ".. h)
here is the command for pastebin:
pastebin get YA77iB9n [insert name here]
How does it work?
Place your turtle below the tree or noob tower you want to cut down and run the program. Make sure it has enough fuel.
EDIT: Just changed it so it doesn't need any blocks to figure out what it's going to dig, and it mines any block above it. I can't test this atm, I'm currently on an iPod.