gpsd (RPC API)#

Errors are the following:

class os.rpc.gps.errors#
UNABLE: 1#

Unable to locate the device.

Functions are the following:

os.rpc.gps.locate()#

Locate the device on Minecraft’s three-dimensional cartesian coordinates system, using the GPS protocol or the position set manually.

Returns:

The table containing the coordinates.

Return type:

table