Skip to main content

Locations

Create Location​

location.create

A location in a world; yaw and pitch default to 0

InTypeWhat it is
WorldWorldThe world it lies in
XNumberEast-west position
YNumberHeight
ZNumberNorth-south position
Yaw (optional)NumberFacing around the vertical axis, in degrees; 0 when not given
Pitch (optional)NumberFacing up or down, in degrees; 0 when not given
OutTypeWhat it is
ResultLocationThe location

Distance Between Locations​

location.distance

Get the distance between this location and another.

InTypeWhat it is
LocationLocationRepresents a 3-dimensional position in a world.
OtherLocationThe other location
OutTypeWhat it is
ResultNumberthe distance

Mutate Location​

location.mutate

Changes the properties of a Location that are given, the others stay as they are, and gives every property's value after the change

InTypeWhat it is
LocationLocationRepresents a 3-dimensional position in a world.
Direction (optional)VectorSets the yaw and pitch to point in the direction of the vector.
Pitch (optional)FloatSets the pitch of this location, measured in degrees.
World (optional)WorldSets the world that this location resides in
X (optional)NumberSets the x-coordinate of this location
Y (optional)NumberSets the y-coordinate of this location
Yaw (optional)FloatSets the yaw of this location, measured in degrees.
Z (optional)NumberSets the z-coordinate of this location
OutTypeWhat it is
BlockBlockGets the block at the represented location
Block XIntegerGets the floored value of the X component, indicating the block that this location is contained with.
Block YIntegerGets the floored value of the Y component, indicating the block that this location is contained with.
Block ZIntegerGets the floored value of the Z component, indicating the block that this location is contained with.
Chunk LoadedBoolean
DirectionVectorGets a unit-vector pointing in the direction that this Location is facing.
FineBooleanChecks if this position represents a FinePosition.
FiniteBooleanChecks if each component of this position is finite.
GeneratedBooleanChecks if a Chunk has been generated at this location.
PitchFloatGets the pitch of this location, measured in degrees.
WorldWorldGets the world that this location resides in
World LoadedBooleanChecks if world in this location is present and loaded.
XNumberGets the x-coordinate of this location
YNumberGets the y-coordinate of this location
YawFloatGets the yaw of this location, measured in degrees.
ZNumberGets the z-coordinate of this location

Goes on with: Next

Read Location​

location.read

Reads the properties of a Location

InTypeWhat it is
LocationLocationRepresents a 3-dimensional position in a world.
OutTypeWhat it is
BlockBlockGets the block at the represented location
Block XIntegerGets the floored value of the X component, indicating the block that this location is contained with.
Block YIntegerGets the floored value of the Y component, indicating the block that this location is contained with.
Block ZIntegerGets the floored value of the Z component, indicating the block that this location is contained with.
Chunk LoadedBoolean
DirectionVectorGets a unit-vector pointing in the direction that this Location is facing.
FineBooleanChecks if this position represents a FinePosition.
FiniteBooleanChecks if each component of this position is finite.
GeneratedBooleanChecks if a Chunk has been generated at this location.
PitchFloatGets the pitch of this location, measured in degrees.
WorldWorldGets the world that this location resides in
World LoadedBooleanChecks if world in this location is present and loaded.
XNumberGets the x-coordinate of this location
YNumberGets the y-coordinate of this location
YawFloatGets the yaw of this location, measured in degrees.
ZNumberGets the z-coordinate of this location