Skip to content
On this page

Athena.systems.inventory.crafting.CraftRecipe ​

server/systems/inventory/crafting.CraftRecipe

Properties ​

combo ​

• combo: ItemCombo

Two items that can be combined.

Defined in ​

server/systems/inventory/crafting.ts:28


dataMigration ​

• Optional dataMigration: ItemCombo

What items to take the data from. ORDER MATTERS. What item is specified first will get data appended first. Second item overwrites matching property names.

Defined in ​

server/systems/inventory/crafting.ts:83


quantities ​

• quantities: Quantities

The amount required to combine.

Defined in ​

server/systems/inventory/crafting.ts:36


result ​

• Optional result: Object

The crafting result.

Type declaration ​

NameTypeDescription
data?Object | (item1: StoredItem, item2: StoredItem) => ObjectThe custom data to start with on this item. If data migration is specified; the data will be stacked on top of this data object.
dbNamestringName of the item.
quantitynumberThe amount of this item.
version?numberWhat version of this item to use.

Defined in ​

server/systems/inventory/crafting.ts:44


sound ​

• Optional sound: string

The custom sound associated with this crafting recipe.

Defined in ​

server/systems/inventory/crafting.ts:91


uid ​

• uid: string

A unique identifier for this recipe.

Defined in ​

server/systems/inventory/crafting.ts:20

Created by Stuyk | Est. 2020