kind regards
james
rednet.open("right")
s, m = rednet.receive()
if m == "home" then
for i = 1, 38 do
turtle.up()
end
end
if m == "dig" then
for i = 1, 19 do
turtle.digDown()
turtle.down()
turtle.digDown()
turtle.down()
end
end
if m == "back" then
turtle.back()
end
end()
if m == "left" then
turtle.left()
turtle.forward()
turtle.right()
end
end
if m == "right" then
turtle.right()
turtle.forward()
turtle.left()
end
end
if m == "forward" then
turtle.forward()
end
rednet.close("right")
if m == "right" then
turtle.right()
turtle.forward()
turtle.left()
end
end
To:
if m == "right" then
turtle.right()
turtle.forward()
turtle.left()
end
You'd also want to look into the 'ifelse' statements.
if m == "back" then
turtle.back()
end
end()
remove the parentheses:
if m == "back" then
turtle.back()
end
Edit: also, you've got a typo (I think) here:
You'd also want to look into the 'ifelse' statements.
rednet.open("right")
s, m = rednet.receive()
if m == "home" then
for i = 1, 38 do
turtle.up()
end
if m == "dig" then
for i = 1, 19 do
turtle.digDown()
turtle.down()
turtle.digDown()
turtle.down()
end
if m == "back" then
turtle.back()
end
if m == "left" then
turtle.left()
turtle.forward()
turtle.right()
end
if m == "right" then
turtle.right()
turtle.forward()
turtle.left()
end
if m == "forward" then
turtle.forward()
end
rednet.close("right")
I realize that I didn't help at all, but that's why we're here, is to help beginners. I started programming just a few months ago. Now I know Java, C, C#, Objective-C, Lua, and am working on C++. You'll get there a lot faster than you think. :P/>great thanks guys i know its simple but im just getting into these things (i started about 3 hours ago) its working now
Oh my… Is it less shameful if I was typing on my phone? :rolleyes:/>Edit: also, you've got a typo (I think) here:You'd also want to look into the 'ifelse' statements.
lol you too :D/> 'elseif'