@minecraft/server
    Preparing search index...

    Interface EntityDataDrivenTriggerEventOptionsBeta

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

    interface EntityDataDrivenTriggerEventOptions {
        entities?: Entity[];
        entityTypes?: string[];
        eventTypes?: string[];
    }
    Index

    Properties

    entities?: Entity[]

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

    entityTypes?: string[]

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

    eventTypes?: string[]

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