Skip to main content

Interface: EntityRaycastOptions

Contains additional options for an entity raycast operation.

Extends

Properties

excludeFamilies?

optional excludeFamilies: string[]

Remarks

Excludes entities that match one or more of the specified families.

Inherited from

EntityFilter . excludeFamilies


excludeGameModes?

optional excludeGameModes: GameMode[]

Remarks

Excludes entities if have a specific gamemode that matches the specified gamemode.

Inherited from

EntityFilter . excludeGameModes


excludeNames?

optional excludeNames: string[]

Remarks

Excludes entities that have a name that match one of the specified values.

Inherited from

EntityFilter . excludeNames


excludeTags?

optional excludeTags: string[]

Remarks

Excludes entities with a tag that matches one of the specified values.

Inherited from

EntityFilter . excludeTags


excludeTypes?

optional excludeTypes: string[]

Remarks

Excludes entities if they are one of the specified types.

Inherited from

EntityFilter . excludeTypes


families?

optional families: string[]

Remarks

If specified, includes entities that match all of the specified families.

Inherited from

EntityFilter . families


gameMode?

optional gameMode: GameMode

Remarks

If specified, includes entities with a gamemode that matches the specified gamemode.

Inherited from

EntityFilter . gameMode


ignoreBlockCollision?

Beta

optional ignoreBlockCollision: boolean

Remarks

If true, blocks will not be considered as blocks that 'stop' the raycast.


includeLiquidBlocks?

Beta

optional includeLiquidBlocks: boolean

Remarks

If true, liquid blocks will be considered as blocks that 'stop' the raycast.


includePassableBlocks?

Beta

optional includePassableBlocks: boolean

Remarks

If true, passable blocks like vines and flowers will be considered as blocks that 'stop' the raycast.


maxDistance?

optional maxDistance: number

Remarks

Maximum distance, in blocks, to process the raycast.


maxHorizontalRotation?

optional maxHorizontalRotation: number

Remarks

If specified, will only include entities that have at most this horizontal rotation.

Inherited from

EntityFilter . maxHorizontalRotation


maxLevel?

optional maxLevel: number

Remarks

If defined, only players that have at most this level are returned.

Inherited from

EntityFilter . maxLevel


maxVerticalRotation?

optional maxVerticalRotation: number

Remarks

If specified, only entities that have at most this vertical rotation are returned.

Inherited from

EntityFilter . maxVerticalRotation


minHorizontalRotation?

optional minHorizontalRotation: number

Remarks

If specified, will only include entities that have at a minimum this horizontal rotation.

Inherited from

EntityFilter . minHorizontalRotation


minLevel?

optional minLevel: number

Remarks

If defined, only players that have at least this level are returned.

Inherited from

EntityFilter . minLevel


minVerticalRotation?

optional minVerticalRotation: number

Remarks

If specified, will only include entities that have at least this vertical rotation.

Inherited from

EntityFilter . minVerticalRotation


name?

optional name: string

Remarks

Includes entities with the specified name.

Inherited from

EntityFilter . name


propertyOptions?

Beta

optional propertyOptions: EntityQueryPropertyOptions[]

Inherited from

EntityFilter . propertyOptions


scoreOptions?

optional scoreOptions: EntityQueryScoreOptions[]

Remarks

Gets/sets a collection of EntityQueryScoreOptions objects with filters for specific scoreboard objectives.

Inherited from

EntityFilter . scoreOptions


tags?

optional tags: string[]

Remarks

Includes entities that match all of the specified tags.

Inherited from

EntityFilter . tags


type?

optional type: string

Remarks

If defined, entities that match this type are included.

Inherited from

EntityFilter . type