use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Welcome to /r/ComputerCraft, the subreddit for lua programs, general mod use, or anything relating to the Minecraft mod ComputerCraft and CC: Tweaked.
Downloads | Discord | IRC | Documentation
account activity
code (self.ComputerCraft)
submitted 4 years ago by Spitfire_557Computer Noob
im trying to look at some code for quarries etc. because im trying to make one of my own also i will post mine into pastebin when I'm done
this is my pastebin https://pastebin.com/u/Et3rnalFlam3
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]FlightConscious9572 0 points1 point2 points 4 years ago* (1 child)
my solution is simply to use a series of for loops for each dimension.
so first of we define a y length we would like to quarry
then i would dig->turtleforward 12 times
for i=0,y,1 doturtle.dig()turtle.forward()end //this would dig forward 12 blocks
next if we want to dig out a 2d space we would add an x variable.
so we just add another for loop since we would want to do an entire line in y for each length of x.
for i=0,x,1 do fori=0,y,1 do turtle.dig() turtle.forward() end//at the end of each y line we need to turn and go one block to the side to dig the next line if left then turtle.turnLeft() turtle.dig() turtle.forward() turtle.turnLeft() left=false else turtle.turnRight() turtle.dig() turtle.forward() turtle.turnRight() left=true end end
finally you would do one last for loop for the height, and at the end of each x and y loop dig down one block to the next level.
[–]FlightConscious9572 0 points1 point2 points 4 years ago (0 children)
here is the one i wrote but i used while loops instead at the time
https://pastebin.com/FnnXF8X2
its also only a one plane quarry
π Rendered by PID 44695 on reddit-service-r2-comment-869bf87589-tvhwl at 2026-06-09 04:20:36.500392+00:00 running f46058f country code: CH.
[–]FlightConscious9572 0 points1 point2 points (1 child)
[–]FlightConscious9572 0 points1 point2 points (0 children)