@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? ​
optionalshowDead?: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? ​
optionalshowHidden?: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? ​
optionalshowInvisible?: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? ​
optionalshowSneaking?: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? ​
optionalshowSpectator?: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? ​
optionalshowSpectatorToSpectator?: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.