100 posts
Posted 11 January 2013 - 08:29 PM
Greetings!
i searched "sphere" and "dome" and haven't found anything yet, but is it possible to automate a turtle to build a sphere, or dome, based on a users radius input?
i was thinking:
if radius = a valid radius for it to build and materials are available
than build user specified sphere/dome
else
incorrect radius please try these examples
end
i'm very new to this and was trying to find an example, or if its even possible.
Thanks!
7508 posts
Location
Australia
Posted 11 January 2013 - 08:58 PM
possible… yes… do I know the formula you would need to do it… no… sorry
also most radius' would be a valid one, it just needs to work out how many blocks it will need.
120 posts
Posted 11 January 2013 - 08:58 PM
yeah , it just requires alot of math
heres a link to some answers to a similar question
http://stackoverflow.com/questions/9084189/draw-a-sphere-using-3d-pixels-voxels
7508 posts
Location
Australia
Posted 11 January 2013 - 09:03 PM
yeah , it just requires alot of math
heres a link to some answers to a similar question
http://stackoverflow...d-pixels-voxels
Second answer looks like it could be handy, and easily ported to Lua… :)/>
799 posts
Location
Land of Meh
Posted 11 January 2013 - 09:06 PM
Someone has already done this for you!
Here.
7508 posts
Location
Australia
Posted 11 January 2013 - 09:08 PM
Someone has already done this for you!
Here.
I knew that existed… I knew I wasn't crazy! Why didn't that come up when I tried to search it! :angry:/>
100 posts
Posted 11 January 2013 - 10:58 PM
thats funny cause i searched for sphere, and dome, and none of that came up! so weird! thanks for the help guys i'll take a look :D/>
so how about this one! The turtle has a start location, and then you send him into a cave and it will look at the walls of the cave for ores and such. you can specify how far away its allowed to go from its starting area. maybe something like this
x = turtle start location
y = turtle start location
z = turtle start location
while not go forward
compare filter blocks w/ surroundings
attack
dig
forward
else
forward
end
if location > x, y , z then
return to start location
else
continue
end
i know thats super sloppy but i'm hoping to find something new!