Posted 14 September 2012 - 10:41 PM
could some one pls help me with this code i don't know how to get it to work:
function forward(x)
i = 0, x do
turtle.forward()
x=x-1
end
local x
term.write("Please enter how many times: ")
x = read()
print("you entered: "..x)
while input == x do
forward(x)
end
*I want you to be able to say F 23 and then it goes 23 blocks forward and that for each direction
function forward(x)
i = 0, x do
turtle.forward()
x=x-1
end
local x
term.write("Please enter how many times: ")
x = read()
print("you entered: "..x)
while input == x do
forward(x)
end
*I want you to be able to say F 23 and then it goes 23 blocks forward and that for each direction