Skip to content

@minecraft/server


@minecraft/server / WaypointTextureBounds

Interface: WaypointTextureBounds ​

Defined in: @minecraft/server/index.d.ts:25118

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

Properties ​

lowerBound ​

lowerBound: number

Defined in: @minecraft/server/index.d.ts:25127

Remarks ​

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.

Minimum Value: 0


texture ​

texture: CustomTexture | WaypointTexture

Defined in: @minecraft/server/index.d.ts:25134

Remarks ​

The WaypointTexture or CustomTexture to display within this distance range.


upperBound? ​

optional upperBound?: number

Defined in: @minecraft/server/index.d.ts:25144

Remarks ​

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.

Minimum Value: 0