CC: Tweaked

CC: Tweaked

59M Downloads

API to get facing (or direction) for turtle

IceCola97 opened this issue ยท 2 comments

commented

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();
}
commented

Duplicate of #788

commented

Duplicate of #788

ok, I'll close the issue