minecraft:storage_weight_limit for you with a switch.Get GodCraftOverview
minecraft:storage_weight_limit is an item component: it goes in the components object of a custom item. Sets how much total weight a storage item can hold. Each stored item counts by its own weight.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
max_weight_limit | integer | 64 | The highest total weight allowed inside, up to 64.Range: … to 64 |
Example
Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):
BP/items/<name>.json
{
"minecraft:storage_weight_limit": {
"max_weight_limit": 64
}
}