So I made this turtle program and thought it could be useful to someone else. It's very simple, and the main idea behind it was to make something that doesn't require any maintenance. This program is based on another one and basically is a major simplification of the source program.
Preamble
In a couple of my previous worlds I generally relied on frame quarries for mining, but I didn't like them too much because they are rather complex, hard to set up, require maintenance and – the worst of all – due to slow frame motors they can mess up their positioning if a server restarts while they are moving (unless you use gps, which makes the system even more complex). Since I play SSP, I turn the game on and off pretty frequently, and I also get occasional server failures and freezes. So I was looking for a way to automate mining that would be relatively fast, simple and as resistant to bugs and server restarts as possible.
Most turtle mining programs I saw either use very complex logic or gps. I wanted to avoid using gps towers since their range is limited, and using complex moving patterns without gps can result in mispositioning. My solution to this problem is a very simple program with basic logic.
Usage
Suppose we stand at Y level 80. We grab 5 turtles and run them with a command dig 60 1024. They will mine straight down, rise to Y60 and continue 1024 times. Since the main idea of the program is reliability, it should be OK to use even larger numbers. As a result we get a chunk of 5x1024 blocks mined out from level Y1 to Y 60, leaving nice 20 blocks under the surface. Note that turtles won't handle lighting, so I suggest placing a couple of water blocks to avoid making a monster zoo under your base.
As you can see, this is a very basic program and I'm sure many people use something similar in their worlds. Hopefully it will be of any use to those who don't like programming.
Download
http://pastebin.com/c5Q0Pien
pastebin get c5Q0Pien dig
Changelog
1.3.2 - Bugfix: now properly handling mobs when moving down; extra protection for refueling procedure
1.3.1 - Bugfix: crash during refuel at startup
1.3 - Return function added
1.2 - Initial release
Preamble
In a couple of my previous worlds I generally relied on frame quarries for mining, but I didn't like them too much because they are rather complex, hard to set up, require maintenance and – the worst of all – due to slow frame motors they can mess up their positioning if a server restarts while they are moving (unless you use gps, which makes the system even more complex). Since I play SSP, I turn the game on and off pretty frequently, and I also get occasional server failures and freezes. So I was looking for a way to automate mining that would be relatively fast, simple and as resistant to bugs and server restarts as possible.
Most turtle mining programs I saw either use very complex logic or gps. I wanted to avoid using gps towers since their range is limited, and using complex moving patterns without gps can result in mispositioning. My solution to this problem is a very simple program with basic logic.
Usage
- You'll need a mining turtle with a chunk loader upgrade.
- Place an ender chest in the 1st slot. It will be used to purge all the mined items.
- Place another chest in the 2nd slot. Supply it with fuel, turtle will grab a stack when it needs to refuel.
- Run the program with 2 arguments:
- First you set the max height (Y coordinate). Turtle will mine everything from this level to level Y1 (bedrock) and continue forward.
- Second argument is how far you want it to mine (it moves in a straight line).
- You can optionally add a 3rd argument (any text will do) to activate the return function.
- Strip-mining: you can tear down huge masses of land)
- Gentle mining: many people don't like world holes left by strip-mining, so you can send your turtles to the lower levels, and the upper levels will remain completely intact.
- Easily scalable: even a couple of turtles will provide a nice amount of ores at a decent speed, but if you need more you can simply add more turtles.
- State saving: the turtle remembers its progress and continues after you start the game again.
- Fail proof: a very simple logic is used to ensure the turtle is always positioned correctly. No matter what happens to your server, the turtles should be just fine.
- Return function: make your turtle go back to the starting point.
Suppose we stand at Y level 80. We grab 5 turtles and run them with a command dig 60 1024. They will mine straight down, rise to Y60 and continue 1024 times. Since the main idea of the program is reliability, it should be OK to use even larger numbers. As a result we get a chunk of 5x1024 blocks mined out from level Y1 to Y 60, leaving nice 20 blocks under the surface. Note that turtles won't handle lighting, so I suggest placing a couple of water blocks to avoid making a monster zoo under your base.
As you can see, this is a very basic program and I'm sure many people use something similar in their worlds. Hopefully it will be of any use to those who don't like programming.
Download
http://pastebin.com/c5Q0Pien
pastebin get c5Q0Pien dig
Changelog
1.3.2 - Bugfix: now properly handling mobs when moving down; extra protection for refueling procedure
1.3.1 - Bugfix: crash during refuel at startup
1.3 - Return function added
1.2 - Initial release