Strongly recommend add turtle.detectLeft() and turtle.detectRight()
wuyoui opened this issue · 4 comments
Strongly recommend add turtle.detectLeft()
and turtle.detectRight()
It‘s reasonable and useful
function turtle.detectLeft()
turtle.turnLeft()
local detected = turtle.detect()
turtle.turnRight()
return detected
end
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.
Thanks for your reply,Also I know it's easy to implement in user code,but if I want to know what's on both sides,turtle need to turn&turn even if there is nothing,It wasted a lot of time.
Unfortunately,it did not planned,I have implemented it using javassist for myself,just detect and inspect,As for suck and dig,it's illogical,and doesn't fit the player's logic.