faceCoord

fun faceCoord(x: Int, z: Int, instant: Boolean = false)

Deprecated

Deprecated. Use setFaceCoord(x, z, instant) for consistency.

Replace with

setFaceCoord(x, z, instant)

Faces the center of the absolute coordinate provided.

Parameters

x

the absolute x coordinate to turn towards

z

the absolute z coordinate to turn towards

instant

whether to turn towards the coord instantly without any turn anim, or gradually. The instant property is typically used when spawning in NPCs; While the low to high resolution change does support a direction, it only supports in increments of 45 degrees - so utilizing this extended info blocks allows for more precise control over it.