Beta
Beta
BannedThrown when trying to add item that was defined in ContainerRules.bannedItems.
Beta
NestedThrown when trying to add item with Storage Item
component
to container with ContainerRules.allowNestedStorageItems set to false.
Beta
NotThrown when trying to add item not defined in non-empty ContainerRules.allowedItems.
Beta
OverThrown when trying to add item that pushed the containers weight over the ContainerRules.weightLimit.
Beta
ZeroThrown when trying to add item with zero weight defined by
the Storage Weight Modifier
component to container with a
defined ContainerRules.weightLimit
Reasons that the @minecraft/server.ContainerRulesError was thrown.