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 ResourceMembers
| Name | Kind | Summary |
|---|---|---|
SCHEMA_VERSION | Field | Serialized shape version; loaders fail closed on anything else. |
id | Property | Stable recipe identity. Never a resource path. |
display_name | Property | Player-facing name shown in UI. |
inputs | Property | Exact required ingredients (per single craft). |
outputs | Property | Exact produced outputs (per single craft). May not be empty. |
station_tags | Property | Optional station/tag requirements (workbench ids, unlock tags, ...) that consuming games may interpret. |
schema_version | Property | Serialization schema version; loaders fail closed on unsupported values. |
is_valid | Method | |
validate_item_ids | Method | |
to_dict | Method | |
from_dict | Method |