Source: addons/item_vault/items/item_definition.gd
Syntax
class ItemDefinition extends ResourceMembers
| Name | Kind | Summary |
|---|---|---|
id | Property | Defines a type of item in the game — the shared vocabulary that both drops and vault depend on. Serialize as a .tres file and reference by the stable `id` field (never by resource path). Stable key used for persistence (e.g. &"iron_ore"). Never a file path. |
display_name | Property | Player-facing name shown in UI. |
icon | Property | Icon displayed in inventory UI and tooltips. |
world_scene | Property | The scene instanced when this item appears in the game world as a pickup/drop. |
max_stack | Property | Maximum quantity per stack (must be > 0). |
weight | Property | Base weight per unit (must be >= 0). |
category | Property | Category used for filtering, slot constraints, etc. |
tags | Property | Arbitrary tags for filtering or game logic. |
is_valid | Method |