ComputerCraft Forums

ComputerCraft => Programs => APIs and Utilities => Topic started by: MLGMilk on Nov 07, 2022, 09:48 PM

Title: ShapeDigger, A Utility For Digging Shapes Underground
Post by: MLGMilk on Nov 07, 2022, 09:48 PM
Hello all,

I thought there would already be something like this, but after looking around for a while on this forum, I couldn't find anything. The closest thing I found was a turtle program for building shapes. This does the opposite.

pastebin get k4ZN8rCK ShapeDigger

Here are the features

I should note that because I used Radius for the rectangle function, making rectangles of even length is impossible. Using radius makes things so much easier, though.

Made a small error, not enough to warrant an update though. in the code I state that giving a radius of 0 will make a vertical line; this is wrong. More accurately, giving a radius of < 1 and > 0 makes a vertical line.

Pretty simple, but powerful. If you find any bugs shoot a reply and I'll fix it.