Skip to content
ct

Class

CraftingIngredient

Generated GDScript class reference for ItemVault.CraftingIngredient.

Status
Current
Version
v1.0
Updated
2026-07-31

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 Resource

Members

NameKindSummary
SCHEMA_VERSIONFieldSchema version of the serialized shape. Bump on breaking changes; loaders fail closed on unsupported versions.
item_idPropertyStable Item Vault item identity (ItemDefinition.id). Never a resource path.
quantityPropertyUnits required/produced per craft.
item_definitionPropertyOptional real definition reference for editor authoring and display. Validation fails closed when set but mismatching [member item_id].
is_validMethod
to_dictMethod
from_dictMethod