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

Streetmaker

Started by xsupergamer2, 28 March 2012 - 05:40 AM
xsupergamer2 #1
Posted 28 March 2012 - 07: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
Ian-Moone #2
Posted 28 March 2012 - 09:45 PM
im sorry
but
no pics no clicks
Ludburghmdm #3
Posted 28 March 2012 - 11:42 PM
It works! But there is no block changing function…so i always have to refill the slot.
mister_gaga #4
Posted 31 March 2012 - 03:31 PM
I get a :2: attempt to call nil…
FuzzyPurp #5
Posted 31 March 2012 - 04:03 PM
This is a Turtle Program. Topic moved to the appropriate section.
rjwboys #6
Posted 28 September 2012 - 04:38 AM
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
Heroj04 #7
Posted 28 September 2012 - 01:00 PM
You could proberally use a for loop here