Storage Item¶
文档版本:1.21.50.25
Storage Items can be used by other components to store other items within this item.
架构¶
minecraft:storage_item:
{
boolean "allow_nested_storage_items" : opt
array "allowed_items" : opt
{
string "<any array element>" : opt
}
array "banned_items" : opt
{
string "<any array element>" : opt
}
integer "max_slots" : opt
integer "max_weight_limit" : opt
integer "weight_in_storage_item" : opt
}
allow_nested_storage_items
:boolean- Determines whether another Storage Item is allowed inside of this item. Default is true.
allowed_items
:array- List of items that are exclusively allowed in this Storage Item. If empty all items are allowed.
allowed_items
<any array element>
:string
banned_items
:array- List of items that are not allowed in this Storage Item.
banned_items
<any array element>
:string
max_slots
:integer- The maximum number of different item stacks. Maximum is 64. Default is 64.
max_weight_limit
:integer- The maximum allowed weight of the sum of all contained items. Maximum is 64. Default is 64.
weight_in_storage_item
:integer- The weight of this item when inside another Storage Item. Default is 4. 0 means item is not allowed in another Storage Item.