Posted 24 July 2013 - 06:42 PM
This is a simple little program I just threw together, it works similar to the built-in "go" command, but instead of just going where you tell it, it digs a shaft along the way.
Uses only a limited set of the go commands - fd, lt, rt, and bk. Placed at eye-level, it will dig forward and down.
but! it adds some -flags you can pass as args, which change how it digs.
-tall
makes it dig up as well as down each step. This is a bit slower because of necessary gravel- and sand-related sleep()
-cross
makes it dig not only up, but left and right. Slower still!
-torch=<slot>
specify a slot number and it will place one down every 12th step as it moves, starting with the 6th step. This is close enough that the interior of the tunnel should be lit enough to prevent spawning!
and that's… well… pretty much that. Screenshot of him digging a shaft:
pastebin get 68Ryq8iv shaft
Uses only a limited set of the go commands - fd, lt, rt, and bk. Placed at eye-level, it will dig forward and down.
but! it adds some -flags you can pass as args, which change how it digs.
-tall
makes it dig up as well as down each step. This is a bit slower because of necessary gravel- and sand-related sleep()
-cross
makes it dig not only up, but left and right. Slower still!
-torch=<slot>
specify a slot number and it will place one down every 12th step as it moves, starting with the 6th step. This is close enough that the interior of the tunnel should be lit enough to prevent spawning!
and that's… well… pretty much that. Screenshot of him digging a shaft:
pastebin get 68Ryq8iv shaft