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

[Turtle] Stairs Program!

Started by Muud12, 19 March 2012 - 01:25 AM
Muud12 #1
Posted 19 March 2012 - 02:25 AM
[Turtle] Stairs Program!


I just made a new program for turtles that you can do stairs from blocks that you have selected.


I'll still fix a problem where you need to put two identical blocks to work.


I started from the program created by ironsmith123, is quite simple, but efficient!




I add more info later!
Muud12 #2
Posted 19 March 2012 - 02:37 AM
I no have a video someone can make one?
Mtdj2 #3
Posted 17 June 2012 - 08:23 PM
Got some responce for you: It continues forever. Make it search for a key at the end or something. But it is a great program though.
I am not gonna make a video of that simple program (no offence).
Overall: good program.
Prime_Jetspace #4
Posted 19 June 2012 - 03:00 PM
For me, all it did was place a Cobblestone block and then climb over it and go in a straight line until it hit a block.
Tiin57 #5
Posted 14 July 2012 - 06:04 PM
I fixed the code. It worked if you had the turtle starting at the top of the stairs. This code will work if you start at the bottom.

print("Starting Muud12 Stairs!")
turtle.up()
while true do
turtle.placeDown(1)
turtle.forward()
turtle.up()
turtle.select(2)
turtle.placeDown(2)
turtle.forward()
turtle.up()
end
I realize that it was a simple fix, but many people don't know how to do that. I will make the code check and go up or down at some point.
tele_iz_dva4a #6
Posted 08 August 2012 - 04:52 PM
Hey, with my `go` utility (http://www.computerc...for-go-utility/) you can replace this code with one line:

Up
go [_1fu_2fu]
Down
go [_1fd_2fd]

Hard to read but easy to write!

As for me, I prefer another command

go [_1[l>1a>1ru]d^1fd]50

to build walled stairs 50 blocks up. Really cool to dig stairs in Netherworld, ghasts don't see you =)