Posted 19 December 2015 - 10:09 PM
I am trying to make program (for really reason) where a turtle goes forward, but when it detects a block in front of it, it goes up until it does not detect the block anymore. The problem is, when I run the program, it just goes forward and doesn't go up when it's supposed to.
Please help if you can.
term.clear()
term.setCursorPos(1,1)
detect = turtle.detect()
if detect == false then
turtle.forward(1)
os.reboot()
else
turtle.up(1)
os.reboot()
end
Please help if you can.