Posted 23 April 2012 - 04:02 AM
Stairs, Stairwells, and Railings
The program below can cut stairs with or without railings and can also dig them as a clockwise stairwell. Try it out and please let me know if you find any bugs.
Features
- Width, height, depth of the stairs can be set.
- Stairs can be cut with or without railings. The width of the railings can be set.
- Stairs will dig a one deep landing area at the end of the stairs for convenience. The width and height of the block are the same as the stairs.
- Stairs can be dug in a clockwise spiral around a central column creating a stairwell. The width of the central column can be set.
- When digging a stairwell, landings will be created for each flight.
- When digging the program will check for falling blocks such as sand and gravel.
Notes
- The turtle will dig through water and lava.
- The turtle will not stop when its inventory is full. You may want to place a single block of any resource you want to keep in the turtle's slots so it is picked up.
- The turtle does not place torches as it goes.
- The turtle does not place stair blocks as it goes. Unfortunately I have been unable to get them to place straight.
Program Instructions
stairs <width> <height> <depth> <railing width> <center column width> ( ex. stairs 3 3 10 1 0 )
- width = how wide the stairs are excluding the railing.
- height = distance from stair to ceiling.
- depth = how deep to dig.
- railing width = how wide the railings should be. The railings are always 1 block high. Zero may be passed in for no railing.
- center column width = if greater than 1, the stairs will spiral around a center column clockwise. This is the width of that column. Zero may be passed in for a straight staircase.
Install Instructions
- Copy the file into 'ComputerCraft/lua/rom/programs/turtle' in your local install or server. Then rename the file to 'stairs' with no suffix.
Change Log
- v1.0 Initial release containing stairs and railings.
- v1.1 Added ability to create stairwells.
- v1.11 Fixed bug where stairwells were dug incorrectly.
- v1.2 The railing has been extended at the bottom of each flight of stairs to be symmetric with the start of each flight of stairs.
- v1.3 Fixed bug for stairswells without railings where the turtle would never dig down. Stairwells with a railing must now have a center column of at least 3.
Tunnel Loop
The program below can cut a tunnel in a clockwise loop. The width, height, and size of the loop can be specified.
Features
- Width, height, and width of the center of the loop can be specified.
- When digging the program will check for falling blocks such as sand and gravel.
Notes
- The turtle will dig through water and lava.
- The turtle will not stop when its inventory is full. You may want to place a single block of any resource you want to keep in the turtle's slots so it is picked up.
- The turtle does not place torches as it goes.
Program Instructions
tunnel_loop <width> <height> <centerWidth> ( ex. tunnel_loop 2 3 10 )
- width = how wide the tunnel is.
- height = distance from floor to ceiling in the tunnel.
- center width = The inner width of the loop (the width of the blocks to leave in the center of the loop).
Install Instructions
- Copy the file into 'ComputerCraft/lua/rom/programs/turtle' in your local install or server. Then rename the file to 'tunnel_loop' with no suffix.
Change Log
- v1.0 Initial release.
The program below can cut stairs with or without railings and can also dig them as a clockwise stairwell. Try it out and please let me know if you find any bugs.
Features
- Width, height, depth of the stairs can be set.
- Stairs can be cut with or without railings. The width of the railings can be set.
- Stairs will dig a one deep landing area at the end of the stairs for convenience. The width and height of the block are the same as the stairs.
- Stairs can be dug in a clockwise spiral around a central column creating a stairwell. The width of the central column can be set.
- When digging a stairwell, landings will be created for each flight.
- When digging the program will check for falling blocks such as sand and gravel.
Notes
- The turtle will dig through water and lava.
- The turtle will not stop when its inventory is full. You may want to place a single block of any resource you want to keep in the turtle's slots so it is picked up.
- The turtle does not place torches as it goes.
- The turtle does not place stair blocks as it goes. Unfortunately I have been unable to get them to place straight.
Program Instructions
stairs <width> <height> <depth> <railing width> <center column width> ( ex. stairs 3 3 10 1 0 )
- width = how wide the stairs are excluding the railing.
- height = distance from stair to ceiling.
- depth = how deep to dig.
- railing width = how wide the railings should be. The railings are always 1 block high. Zero may be passed in for no railing.
- center column width = if greater than 1, the stairs will spiral around a center column clockwise. This is the width of that column. Zero may be passed in for a straight staircase.
Install Instructions
- Copy the file into 'ComputerCraft/lua/rom/programs/turtle' in your local install or server. Then rename the file to 'stairs' with no suffix.
Change Log
- v1.0 Initial release containing stairs and railings.
- v1.1 Added ability to create stairwells.
- v1.11 Fixed bug where stairwells were dug incorrectly.
- v1.2 The railing has been extended at the bottom of each flight of stairs to be symmetric with the start of each flight of stairs.
- v1.3 Fixed bug for stairswells without railings where the turtle would never dig down. Stairwells with a railing must now have a center column of at least 3.
Tunnel Loop
The program below can cut a tunnel in a clockwise loop. The width, height, and size of the loop can be specified.
Features
- Width, height, and width of the center of the loop can be specified.
- When digging the program will check for falling blocks such as sand and gravel.
Notes
- The turtle will dig through water and lava.
- The turtle will not stop when its inventory is full. You may want to place a single block of any resource you want to keep in the turtle's slots so it is picked up.
- The turtle does not place torches as it goes.
Program Instructions
tunnel_loop <width> <height> <centerWidth> ( ex. tunnel_loop 2 3 10 )
- width = how wide the tunnel is.
- height = distance from floor to ceiling in the tunnel.
- center width = The inner width of the loop (the width of the blocks to leave in the center of the loop).
Install Instructions
- Copy the file into 'ComputerCraft/lua/rom/programs/turtle' in your local install or server. Then rename the file to 'tunnel_loop' with no suffix.
Change Log
- v1.0 Initial release.