Jump to content




Streetmaker

turtle lua

6 replies to this topic

#1 xsupergamer2

  • New Members
  • 2 posts

Posted 28 March 2012 - 06:40 AM

hey guys i have bin making programs for the turtles and here is my newest one:
a Streetmaker!!!
here is the code:
lua
=
print("How many times?")
a=tonumber(read())
x=1
while x<=a do
turtle.digDown()
turtle.placeDown()
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
turtle.digDown()
turtle.placeDown()
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
turtle.digDown()
turtle.placeDown()
turtle.forward()
turtle.turnLeft()
turtle.forward()
turtle.forward()
turtle.turnRight()
x=x+1
end


#2 Ian-Moone

    The Germ

  • New Members
  • 124 posts
  • LocationLiverpool (no I am not a Scouser Im form Holland)

Posted 28 March 2012 - 08:45 PM

im sorry
but
no pics no clicks

#3 Ludburghmdm

  • New Members
  • 67 posts

Posted 28 March 2012 - 10:42 PM

It works! But there is no block changing function...so i always have to refill the slot.

#4 mister_gaga

  • New Members
  • 2 posts

Posted 31 March 2012 - 02:31 PM

I get a :2: attempt to call nil...

#5 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 31 March 2012 - 03:03 PM

This is a Turtle Program. Topic moved to the appropriate section.

#6 rjwboys

  • New Members
  • 8 posts

Posted 28 September 2012 - 03:38 AM

View PostVandie, on 28 March 2012 - 08:45 PM, said:

im sorry
but
no pics no clicks
your crazy there is nothing to click and if you can read the code you know what it is doing

#7 Heroj04

  • Members
  • 32 posts

Posted 28 September 2012 - 12:00 PM

You could proberally use a for loop here





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users