Posted 09 March 2014 - 09:25 AM
Before telling you my problem, I just want to warn you that my English isn't very good… ^^'
I'm making my own program to replace a wall with a mining turtle, but I could only make a wall of 64 blocks if I didn't change the turtle's selection, so I made a function to change the selection when there is only ONE block in the selection, here's my code, but they say there's a problem :(/> .
function selection()
turtle.select(2)
turtle.getItemCount(2) == 1
while true do
turtle.select(3)
turtle.getItemCount(3) == 1
while true do
turtle.select(4)
end
end
end
They say that there's a mistake at Ln 3, can you help me, please ?
I'm making my own program to replace a wall with a mining turtle, but I could only make a wall of 64 blocks if I didn't change the turtle's selection, so I made a function to change the selection when there is only ONE block in the selection, here's my code, but they say there's a problem :(/> .
function selection()
turtle.select(2)
turtle.getItemCount(2) == 1
while true do
turtle.select(3)
turtle.getItemCount(3) == 1
while true do
turtle.select(4)
end
end
end
They say that there's a mistake at Ln 3, can you help me, please ?