Skip to content

Class

CraftingIngredient

Generated GDScript class reference for ItemVault.CraftingIngredient.

Status
Current
Version
v1.1
Source updated
2026-09-12
Generated on
2026-10-12

One line of a crafting recipe: a real Item Vault item identity plus a quantity. The 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. item_definition is an optional authoring-time reference to the real definition resource. When set, validation fails closed if its id disagrees with 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 item_id.
is_validMethod
to_dictMethod
from_dictMethod