An interface that is passed into @minecraft/Server.EntityItemPickupAfterEventSignal.subscribe and @minecraft/Server.EntityItemPickupBeforeEventSignal.subscribe that filters out which events are passed to the provided callback.

interface EntityItemPickupEventOptions {
    entityFilter?: EntityFilter;
    itemFilter?: ItemFilter;
}

Properties

entityFilter?: EntityFilter

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

itemFilter?: ItemFilter

If this value is set, this event will only fire if an item in the event matches.