Methods

entity:

Method
Parameters
Returns
Description

dx: float dy: float dz: float

None

Move the entity relative to its current position.

x: float y: float z: float

None

Move the entity relative to the origin (teleport).

None

x: float y: float z: float

Get the current position of the entity. Returns individual coordinates x, y, z.

None

None

Delete this entity.

dist: float

Entity[]

Get entities within the specified distance. Within a 3x3 grid of chunks around the entity.

dimension: string x: float y: float z: float

None

Transport this entity to coordinates (x,y,z) in the dimension specified.

The x, y, and z fields are optional and default to 0.

Last updated