Jump to content




Cube Digger + Quarry Frame Destroyer


5 replies to this topic

#1 Evan

  • New Members
  • 5 posts

Posted 19 March 2012 - 10:20 AM

http://pastebin.com/xipmT4p0 Cube Digger
http://pastebin.com/ymnvcNbL Quarry Frame Destroyer



Cube Digger

This is my first full script in lua and for computercraft, and probably the messiest piece of code I've ever wrote...

I'd like to send a big shoutout to BlackRa1n who helped make this program a lot more use-friendly, and posted it on! Thanks man :D/>

This program is designed to simply make a mining turtle dig out a cube which size is defined by the user.


It should be pretty self-explanatory, but if not read following:

Tutorial:
Spoiler

This does have limitted uses, but the one i programmed it for is to flatten out a bit of land (IndustrialCraft terraformer just wasn't fast enough), but I guess you could do it to do some strip mining if you had 2 or 3 of them, or to mine out a basement...




Quarry Frame Destroyer
This is for use with buildcraft, and is used to destroy the framework that is left behind by the quarry when it has finished.

Simple place the turtle at one of the bottom corners of the quarry framework, and load the program. The forward length of the quarry is how long the quarry is, in the direction the turtle is facing. The length of the quarry is not, however, the length of the hole it digs, but the length of the framework itself, so it is 2 blocks longer than the hole it digs.

You will then be asked to input the Side Length of the quarry, which is simply how long the quarry is to the side of the mining turtle (which side the turtle is at doesn't matter!).

Then enter the height of the quarrys framework, and press enter.

The turtle will then begin to dig out the quarry's framework!

Pretty simple really :)/>





Any questions feel free to post.

NB.If you get in the way of the mining turtle often the turtle will mess up its sequence, and you will have to reprogram it.

Feel free to copy edit, distribute any of my code, I don't really care what you do with it tbh...

Evan.

#2 Zer0t3ch

  • Members
  • 33 posts
  • LocationIllinois, USA

Posted 24 March 2012 - 03:53 AM

Looks cool! Might make my own little modifications and repost, with your permission, of course! :3 Anyway, looks cool!

#3 BlackRa1n

  • New Members
  • 69 posts

Posted 24 March 2012 - 11:04 AM

 Evan, on 19 March 2012 - 10:20 AM, said:

Feel free to copy edit, distribute any of my code, I don't really care what you do with it tbh...

 Zer0t3ch, on 24 March 2012 - 03:53 AM, said:

Looks cool! Might make my own little modifications and repost, with your permission, of course! :3 Anyway, looks cool!

Go for it! :(/>
What you gonna do with it?

#4 Evan

  • New Members
  • 5 posts

Posted 27 March 2012 - 08:59 AM

Can do whatever you want with it, just to warn you though its insanely messy and over-complicated... Ahwell :o/>

#5 Evan

  • New Members
  • 5 posts

Posted 13 April 2012 - 09:09 AM

Just added a Quarry Frame Destroyer, for digging out the framework that's left behind from using buildcrafts quarry :P/>

#6 flashy99

  • New Members
  • 3 posts

Posted 28 September 2012 - 02:20 PM

When I try to run the cube digger, I get an error for line 1, unexpected symbol. I've looked at my saved copy and compared it to yours and I see no difference. For reference, this is line 1:

function digIt()





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users