Skip to content
Flint
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.

Vertical rotation.

The world.

The block at this position.

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.