The ContainerRules interface in @minecraft/server.
Interface in @minecraft/server
import type { ContainerRules } from '@minecraft/server';Properties
Section titled “Properties”allowedItems
Section titled “allowedItems”allowedItems: string[];allowNestedStorageItems
Section titled “allowNestedStorageItems”allowNestedStorageItems: boolean;bannedItems
Section titled “bannedItems”bannedItems: string[];weightLimit
Section titled “weightLimit”optional
weightLimit?: number;