One line of a crafting recipe: a real Item Vault item identity plus a quantity. The [member item_id] is the stable [ItemDefinition.id] from the Item Vault item database — the same identity used by stacks, containers, saves, and filters. Recipes never hold live inventory nodes or mutable item instances; they describe requirements/outputs by identity alone. [member item_definition] is an optional authoring-time reference to the real definition resource. When set, validation fails closed if its id disagrees with [member item_id].
Source: addons/item_vault/crafting/recipes/crafting_ingredient.gd
Syntax
class CraftingIngredient extends ResourceMembers
| Name | Kind | Summary |
|---|---|---|
SCHEMA_VERSION | Field | Schema version of the serialized shape. Bump on breaking changes; loaders fail closed on unsupported versions. |
item_id | Property | Stable Item Vault item identity (ItemDefinition.id). Never a resource path. |
quantity | Property | Units required/produced per craft. |
item_definition | Property | Optional real definition reference for editor authoring and display. Validation fails closed when set but mismatching [member item_id]. |
is_valid | Method | |
to_dict | Method | |
from_dict | Method |