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

Stripmining turtle (intelligent)

Started by makeo, 08 July 2015 - 11:16 PM
makeo #1
Posted 09 July 2015 - 01:16 AM
Hey,
I created an advanced program for turtles to efficiently do stripmining.
The turtle does not only dig straight lines instead it mines all the ores in each strip.
No guarantee that this program will work and not destory your world.

This program is desigend to work with the mod OpenPeripheralIntegration and Ender Storage by chicken_bones and maybe you can use an other mod instead
Your not allowed to repost this program (except with my permission. You can ask me) or even try to sell it. All rights reserved to makeo.

Small youtube video
[media]http://www.youtube.com/watch?v=dJhbM1f_aPM[/media]

How to use:
- place the turtle somewhere underground
- put an Ender Chest (not a vanilla enderchest) in the second slot of the turtle
- now type "pastebin get 5FRLtaL4 startup" (its important to set it as the startup program otherwise the turtle will not work after a chunk/world or server reload/restart)
- use "reboot" to reboot the turtle
- follow the stepts on the screen
- ensure to load all the chunks the turtle has to mine (e.g. ChickenChunks chunkloader)
- place a second Ender Chest with the same color in your base
- put fuel in the first slot of this Ender Chest (lava buckets will work too)
- wait for stuff to appear in the Ender Chest and put some new fuel in the first slot if needed
- if the turtle is finished it will move back to the starting point
- try to get a real quarry soon

Pastebin link: http://pastebin.com/5FRLtaL4

Versions:
1.0: release
1.1: bugfix for "startup:453: Too long without yielding"

Known bugs:
- Should be fixed!

(Please ignore any spelling and grammatical mistakes)

~mak
Edited on 21 July 2015 - 08:37 PM
Lion4ever #2
Posted 10 July 2015 - 02:20 PM
If you can not open a file, make sure it has been closed before.

Files can not be opened twice if you are in writing or appending mode.

If that does not work you could: sleep(60) and then try again that would prevent the yieling error.
makeo #3
Posted 11 July 2015 - 02:03 AM
the problem is that the turtle will never be able again to open the file… if i add the 60sec sleep the error would not appear but insted the turtle would just do nothing. But if your able to fix and reproduce the bug feel free to try it
florens #4
Posted 13 July 2015 - 08:25 PM
I see this mod OpenPeripheral. Do I need it?
makeo #5
Posted 14 July 2015 - 12:06 AM
Yes you will need OpenPeripheralIntegration
florens #6
Posted 18 July 2015 - 03:29 PM
Awesome, I asked the owner of the modpack I play in to add it and the patch came just out now! :)/>
makeo #7
Posted 21 July 2015 - 10:38 PM
Thanks :)/> and please update to version 1.1 for the bugfix
florens #8
Posted 22 December 2015 - 06:45 PM
Could you make a version or update this one to make it work with the config set to disable turtle needing fuel?

This was my atempt in doing that. I'm still very bad at these things so expect to see some wrong things. It doesn't work, it looks around itself, digs down and endlessly looks around itself again.
Edited on 22 December 2015 - 06:26 PM