Jump to content




ShaftminerV2

turtle

  • You cannot reply to this topic
7 replies to this topic

#1 Rewok

  • Members
  • 93 posts

Posted 17 April 2014 - 12: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"


#2 vifino

  • Members
  • 7 posts
  • LocationEarth

Posted 18 April 2014 - 12: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

#3 Sparta935

  • Members
  • 3 posts

Posted 23 April 2014 - 10: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?

#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 24 April 2014 - 12:24 AM

Did you fuel the turtle?

#5 Agoldfish

  • Members
  • 451 posts
  • LocationSome Fish Bowl in Ohio.

Posted 24 April 2014 - 12:33 AM

View Postvifino, on 18 April 2014 - 12:23 PM, said:

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...

#6 Sparta935

  • Members
  • 3 posts

Posted 24 April 2014 - 04:44 PM

View PostLyqyd, on 24 April 2014 - 12:24 AM, said:

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!

#7 apemanzilla

  • Members
  • 1,421 posts

Posted 24 April 2014 - 07:31 PM

View PostSparta935, on 24 April 2014 - 04:44 PM, said:

View PostLyqyd, on 24 April 2014 - 12:24 AM, said:

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...

#8 Rewok

  • Members
  • 93 posts

Posted 29 April 2014 - 08:51 PM

I'm gonna be upgrading the code soon. It will work alot better. Also the code has been acting up a bit





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users