Skip to content

@minecraft/server


@minecraft/server / EntityDataDrivenTriggerEventOptions

Interface: EntityDataDrivenTriggerEventOptions ​

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

Specifies additional filters that are used in registering a data driven trigger event for entities.

Properties ​

entities? ​

optional entities?: Entity[]

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

Remarks ​

If this value is set, this event will only fire for entities that match the entities within this collection.


entityTypes? ​

optional entityTypes?: string[]

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

Remarks ​

If this value is set, this event will only fire if the impacted entities' type matches this parameter.


eventTypes? ​

optional eventTypes?: string[]

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

Remarks ​

If this value is set, this event will only fire if the impacted triggered event matches one of the events listed in this parameter.