Posted 17 May 2013 - 09:21 AM
Yes - yet another branch mining program - something between a little starter program and the fancy turtle programs with restart, gps, etc. This program is for somebody that wants to do their own pick work but also wants some help in the branch tunnel layout. The program makes a 2x1 tunnel on a zigzag pattern. I dig out the main branch - usually a 2x1 tunnel then start one turtle on the left and one on right. To make it simple, there is no restart/resume. I use the term "main" tunnel for the central tunnel. The "branch" tunnels are perpendicular to the "main" tunnel. Rather than returning to some drop off point, the turtle carries a stack of chests for dropping off ore along side the main tunnel.
Features:
- Places chests with ore along side of main tunnel. When it is along side the main tunnel, a test is made for the inventory about 1/2 full. If true, it places the chest with ore.
- Refuels from any coal collected
- Like all turtles - goes through water, lava, floats across chasms etc
- Torches placed every 10 blocks
- Can go left or right along main tunnel
- Returns (but does not stop) to main tunnel on every other branch tunnel
- The player can pre-place chests along the side of the main tunnel, if found by the turtle then those chests are used for unloading ore
Limitations:
- Preset to leave a wall 3 blocks thick between branches
- It attempts to place torches in water, lava, chasms. In order to prevent this, the turtle would have to move down and check for a block - thus reducing speed.
- If it fills its inventory while in a branch, it places a chest with ore right there. Thus a chest might (rarely?) be placed in a hard to get location.
- Out of fuel - pauses it in its tracks
- Complains about but ignores (keeps going) if out of chests or out of torches
- Number of branches must be even since it has to return to the main tunnel
Other:
- If lava is in the branch mine area, don't make the branches too long since the turtle might fill its inventory and place the chest in lava.
Installation for a Windows system:
I give each turtle a name using the "label set <name>" command. Thus a unique folder is created for each turtle in which I place a copy of the program. Folders are in saves\<game>\computer\<id> where id is a number starting at 0. Labels.txt maps the number to the name. Other methods may also work.
Use:
Dig a main tunnel by hand or using a turtle program such as Advanced Tunnel by Henness. The height and width can be as small as 2x1. The zigzag turtle does not enter the main tunnel. For example, 8 branches, you need a length of 8 x 4 = 32
Place turtle at eye level in the wall of the main tunnel
Command line: zigzag branch_length number_of_branches L|R
L|R use L for zigzag to the Left, R for zigzag to the right
Place chests in slot 16
Place torches in slot 15
Place reserve/starter fuel in slot 14
example: for 8 branch tunnels of length 40 each, going along the right side of the main tunnel
zigzag 40 8 R
In a test at level 12 with the above values, used: 3 chests, 4 coal, around 32 torches
Example image
Example branch mine 64 x 80. Main tunnel is 64 long. Branches are 40. Takes two turtles about 20 minutes to dig out.
Program: http://pastebin.com/S4My9Smi
Features:
- Places chests with ore along side of main tunnel. When it is along side the main tunnel, a test is made for the inventory about 1/2 full. If true, it places the chest with ore.
- Refuels from any coal collected
- Like all turtles - goes through water, lava, floats across chasms etc
- Torches placed every 10 blocks
- Can go left or right along main tunnel
- Returns (but does not stop) to main tunnel on every other branch tunnel
- The player can pre-place chests along the side of the main tunnel, if found by the turtle then those chests are used for unloading ore
Limitations:
- Preset to leave a wall 3 blocks thick between branches
- It attempts to place torches in water, lava, chasms. In order to prevent this, the turtle would have to move down and check for a block - thus reducing speed.
- If it fills its inventory while in a branch, it places a chest with ore right there. Thus a chest might (rarely?) be placed in a hard to get location.
- Out of fuel - pauses it in its tracks
- Complains about but ignores (keeps going) if out of chests or out of torches
- Number of branches must be even since it has to return to the main tunnel
Other:
- If lava is in the branch mine area, don't make the branches too long since the turtle might fill its inventory and place the chest in lava.
Installation for a Windows system:
I give each turtle a name using the "label set <name>" command. Thus a unique folder is created for each turtle in which I place a copy of the program. Folders are in saves\<game>\computer\<id> where id is a number starting at 0. Labels.txt maps the number to the name. Other methods may also work.
Use:
Dig a main tunnel by hand or using a turtle program such as Advanced Tunnel by Henness. The height and width can be as small as 2x1. The zigzag turtle does not enter the main tunnel. For example, 8 branches, you need a length of 8 x 4 = 32
Place turtle at eye level in the wall of the main tunnel
Command line: zigzag branch_length number_of_branches L|R
L|R use L for zigzag to the Left, R for zigzag to the right
Place chests in slot 16
Place torches in slot 15
Place reserve/starter fuel in slot 14
example: for 8 branch tunnels of length 40 each, going along the right side of the main tunnel
zigzag 40 8 R
In a test at level 12 with the above values, used: 3 chests, 4 coal, around 32 torches
Example image
Spoiler
Example branch mine 64 x 80. Main tunnel is 64 long. Branches are 40. Takes two turtles about 20 minutes to dig out.
Program: http://pastebin.com/S4My9Smi