Draft — Unreleased:This page is in active development. APIs, class names, and behavior may change before the release is finalized. Use it as a preview of what's coming — not as a stable integration target.
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 |
Source
addons/item_vault/items/item_definition.gd
Plugin docs root:gdscript/plugins/item_vault_dev/addons/item_vault/guides