The InventoryItemEventOptions interface in @minecraft/server.
Interface in @minecraft/server
import type { InventoryItemEventOptions } from '@minecraft/server';Properties
Section titled “Properties”allowedSlots
Section titled “allowedSlots”optional
allowedSlots?: number[];excludeItems
Section titled “excludeItems”optional
excludeItems?: string[];excludeTags
Section titled “excludeTags”optional
excludeTags?: string[];ignoreQuantityChange
Section titled “ignoreQuantityChange”optional
ignoreQuantityChange?: boolean;includeItems
Section titled “includeItems”optional
includeItems?: string[];includeTags
Section titled “includeTags”optional
includeTags?: string[];inventoryType
Section titled “inventoryType”optional
inventoryType?: PlayerInventoryType;Types