@minecraft/server / ContainerRules
Interface: ContainerRules ​
Defined in: @minecraft/server/index.d.ts:22872
Rules that if broken on container operations will throw an error.
Properties ​
allowedItems ​
allowedItems:
string[]
Defined in: @minecraft/server/index.d.ts:22879
Remarks ​
Defines the items that are exclusively allowed in the container. If empty all items are allowed in the container.
allowNestedStorageItems ​
allowNestedStorageItems:
boolean
Defined in: @minecraft/server/index.d.ts:22886
Remarks ​
Determines whether other storage items can be placed into the container.
bannedItems ​
bannedItems:
string[]
Defined in: @minecraft/server/index.d.ts:22892
Remarks ​
Defines the items that are not allowed in the container.
weightLimit? ​
optionalweightLimit?:number
Defined in: @minecraft/server/index.d.ts:22900
Remarks ​
Defines the maximum allowed total weight of all items in the storage item container. If undefined container has no weight limit.