API to get facing (or direction) for turtle
IceCola97 opened this issue ยท 2 comments
May add a function called 'turtle.getFacing()', return the current facing direction of turtle.
I checked the source code, and my implement code like this:
// projects/common/.../turtle/apis/TurtleAPI.java
@LuaFunction
public final String getFacing() throws LuaException {
return turtle.getDirection().toString();
}
Duplicate of #788
Duplicate of #788
ok, I'll close the issue