Difference between revisions of "Turtle Stairbuilder (tutorial)"

From ComputerCraft Wiki
Jump to: navigation, search
(categorized, moved author section to talk page)
(Programming your Stairbuilder)
Line 3: Line 3:
 
Welcome to this [[:Category:Tutorials|tutorial]] about Turtle Stairbuilders.
 
Welcome to this [[:Category:Tutorials|tutorial]] about Turtle Stairbuilders.
  
==Programming your Stairbuilder==
+
Those are GREAT shots Ash  I love everyone and you mearird the perfect person for you! I think you are a dynamic dueo! THanks for sharing these, so cute!!! I love that baby  Tonight when we were out to eat, Lindsay pointed out this little girl who literally looked just like me when I was a little girl it was uncanny! These shots made me think of that, because of the  beautiful blue eyes of that baby!
In this code we will program a stairbuilder that simply goes up a flat surface, when the wall ends it will create a stairway coming off of the wall
+
 
+
First we want it to determine the top of the wall
+
<code>
+
  while turtle.detect() do
+
  turtle.up()
+
end
+
</code>
+
next we want it to decend one block and create the staircase
+
<code>
+
while turtle.detect() do
+
  turtle.up()
+
end
+
turtle.down()
+
turtle.back()
+
turtle.place()
+
while not turtle.detectDown() do
+
  turtle.back()
+
  turtle.down()
+
  turtle.place()
+
end
+
print("Staircase Built")
+
</code>
+
And there's your code!
+
  
 
==Uses==
 
==Uses==

Revision as of 08:37, 17 July 2012

Introduction

Welcome to this tutorial about Turtle Stairbuilders.

Those are GREAT shots Ash I love everyone and you mearird the perfect person for you! I think you are a dynamic dueo! THanks for sharing these, so cute!!! I love that baby Tonight when we were out to eat, Lindsay pointed out this little girl who literally looked just like me when I was a little girl it was uncanny! These shots made me think of that, because of the beautiful blue eyes of that baby!

Uses

With a little modification this can be used in ravines to go up or down. Very useful in the nether if your stuck or are fighting off a ghast. Can be used in multiplayer RPG games and such.