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

This is rubbish, don't come here.

Started by samh111, 01 January 2013 - 11:47 AM
samh111 #1
Posted 01 January 2013 - 12:47 PM
Here is my new code, it mines then it comes back to you so you don't need to follow it but it doesn't place torches, i might add it in later but here it is : this one acctually comes back to you and it works perfectly :D/>
http://pastebin.com/NTp0pGwY

print("Mining...")
cond = 1
while cond ~= 50 do
turtle.dig()
turtle.digDown()
turtle.digUp()
turtle.forward()
cond = cond + 1
end
if cond == 50 then
turtle.turnLeft()
turtle.turnLeft()
while cond ~= 100 do
cond = cond + 1
turtle.forward()
end
end
print("Finished!")
print("Created By Samh111! Thank You For Using My Miner!")
Thomasoien #2
Posted 01 January 2013 - 01:49 PM
Not really sure what this is supposed to do since it didnt work but i guess its a ummm zig zag miner? in that case i modifed your first post and made this

http://pastebin.com/Ukd5mMfV

Spoiler


cond = 1
while true do
turtle.dig()
turtle.digUp()
turtle.digDown()
turtle.forward()
cond = cond + 1
if cond == 25 then
turtle.turnRight()
turtle.dig()
turtle.digUp()
turtle.digDown()
turtle.forward()
turtle.dig()
turtle.digUp()
turtle.digDown()
turtle.forward()
turtle.dig()
turtle.digUp()
turtle.digDown()
turtle.forward()
turtle.turnRight()
end
if cond == 50 then
turtle.turnLeft()
turtle.dig()
turtle.digUp()
turtle.digDown()
turtle.forward()
turtle.dig()
turtle.digUp()
turtle.digDown()
turtle.forward()
turtle.dig()
turtle.digUp()
turtle.digDown()
turtle.forward()
turtle.turnLeft()
cond = 0
end
end
steel_toed_boot #3
Posted 01 January 2013 - 07:53 PM
but what does it do? lol
samh111 #4
Posted 01 January 2013 - 11:03 PM
This is my new one!