Crab.getPosition()

From 8x9craft
Jump to: navigation, search
function getPosition(): Vector3i

Get crab's position.

Returns: crab's current world position.

Examples

// Say your position
var pos = crab.getPosition();
crab.say("I'm at position: x = " + pos.x + ", y = " + pos.y + ", z = " + pos.z);

See also