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

ShaftminerV2

Started by Zatilla7, 17 April 2014 - 11:02 AM
Zatilla7 #1
Posted 17 April 2014 - 01:02 PM
Heya

I've been updating some of my old programs lately and here is ShaftminerV2
A turtle mining programto dig a small 1x2 mineshaft and while poking holes in the sides so you can see what you want.
It is designed for early game and to be fuel efficient. You shoud try it out.

Features:
  • Auto-lowering
  • Gravel proof
  • Ladder placement (Not tested but should work)
You can get it here: http://pastebin.com/Snm9QRNW


Here is the code:
  • function SideMine()
  • turtle.dig()
  • if turtle.forward() then
  • else
  • turtle.dig()
  • turtle.forward()
  • end
  • end
  • function mine()
  • turtle.dig()
  • if turtle.forward() then
  • turtle.digDown()
  • else
  • turtle.dig()
  • turtle.forward()
  • turtle.digDown()
  • end
  • end
  • print "Booting up Shaftminer V2"
  • sleep(1)
  • print "How many blocks down would you like me to dig?"
  • d = read()
  • for i=1,d,1 do
  • turtle.dig()
  • turtle.digDown()
  • turtle.down()
  • turtle.select(1)
  • turtle.place()
  • end
  • print "Mineshaft done. Shuting down. Bye"
  • print "Decent finished. Mineshaft iniciating"
  • turtle.turnRight()
  • turtle.turnRight()
  • turtle.up()
  • for i=1,20,1 do
  • mine()
  • mine()
  • mine()
  • turtle.turnRight()
  • SideMine()
  • SideMine()
  • SideMine()
  • turtle.turnRight()
  • turtle.turnRight()
  • turtle.forward()
  • turtle.forward()
  • turtle.forward()
  • turtle.forward()
  • SideMine()
  • SideMine()
  • SideMine()
  • turtle.turnRight()
  • turtle.turnRight()
  • turtle.forward()
  • turtle.forward()
  • turtle.forward()
  • turtle.turnLeft()
  • end
  • print "Mineshaft done. Shaftminer V2 is shutting down"
vifino #2
Posted 18 April 2014 - 01:23 PM
You should put the code in a hastebin or pastebin, so others can download it easily and your post looks cleaner.
Just a tip.

Greetings,
vifino
Sparta935 #3
Posted 23 April 2014 - 11:15 PM
I'm completely new to computercraft so I thought I would try various code first to test it out, this was the code I tested first….Unfortunately my turtle is a bit too emo for me now, all he does is chop up his own disk drive and monitor…Why won't he move?
Lyqyd #4
Posted 24 April 2014 - 01:24 AM
Did you fuel the turtle?
Agoldfish #5
Posted 24 April 2014 - 01:33 AM
You should put the code in a hastebin or pastebin, so others can download it easily and your post looks cleaner.
Just a tip.

Greetings,
vifino
And he posts…
Sparta935 #6
Posted 24 April 2014 - 05:44 PM
Did you fuel the turtle?
Well when you suggested that I fuel the turtle…It worked! It dug a path straight into lava and died…Thanks for the suggestion haha now I know how it works. Cool program!
apemanzilla #7
Posted 24 April 2014 - 08:31 PM
Did you fuel the turtle?
Well when you suggested that I fuel the turtle…It worked! It dug a path straight into lava and died…Thanks for the suggestion haha now I know how it works. Cool program!
Turtles are lava-proof…
Zatilla7 #8
Posted 29 April 2014 - 09:51 PM
I'm gonna be upgrading the code soon. It will work alot better. Also the code has been acting up a bit