Designer: Inventory
Earlier edition reference / Current 0.86.4.0 property paths > p. 329
An inventory definition describes an item. It does not itself say how many the player owns. Use inventory_count, has_inventory and the inventory actions to change bags.
Reference shape: inventory.key.property_path.
The example ID is illustrative. Choose an existing record in your own project; direct camera, spawn and objective lookups must be unambiguous.
| Property path | Type / access | Purpose and limits |
|---|---|---|
| id | text R / Definition | Stable inventory item ID. Rename with the editor so references can be updated. |
| name | text W / Definition | Inventory item display name. |
| description | text W / Definition | Inventory item description. |
| category | text W / Definition | Inventory category. |
| enabled | boolean W / Definition | Whether this inventory item is enabled. |
| iconAssetId | record W / Definition | Inventory icon asset. Reference kind: assets. |
| icon | text W / Definition | Legacy/direct icon path. |
| iconAnimated | boolean W / Definition | Use animated inventory icon frames. |
| iconFps | number W / Definition | Animated icon frames per second. |
| iconLoop | boolean W / Definition | Loop animated icon frames. |
| stackable | boolean W / Definition | Whether item amounts stack. |
| maxStack | integer W / Definition | Maximum amount in one stack. |
| consumeOnUse | boolean W / Definition | Remove the item after a successful use. |
| value | number W / Definition | Game-defined item value. |
| weight | number W / Definition | Game-defined item weight. |
| rarity | text W / Definition | Game-defined rarity label. |
