Skip to content

Adding HeldBag behavior

Dana edited this page Apr 3, 2026 · 4 revisions

Important

Make sure to familiarize yourself with the library's syntax: Attribute‐based Matching

Allows you to make custom bag/backpack that can store items.

Add the following behavior:

"behaviors": [
    {
        "name": "AttributeRenderingLibrary.HeldBag",
        "properties": {
            // add properties here
        }
    }
]

properties

Note

Everything listed below can only be used in behavior's own properties

quantitySlots

Slot count

Example:

"quantitySlots": {
    "key-value": 2,
    "key2-value2": 4
}
slotBgColor

Background color for slots

Example:

"slotBgColor": {
    "key-value": "#99FFFF",
    "key2-value2": "#FF88CC"
}
storageFlags

Determines which items can be put into a bag

Example:

"storageFlags": {
    "key-value": 128,
    "key2-value2": 513
}
tags

Determines with which tags items can be put into a bag

Example:

"tags": {
    "key-value": ["tag1","tag2","tag3"],
    "key2-value2": ["tag1","tag2"]
}

Clone this wiki locally