@minecraft/server
    Preparing search index...

    Interface EntityEventOptionsBeta

    Contains optional parameters for registering an entity event.

    interface EntityEventOptions {
        entities?: Entity[];
        entityTypes?: 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.