Reasons that the @minecraft/server.ContainerRulesError was thrown.

Enumeration Members

BannedItem: "BannedItem"

Thrown when trying to add item that was defined in ContainerRules.bannedItems.

NestedStorageItem: "NestedStorageItem"

Thrown when trying to add item with Storage Item component to container with ContainerRules.allowNestedStorageItems set to false.

NotAllowedItem: "NotAllowedItem"

Thrown when trying to add item not defined in non-empty ContainerRules.allowedItems.

OverWeightLimit: "OverWeightLimit"

Thrown when trying to add item that pushed the containers weight over the ContainerRules.weightLimit.

ZeroWeightItem: "ZeroWeightItem"

Thrown when trying to add item with zero weight defined by the Storage Weight Modifier component to container with a defined ContainerRules.weightLimit