minecraft:storage_weight_modifier for you with a switch.Get GodCraftOverview
minecraft:storage_weight_modifier is an item component: it goes in the components object of a custom item. Sets how much space this item takes up when put inside a storage item like a bundle.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
weight_in_storage_item | integer | 4 | The weight of one of this item inside storage. Set it to 0 to keep it out of storage items.Range: 0 to … |
Example
Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):
BP/items/<name>.json
{
"minecraft:storage_weight_modifier": {
"weight_in_storage_item": 4
}
}