This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Mikeemoo's profile picture

Underground sphere base

Started by Mikeemoo, 03 January 2013 - 09:14 AM
Mikeemoo #1
Posted 03 January 2013 - 10:14 AM
Hi all,

I wanted to make an underground base in the shape of a sphere, however, with it being underground I didn't want to 'break' any of the surrounding area. Most (or all) sphere building turtle programs I've seen build 'top-down', which'd mean digging into areas outside my base.

I wrote one that builds from the inside out..

http://pastebin.com/0x27xALC

1) Put your mining turtle down
2) type pastebin get 0x27xALC sphere
3) Refuel your turtle a LOT. Better to give him lots of fuel here because he doesn't automatically refuel himself from a chest
4) In slot 1, put some coal or charcoal
5) In slot 2-16, put the building material you wish to use. Make sure you have at least 1 of your material in every slot
6) run "sphere 5", where the number is the radius of the sphere you wish to dig

A few things to note:

1) This is just a quick/dirty script. Expect their to be bugs.
2) He doesn't bother collecting ANY items, he'll just drop them on the floor. Ideally he'd have half his inventory dedicated to building blocks, the other half dedicated to collecting items, and when he wants to refill or drop off, he goes back up to the surface. However, he doesn't, yet.
3) Small spheres look a bit rubbish
4) Big spheres take a very very very very long time, but they look awesome. Use a world anchor!
5) Careful not to hit bedrock
6) If they run out of fuel or material, they'll sit and wait for more. Unfortunately, without a jetpack or similar, it can be a bit of a pain to refuel it
7) gravel needs a bit longer, I think. just been testing


Maybe someone will find some use for it!
Mikeemoo #2
Posted 04 January 2013 - 11:40 PM
This is it about 1/3 of the way through:



Ignore the random junk in the middle :)/>

That's a 26-radius sphere down to about level 8
mauijim #3
Posted 17 January 2013 - 08:45 AM
this is a really cool code, I used it in my world. But the gravel needs to be a little longer, but definitely worth it still.
sm31415 #4
Posted 28 March 2013 - 07:40 AM
Is there anyway you could add an option to skip the first however many levels.

so say sphere 30 12

would make it start a sphere of radius 30, but ignore the first 12 levels and start on the 13th.

The server i'm on has regular restarts, which doesnt leave me enough time to build any decent sized domes.

Awesome program btw :)/> thank you.