Skip to content

@minecraft/server


@minecraft/server / EntityRaycastOptions

Interface: EntityRaycastOptions ​

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

Contains additional options for an entity raycast operation.

Extends ​

Properties ​

excludeFamilies? ​

optional excludeFamilies?: string[]

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

Remarks ​

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

Inherited from ​

EntityFilter.excludeFamilies


excludeGameModes? ​

optional excludeGameModes?: GameMode[]

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

Remarks ​

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

Inherited from ​

EntityFilter.excludeGameModes


excludeNames? ​

optional excludeNames?: string[]

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

Remarks ​

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

Inherited from ​

EntityFilter.excludeNames


excludeTags? ​

optional excludeTags?: string[]

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

Remarks ​

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

Inherited from ​

EntityFilter.excludeTags


excludeTypes? ​

optional excludeTypes?: string[]

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

Remarks ​

Excludes entities if they are one of the specified types.

Inherited from ​

EntityFilter.excludeTypes


families? ​

optional families?: string[]

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

Remarks ​

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

Inherited from ​

EntityFilter.families


gameMode? ​

optional gameMode?: GameMode

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

Remarks ​

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

Inherited from ​

EntityFilter.gameMode


ignoreBlockCollision? ​

optional ignoreBlockCollision?: boolean

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

Remarks ​

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


includeLiquidBlocks? ​

optional includeLiquidBlocks?: boolean

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

Remarks ​

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


includePassableBlocks? ​

optional includePassableBlocks?: boolean

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

Remarks ​

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


maxDistance? ​

optional maxDistance?: number

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

Remarks ​

Maximum distance, in blocks, to process the raycast.


maxHorizontalRotation? ​

optional maxHorizontalRotation?: number

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

Remarks ​

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

Inherited from ​

EntityFilter.maxHorizontalRotation


maxLevel? ​

optional maxLevel?: number

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

Remarks ​

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

Inherited from ​

EntityFilter.maxLevel


maxVerticalRotation? ​

optional maxVerticalRotation?: number

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

Remarks ​

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

Inherited from ​

EntityFilter.maxVerticalRotation


minHorizontalRotation? ​

optional minHorizontalRotation?: number

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

Remarks ​

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

Inherited from ​

EntityFilter.minHorizontalRotation


minLevel? ​

optional minLevel?: number

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

Remarks ​

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

Inherited from ​

EntityFilter.minLevel


minVerticalRotation? ​

optional minVerticalRotation?: number

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

Remarks ​

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

Inherited from ​

EntityFilter.minVerticalRotation


name? ​

optional name?: string

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

Remarks ​

Includes entities with the specified name.

Inherited from ​

EntityFilter.name


propertyOptions? ​

optional propertyOptions?: EntityQueryPropertyOptions[]

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

Inherited from ​

EntityFilter.propertyOptions


scoreOptions? ​

optional scoreOptions?: EntityQueryScoreOptions[]

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

Remarks ​

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

Inherited from ​

EntityFilter.scoreOptions


tags? ​

optional tags?: string[]

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

Remarks ​

Includes entities that match all of the specified tags.

Inherited from ​

EntityFilter.tags


type? ​

optional type?: string

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

Remarks ​

If defined, entities that match this type are included.

Inherited from ​

EntityFilter.type