Posted 27 January 2013 - 04:54 PM
Title: Code for detecting blocks
Hello, I am new to computer craft and was wondering if there was any way I could make a program that would allow my turtle to turn right when it hit a wall but keep running afterward?
Hello, I am new to computer craft and was wondering if there was any way I could make a program that would allow my turtle to turn right when it hit a wall but keep running afterward?
turtle.digDown() --- when there is no block in front of it
turtle.placeDown()
turtle.forward()
turtle.turnRight() --when it hits a wall