1. Wiki
  2. /Items
  3. /minecraft:storage_weight_modifier

minecraft:storage_weight_modifier

Don't want to write this by hand? GodCraft sets minecraft:storage_weight_modifier for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
weight_in_storage_iteminteger4The 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
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more