Posted 18 March 2014 - 11:15 AM
I am having some difficulty with my code, and I believe it's the for loop. I'm new to lua but I know several other languages, so any help would be great, thanks.
Code:
Code:
- while true do
rednet.open("right")
local id, msg = rednet.receive()
if msg == ("mine") then
turtle.select(1)
turtle.place()
sleep(7)
for i = 1..10 do
turtle.select(i)
turtle.drop()
end
turtle.select(1)
turtle.dig()
end
end