Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
deFENCE

BDig - Better Excavation Program

Recommended Posts

This is a better excavation program , you can adjust its parameters to excavate any cube.

 

Syntax: bdig [-luk] <up/down> <fwd> <side>

-l: makes the robot go left instead of right

-u: makes the robot go up instead of down

-k: not implemented yet

 

http://pastebin.com/KTS6CCk0

 

Get by typing `pastebin get KTS6CCk0 bdig.lua` in a robot (you need an Internet Card attached)

 

Examples:

 

bdig -u 10 10 10

Excavates a 10x10x10 cube (the robot is in the lower left corner)

 

 

Enjoy!

Link to post
Share on other sites

Hi,

 

I try to make robots work with tinkers construct hammer. It mines 3x3x1 so the snake pattern is bad for this tool.

 

The default dig program is not good for this.

 

Is there a chance you could implement this? Maybe as an argument, or maybe even detect a hammer in the tool slot?

 

Thanks.

Link to post
Share on other sites

I'll see. I believe this is possible, but detecting the hammer in the slot is not possible as far as I know.

Maybe it is though.

 

Yeah the "attempt to call global exit" is semi intended as I don't know of any "exit()" methods that does the same, this is just to abort the program. It has no other side effects other than the error message.

 

What do you mean by "If there is empty space he wont go anywhere."

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.