Edit

EntityItemPickupEventOptions Interface

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.

Properties

entityFilter

entityFilter?: EntityFilter;

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

Type: EntityFilter

itemFilter

itemFilter?: ItemFilter;

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

Type: ItemFilter