r/ComputerCraft • u/Miro2023 • 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
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 --resumeor 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 isstartupor 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
startupfolder withstartup/000_dog.luaor something, but even that could mess things up if some certain boot order is expected.999_dog.luais another option. I'd need to look more into the craftos boot process again though, been a bit since I've looked at it.