Posted 16 April 2014 - 09:11 PM
Heya
I'va lately been brushing up on my Computer Craft coding. While it's not a masterpeice I've been updating my old codes.
The latest has been the Shaftminer program. A mining code for early game which goes down in the earth then dig a 1x2 mineshaft while poking into the walls so you can then manually mine the good bits.
The renewed code is not working in the style of not even launching
Thank you for your time. I'll be uploading this when it's fixed
I'va lately been brushing up on my Computer Craft coding. While it's not a masterpeice I've been updating my old codes.
The latest has been the Shaftminer program. A mining code for early game which goes down in the earth then dig a 1x2 mineshaft while poking into the walls so you can then manually mine the good bits.
The renewed code is not working in the style of not even launching
function SideMine()
turtle.dig()
if turtle.forward() then
print ""
else
turtle.dig()
turtle.forward()
end
function mine()
turtle.dig()
if turtle.forward() then
turtle.digDown()
else
turtle.dig()
turtle.forward()
turtle.digDown()
end
end
term.write (Booting up Shaftminer V2)
wait(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"
for i=1,1,2 do
turtle.turnRight()
end
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
end
Thank you for your time. I'll be uploading this when it's fixed