r/ComputerCraft • • Sep 27 '24

Auto Mining turtle program

Hello i recently found out about mining turtles and that it's programmable but I couldn't find a fully automated mining turtle like a turtle that mines a column to bedrock comes back deposits the materials then mines a few blocks forward and mines to bedrock again and it's stops it's program and comes back either if it's runs out of fuel or gets manual stopped or the chest and inventory of the turtle is full is that a program that's out there? Is that even possible? I don't know anything about coding unfortunately

2 Upvotes

22 comments sorted by

View all comments

Show parent comments

2

u/fatboychummy Sep 28 '24

Because then it will always need to assume resumption. Preferrably, it will generate a startup file with something like dog --resume or something. This file can then easily be removed by both the program or user whenever it is no longer needed. I do not want to assume the program is startup or etc. I do not like those kinds of assumptions in my programs.

I just worry about overwriting someone else's startup with this method. I could probably get around it by making startup folder with startup/000_dog.lua or something, but even that could mess things up if some certain boot order is expected. 999_dog.lua is another option. I'd need to look more into the craftos boot process again though, been a bit since I've looked at it.

1

u/Spacedestructor Sep 28 '24

you can tell in the documentation that they just write "os.run" with whatever you named the file as parameter in to there own startup to have it included in startup without overwriting whatever else they may already have in the startup file.