Skip to content

@minecraft/server


@minecraft/server / PlayerVisibilityRules

Interface: PlayerVisibilityRules ​

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

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

Extends ​

Properties ​

showDead? ​

optional showDead?: boolean

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

Remarks ​

Controls whether the waypoint is shown when the tracked entity is dead. If undefined, defaults to true.

Inherited from ​

EntityVisibilityRules.showDead


showHidden? ​

optional showHidden?: boolean

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

Remarks ​

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


showInvisible? ​

optional showInvisible?: boolean

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

Remarks ​

Controls whether the waypoint is shown when the tracked entity is invisible. If undefined, defaults to true.

Inherited from ​

EntityVisibilityRules.showInvisible


showSneaking? ​

optional showSneaking?: boolean

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

Remarks ​

Controls whether the waypoint is shown when the tracked entity is sneaking. If undefined, defaults to true.

Inherited from ​

EntityVisibilityRules.showSneaking


showSpectator? ​

optional showSpectator?: boolean

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

Remarks ​

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


showSpectatorToSpectator? ​

optional showSpectatorToSpectator?: boolean

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

Remarks ​

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