@minecraft/server / ContainerRulesErrorReason
Enumeration: ContainerRulesErrorReason ​
Defined in: @minecraft/server/index.d.ts:235
Reasons that the @minecraft/server.ContainerRulesError was thrown.
Enumeration Members ​
BannedItem ​
BannedItem:
"BannedItem"
Defined in: @minecraft/server/index.d.ts:242
Remarks ​
Thrown when trying to add item that was defined in ContainerRules.bannedItems.
NestedStorageItem ​
NestedStorageItem:
"NestedStorageItem"
Defined in: @minecraft/server/index.d.ts:250
Remarks ​
Thrown when trying to add item with Storage Item component to container with ContainerRules.allowNestedStorageItems set to false.
NotAllowedItem ​
NotAllowedItem:
"NotAllowedItem"
Defined in: @minecraft/server/index.d.ts:257
Remarks ​
Thrown when trying to add item not defined in non-empty ContainerRules.allowedItems.
OverWeightLimit ​
OverWeightLimit:
"OverWeightLimit"
Defined in: @minecraft/server/index.d.ts:264
Remarks ​
Thrown when trying to add item that pushed the containers weight over the ContainerRules.weightLimit.
ZeroWeightItem ​
ZeroWeightItem:
"ZeroWeightItem"
Defined in: @minecraft/server/index.d.ts:272
Remarks ​
Thrown when trying to add item with zero weight defined by the Storage Weight Modifier component to container with a defined ContainerRules.weightLimit