deFENCE 0 Posted November 7, 2015 Share Posted November 7, 2015 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! Quote Link to post Share on other sites
Zyme 0 Posted December 25, 2015 Share Posted December 25, 2015 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. Quote Link to post Share on other sites
Zyme 0 Posted December 25, 2015 Share Posted December 25, 2015 P.S. I get error "attempt to call global exit (a nil value)". If there is empty space he wont go anywhere. Quote Link to post Share on other sites
deFENCE 0 Posted March 26, 2016 Author Share Posted March 26, 2016 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." Quote Link to post Share on other sites
dgelessus 26 Posted March 27, 2016 Share Posted March 27, 2016 You mean like os.exit? Quote Link to post Share on other sites
Toskin 0 Posted September 6, 2017 Share Posted September 6, 2017 Could it be possible to implement command which returns robot to starting position after finishing it's excavation? I tried program and I saw that if you'll try to dig deep holes, you'l be needing to get down to pick it up, which could be problem. Quote Link to post Share on other sites