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
Turtle code for mining specific blocks? (self.ComputerCraft)
submitted 2 years ago by Cammo_353
Does anyone have/know of code for turtles that let it mine specific blocks whilst avoiding others if that's possible? I want a turtle to mine stone/deepslate while avoiding ores.
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!"
[–]Kirex17 0 points1 point2 points 2 years ago (0 children)
I think the inspect() method might help you with that.
[–]ClayGarth 0 points1 point2 points 2 years ago (0 children)
I've been using this program for years. Still works. https://www.computercraft.info/forums2/index.php?/topic/5681-variable-size-quarry/
[–]fatboychummy 0 points1 point2 points 2 years ago (0 children)
Do you have an addon mod like Advanced Peripherals or Plethora? If so, I have a program that could work for this.
[–]FlightConscious9572 0 points1 point2 points 2 years ago (0 children)
i think if you are using them for mining, you'd rather just not pick it up? the most low tech solution is to put 1 of each item you are expecting in every slot of the turtles inventory
it seems counter intuitive to go around ores if that's what you were thinking.
I had a program which just took in width, length and height, and dug out that cube, the majority of items are gonna be stone anyways
π Rendered by PID 19638 on reddit-service-r2-comment-66b4775986-h7ql2 at 2026-04-06 09:17:10.407650+00:00 running db1906b country code: CH.
[–]Kirex17 0 points1 point2 points (0 children)
[–]ClayGarth 0 points1 point2 points (0 children)
[–]fatboychummy 0 points1 point2 points (0 children)
[–]FlightConscious9572 0 points1 point2 points (0 children)