Documentation
location
typePaper
A position in a world.
Properties 9
location.x: number
read-onlyPaper
X coordinate.
location.y: number
read-onlyPaper
Y coordinate.
location.z: number
read-onlyPaper
Z coordinate.
location.yaw: number
read-onlyPaper
Horizontal rotation.
location.pitch: number
read-onlyPaper
Vertical rotation.
location.world: world
read-onlyPaper
The world.
location.block: block
read-onlyPaper
The block at this position.
location.highest: block
read-onlyPaper
The highest solid block in this column.
The middle of the block this location is in.
Methods 4
A new location moved by the given amounts.
True if the location is inside the box between two corners. A simple region check.
Entities within a radius of this location.
Distance to another location in the same world.