CC: Tweaked

CC: Tweaked

59M Downloads

Strongly recommend add turtle.detectLeft() and turtle.detectRight()

wuyoui opened this issue · 4 comments

commented

Strongly recommend add turtle.detectLeft() and turtle.detectRight()
It‘s reasonable and useful

commented
function turtle.detectLeft()
  turtle.turnLeft()
  local detected = turtle.detect()
  turtle.turnRight()
  return detected
end
commented

Afraid I'm not going to add this. I want to keep the turtle commands consistent (for instance, if there's a detectLeft we should also have an inspectLeft, suckLeft, digLeft, etc...), and definitely don't want to go down that route.

commented

Also, it's really easy to implement in user code.

commented