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

stair miner

Started by N0CashVa1ue, 29 April 2012 - 07:10 AM
N0CashVa1ue #1
Posted 29 April 2012 - 09:10 AM
i made a program that mines out a 2X2 set of stairs underground first you'll want to put your mining turtle on the right side of the stairway like this
(i put dirt just to show the area it'll dig out)
now just type in stairs in your mining turtle and watch it go!
here's the link to the file click me!
oh and one thing i forgot to add, To change how long it digs for just open up the program with notepad++

until a == 20
and change the 20 to whatever you want to make it go longer or stop after a shorter period of time if you set it to 0 it will go forever

updated to not do weird dance after it ran the loop
strideynet #2
Posted 29 April 2012 - 09:16 AM
Cool
libraryaddict #3
Posted 29 April 2012 - 01:36 PM
Hmm.
You could also use repeat until not turtle.down()

That would repeat until it cant go down.
Aka when it hits bedrock

Edit: Like this http://pastebin.com/bhraJm0s
N0CashVa1ue #4
Posted 29 April 2012 - 11:17 PM
it was my first ever interaction with Lua and i could have made it go forever but i figured i didnt want its inventorie to fill up and not be able to pick up any ores it found. Also thanks for the tip
N0CashVa1ue #5
Posted 29 April 2012 - 11:19 PM
sorry to everybody that typed in stairway and it didnt work it was like 4 in the morning so i was kinda tired XD