Skip to content

Class

CraftingRecipe

Generated GDScript class reference for ItemVault.CraftingRecipe.

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

Immutable-by-convention recipe defined by real Item Vault item identity. Pure data: inputs/outputs reference stable [ItemDefinition.id] values, with no live inventory required. Fail-closed rules enforced by is_valid() and from_dict(): empty recipe id / inputs / outputs non-positive quantities, null ingredients ingredient definition reference mismatching its id unsupported schema version Unknown item ids are a database-level check (validate_item_ids()), not a structural one.

Source: addons/item_vault/crafting/recipes/crafting_recipe.gd

Syntax

class CraftingRecipe extends Resource

Members

NameKindSummary
SCHEMA_VERSIONFieldSerialized shape version; loaders fail closed on anything else.
idPropertyStable recipe identity. Never a resource path.
display_namePropertyPlayer-facing name shown in UI.
inputsPropertyExact required ingredients (per single craft).
outputsPropertyExact produced outputs (per single craft). May not be empty.
station_tagsPropertyOptional station/tag requirements (workbench ids, unlock tags, ...) that consuming games may interpret.
schema_versionPropertySerialization schema version; loaders fail closed on unsupported values.
is_validMethod
validate_item_idsMethod
to_dictMethod
from_dictMethod