Skip to content
ct

Class

CraftingRequest

Generated GDScript class reference for ItemVault.CraftingRequest.

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

Deterministic request data for a craft. Plain data plus the real Item Vault services it operates on: the recipe describes requirements by item identity, the inventory is a real [Inventory], and the database resolves those identities into real [ItemDefinition]s. No fake storage abstraction crosses this boundary.

Source: addons/item_vault/crafting/services/crafting_request.gd

Syntax

class CraftingRequest extends RefCounted

Members

NameKindSummary
recipePropertyRecipe to validate or execute.
inventoryPropertyReal Item Vault inventory the craft consumes from and produces into.
databasePropertyReal Item Vault item database resolving recipe identities.
quantityPropertyRequested craft quantity (crafts of the recipe). Must be > 0.
request_idPropertyOptional request identity. The service rejects duplicate requests that carry the same identity (see CraftingResult.REASON_DUPLICATE_REQUEST).
metadataPropertyOptional game-defined metadata. The module does not interpret this.