CraftingRecipe
Documentation for the CraftingRecipe asset type.
Location
Item/Recipes
Use in Your Files
Add this to your JSON files for IDE autocompletion and validation:
"$schema": "https://hytaledb.ginco.gg/schemas/CraftingRecipe.schema.json" Schema
Input array
Array items: MaterialQuantity
Output arraynull
Array items: MaterialQuantity
PrimaryOutput unknown
Any of
OutputQuantity
integer
BenchRequirement arraynull
Array items: BenchRequirement
TimeSeconds
number
KnowledgeRequired
boolean
RequiredMemoriesLevel
integer
The level of Memories starts from 1, meaning a recipe with a RequiredMemoriesLevel set at 1 will always be available to players.
All of
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "CraftingRecipe.json",
"title": "CraftingRecipe",
"description": "CraftingRecipe asset type",
"type": "object",
"allOf": [
{
"$ref": "base.schema.json"
}
],
"properties": {
"Input": {
"type": "array",
"items": {
"$ref": "common.schema.json#/$defs/MaterialQuantity"
}
},
"Output": {
"type": [
"array",
"null"
],
"items": {
"$ref": "common.schema.json#/$defs/MaterialQuantity"
}
},
"PrimaryOutput": {
"anyOf": [
{
"$ref": "common.schema.json#/$defs/MaterialQuantity"
},
{
"type": "null"
}
]
},
"OutputQuantity": {
"type": "integer",
"default": 1
},
"BenchRequirement": {
"type": [
"array",
"null"
],
"items": {
"$ref": "common.schema.json#/$defs/BenchRequirement"
}
},
"TimeSeconds": {
"type": "number",
"minimum": 0,
"default": 0
},
"KnowledgeRequired": {
"type": "boolean",
"default": false
},
"RequiredMemoriesLevel": {
"type": "integer",
"description": "The level of Memories starts from 1, meaning a recipe with a RequiredMemoriesLevel set at 1 will always be available to players.",
"minimum": 1,
"default": 1
}
}
}