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

mining turtle

Started by lewanator1, 21 October 2012 - 10:22 AM
lewanator1 #1
Posted 21 October 2012 - 12:22 PM
does anyone have a program that could set a turtle mining and it would come back when its full and drop off the stuff its collected and then go back to mining?

it would also be really awesome if it used GPS and could be controlled through a red net connection.

thanks

lewanator1
sjonky #2
Posted 21 October 2012 - 12:33 PM
Im pretty sure the built in Excavate program does what you want.

Not the GPS and rednet part though. But that's something you could trying adding urself?
lewanator1 #3
Posted 21 October 2012 - 12:35 PM
Im pretty sure the built in Excavate program does what you want.

Not the GPS and rednet part though. But that's something you could trying adding urself?

yeah although if im honest i have zero knowlege on gps and does the excavate one drop stuff off??
sjonky #4
Posted 21 October 2012 - 12:41 PM
Well, i think you should atleast try to do it. And learn by doing. And if your stuck, then ask questions. And i've only used the excavte program once, as i usually make my own because it's fun to make. But im pretty sure it did.
lewanator1 #5
Posted 21 October 2012 - 12:57 PM
Well, i think you should atleast try to do it. And learn by doing. And if your stuck, then ask questions. And i've only used the excavte program once, as i usually make my own because it's fun to make. But im pretty sure it did.

yeah i was just trying the GPS out do i have to make the command goto becasue i just keep getting no such program?
sjonky #6
Posted 21 October 2012 - 01:04 PM
Yep, that function isen't built in, you have to make that function yourself.
lewanator1 #7
Posted 21 October 2012 - 01:06 PM
can you give me a direction to point in and then il try build on it because im at a loss atm
sjonky #8
Posted 21 October 2012 - 01:17 PM
Well, if you already know your X, Y and Z position. then you try to move in a direction. if the X position is getting closer to the targeted X, then great it's moving in the correct direction, if not try turning it again and move and check again. then move until your on the correct X, then do that again with Y. and then move up or down if the Z position is higher or lower. (and since minecraft is using Y as Z just change thoose)
lewanator1 #9
Posted 21 October 2012 - 01:19 PM
Well, if you already know your X, Y and Z position. then you try to move in a direction. if the X position is getting closer to the targeted X, then great it's moving in the correct direction, if not try turning it again and move and check again. then move until your on the correct X, then do that again with Y. and then move up or down if the Z position is higher or lower. (and since minecraft is using Y as Z just change thoose)

Yeah i get that part but what would i type for the code? im just at a end on that.
lewanator1 #10
Posted 21 October 2012 - 01:56 PM
nvm found a nice peice of code on the web thanks tho you helped me alot and im starting my mining command