pathTo

abstract fun pathTo(x: Double, y: Double, z: Double)

Requests that the entity be moved towards the given x, y, and z coordinates.

This may happen immediately, if the current target is the same as or very close to the coordinates. It may also take a while to reach the target, if it is far away.

Parameters

x

the X coordinate to move to

y

the Y coordinate to move to

z

the Z coordinate to move to


open fun pathTo(position: Vec3d)
open fun pathTo(position: Vec3i)
open fun pathTo(position: Position)

Requests that the entity be moved towards the given position.

This may happen immediately, if the current target is the same as or very close to the position. It may also take a while to reach the target, if it is far away.

Parameters

position

the position to move to