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

Stairs

Started by neto333, 18 May 2012 - 02:48 AM
neto333 #1
Posted 18 May 2012 - 04:48 AM
hi, again i need some help, i can´t make stairs, no stairs while you are mining, can someone give me a hand with this easy program
thank youj,
ComputerCraftFan11 #2
Posted 18 May 2012 - 06:13 PM
Here is a program for stairs:

repeat
A = turtle.down()
until A == false

for v=1,10 do --change the 10 to how much steps you want
turtle.up()
turtle.dig()
turtle.forward()
turtle.digUp()
end
DarkNinja2462 #3
Posted 18 May 2012 - 08:22 PM
instead of doing
until A == false
type
until not A
P.S. This should be in Ask a Pro not General
neto333 #4
Posted 18 May 2012 - 08:59 PM
Thank you, this forum is amazing, all my questions has been answered, this is probably one useful mods.
neto333 #5
Posted 18 May 2012 - 11:50 PM
Sorry for the double, is giving me an error
bios: 206: [string"stairs"]:1: unexpected symbol
i guess that I'm doing something wrong, i capy and paste the program in a .txt file, and then i put in computer craft….programs, turtle, and delete de extension.
Edit, the program is for digging stairs?
MathManiac #6
Posted 19 May 2012 - 04:06 AM
Here is a program for stairs:

repeat
A = turtle.down()
until A == false

for v=1,10 do --change the 10 to how much steps you want
turtle.up()
turtle.dig()
turtle.forward()
turtle.digUp()
end

There's a repeat … until block? (looks in notepad++) That's cool
ComputerCraftFan11 #7
Posted 19 May 2012 - 04:31 AM
Here is a program for stairs:

repeat
A = turtle.down()
until A == false

for v=1,10 do --change the 10 to how much steps you want
turtle.up()
turtle.dig()
turtle.forward()
turtle.digUp()
end

There's a repeat … until block? (looks in notepad++) That's cool

It repeats going down until it touches the floor, then continues.