Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Extends
Waypoint that points to a fixed location in the world. Unlike entity waypoints, location waypoints always remain valid and their position can be updated.
Methods
constructor
new LocationWaypoint(dimensionLocation: DimensionLocation, textureSelector: WaypointTextureSelector, color?: RGB)
Parameters
- dimensionLocation: DimensionLocation
- textureSelector: WaypointTextureSelector
- color?: RGB =
null
Returns LocationWaypoint
Notes:
- This function can throw errors.
setDimensionLocation
setDimensionLocation(dimensionLocation: DimensionLocation): void
Updates the dimension and location that this waypoint points to.
Parameters
dimensionLocation: DimensionLocation
The new @minecraft/server.DimensionLocation (dimension and coordinates) for the waypoint.
Notes:
- This function can't be called in restricted-execution mode.