4 posts
Posted 18 December 2012 - 07:06 AM
Hi Guys,
Still fairly new to the whole CC stuff, but I'm just wondering is there a way to get the mining turtle to carry on mining even after I disconnect from a server?
I'm using
MLG Mining scripts and all works fine just as I say when I disconnect it stops working, so I have to break the turtle and re-position back at the start to make sure it carries on the correct course.
Any help would be greatly appreciated
Thanks Matt
Edit - Sorry for the bad naming of the post….I just had a major idiot moment.
Edited on 19 December 2012 - 04:41 AM
8543 posts
Posted 18 December 2012 - 07:10 AM
You can either use a chunk loader of some sort, or write the script such that it keeps track of its own position and progress and resumes when it is started back up. The first option is much easier to implement.
4 posts
Posted 18 December 2012 - 07:45 AM
Can you explain a bit more about chunk loader?
I have tried a world anchor, but that doesn't seem to work.
Thanks Matt
8543 posts
Posted 18 December 2012 - 08:29 AM
A world anchor would work, as long as you are doing what you said in the OP–disconnecting from a server. As long as the turtle remains in the loaded chunks, it would keep going as usual. However, if the server is shut down or restarted, or you exit a single player world, the whole world will (of course) be unloaded. In those cases, you would need to have the turtle save its position and progress to a file for each action it performed, then use that information to resume the task when it started up again.
4 posts
Posted 25 December 2012 - 06:27 AM
sorry I know it's been a while since I posted this topic.
But after further research can you explain more on how id record the position, and carry on upon start-up? even though I'm using world anchors this sound a very interesting idea and would love to try and implement it.
1190 posts
Location
RHIT
Posted 25 December 2012 - 06:31 AM
sorry I know it's been a while since I posted this topic.
But after further research can you explain more on how id record the position, and carry on upon start-up? even though I'm using world anchors this sound a very interesting idea and would love to try and implement it.
You could either using GPS or write your own navigation api which writes to a file every time the turtle moves in a different direction. Keep track of your x, y, and z coordinates as well as the turtle's rotation and you're good to go.