@minecraft/server / InventoryItemEventOptions
Interface: InventoryItemEventOptions ​
Defined in: @minecraft/server/index.d.ts:24020
Contains additional filtering options for inventory item events.
Properties ​
allowedSlots? ​
optionalallowedSlots?:number[]
Defined in: @minecraft/server/index.d.ts:24028
Remarks ​
The slot indexes to consider. Values should be positive numbers. If not specified, all slots are considered.
Bounds: [0, 1000]
excludeItems? ​
optionalexcludeItems?:string[]
Defined in: @minecraft/server/index.d.ts:24034
Remarks ​
The names for the items to exclude.
excludeTags? ​
optionalexcludeTags?:string[]
Defined in: @minecraft/server/index.d.ts:24040
Remarks ​
The item tags to exclude.
ignoreQuantityChange? ​
optionalignoreQuantityChange?:boolean
Defined in: @minecraft/server/index.d.ts:24048
Remarks ​
Flag to specify to ignore quantity changes only. True to ignore quantity changes, false to not ignore quantity changes.
includeItems? ​
optionalincludeItems?:string[]
Defined in: @minecraft/server/index.d.ts:24054
Remarks ​
The item names to consider.
includeTags? ​
optionalincludeTags?:string[]
Defined in: @minecraft/server/index.d.ts:24060
Remarks ​
The item tags to consider.
inventoryType? ​
optionalinventoryType?:PlayerInventoryType
Defined in: @minecraft/server/index.d.ts:24066
Remarks ​
The player inventory type to consider.