This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
lucifael1975's profile picture

Help Request - Excavate and Tunnel program changes

Started by lucifael1975, 29 February 2012 - 02:51 PM
lucifael1975 #1
Posted 29 February 2012 - 03:51 PM
What I would like to be able to do is a couple of things. Firstly the excavation program, it already comes back to the origin point when full, i have a build-craft pipe there and a couple of redstone engines which extract the turtles inventory rather nicely. I would like for the program to detect that it is empty and then get on with it again. There is a couple of problems where, one that while I can program I have yet to learn lua so this would be a learning project for me, so a lot of help would be great :unsure:/>/>/> code snippets wouldn't hurt either. I learn best by example I've found. That's it, is that all! for the excavation script. (Program)

Tunnel program, I would like to get to work in much the same way, I want it to return to origin when full or when done. I could then do the same idea as I would like to do with the excavation program. In this way I would have the perfect mining set up.

Any help you could give me would be excellent,


Thanks


Lucifael
Liraal #2
Posted 29 February 2012 - 03:54 PM
there's already software for this, check the program library for turtle-related APIs
Advert #3
Posted 01 March 2012 - 08:58 AM
there's already software for this, check the program library for turtle-related APIs

Just because the wheel is already made, doesn't mean you can't make another one!

The entire point of computercraft is to have fun, and learn programming.

By using other's APIs for everything, you won't learn anything.

As for the OP:
I would recommend starting with something slightly simpler (you could also try Casper's Interactive tutorial in the tutorial section), then posting again here after you have some code we can help you with!

If you want some examples, there are lots of programs that move turtles around in the program library; too bad there isn't a getting started with turtles tutorial yet!
Liraal #4
Posted 01 March 2012 - 12:43 PM
well, if you want a car you dont bother inventing wheel. But ofc you can :unsure:/>/>
modernzink #5
Posted 01 March 2012 - 05:39 PM
Maybe he could write a little programm that turn the turtle around and drop all the things. Then he can use a obsidianpipe :unsure:/>/>
for example
Spoilerturtle.turnLeft() – turn the turtle 90° left , so you must see were your pipe will be

for n=1,9 do – drop all the things in the turtle in direction, the turtle is looking
turtle.drop()
n=n+1
end

turtle.turnRight() – turn the turtle 90° right.

its the fastes way to do this task i think.