Edit

PlayerVisibilityRules Interface

Extends

Controls when a waypoint is visible based on player-specific states. Extends @minecraft/server.EntityVisibilityRules with additional rules for player-only states like hidden mode and spectator mode.

Properties

showHidden

showHidden?: boolean;

Controls whether the waypoint is shown when the tracked player is hidden. If undefined, defaults to true.

Type: boolean

showSpectator

showSpectator?: boolean;

Controls whether the waypoint is shown when the tracked player is in spectator mode. If undefined, defaults to true.

Type: boolean

showSpectatorToSpectator

showSpectatorToSpectator?: boolean;

Controls whether the waypoint is shown when a spectator is viewing another spectator player. If undefined, defaults to true.

Type: boolean