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 ​
Name | Type | Description |
---|---|---|
data? | Object | (item1 : StoredItem , item2 : StoredItem ) => Object | The custom data to start with on this item. If data migration is specified; the data will be stacked on top of this data object. |
dbName | string | Name of the item. |
quantity | number | The amount of this item. |
version? | number | What 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.