I-edit

WaypointTextureBounds Interface

Caution

This interface is still in pre-release. Its signature may change or it may be removed in future releases.

Defines a texture and the distance range in which it should be displayed. Used within a @minecraft/server.WaypointTextureSelector to create distance-based texture switching.

Properties

lowerBound

lowerBound: number;

The lower distance bound for this texture. The texture is displayed when the distance to the waypoint is greater than this value. Value must be greater than or equal to 0.

Type: number

Notes:

  • This property has a minimum bound of 0

texture

texture: CustomTexture | WaypointTexture;

The @minecraft/server.WaypointTexture or @minecraft/server.CustomTexture to display within this distance range.

Type: CustomTexture | WaypointTexture

upperBound

upperBound?: number;

The upper distance bound for this texture. The texture is displayed when the distance to the waypoint is less than or equal to this value. If undefined, there is no upper limit. Value must be greater than or equal to 0.

Type: number

Notes:

  • This property has a minimum bound of 0