The recipe system defines crafting requirements for items. Recipes are embedded directly in item definitions and specify input materials, output items, crafting bench requirements, and processing time.
Recipes are defined within item JSON files under the Recipe property:
Directory Assets/Server/Item/Items/
Directory Weapon/
Directory Sword/
Directory Mace/Directory Dagger/Directory Armor/
Directory Food/
Food_Bread.json Food_Pie_Apple.json Directory Tool/Directory Ingredient/
Field Type Required Description InputarrayYes Required materials OutputarrayNo Produced items (defaults to containing item) PrimaryOutputobjectNo Single primary output item (alternative to Output array) OutputQuantityintNo Quantity multiplier for the primary output (default: 1) BenchRequirementarrayNo Required crafting stations TimeSecondsfloatNo Crafting duration in seconds KnowledgeRequiredboolNo Requires recipe knowledge RequiredMemoriesLevelintNo Minimum world Memories level needed to craft (default: 1, meaning always available)
Field Type Description ItemIdstringItem ID to consume ResourceTypeIdstringResource type (e.g., Fuel) QuantityintAmount required
Field Type Description ItemIdstringItem ID to produce QuantityintAmount produced (default: 1)
Field Type Description IdstringCrafting bench ID TypestringRequirement type CategoriesarrayRecipe categories this bench supports RequiredTierLevelintMinimum bench tier level
Type Description CraftingStandard crafting bench ProcessingProcessing bench (e.g. smelting) DiagramCraftingRequires unlocked diagram StructuralCraftingStructural crafting bench
"KnowledgeRequired" : false ,
"ItemId" : "Ingredient_Bar_Iron" ,
"ItemId" : "Ingredient_Leather_Light" ,
"ItemId" : "Ingredient_Fabric_Scrap_Linen" ,
"Categories" : [ "Weapon_Sword" ],
Key elements:
3.5 second crafting time
No knowledge required - recipe is known by default
Weapon Bench required with sword crafting capability
"KnowledgeRequired" : false ,
{ "ItemId" : "Ingredient_Bar_Iron" , "Quantity" : 10 },
{ "ItemId" : "Ingredient_Leather_Light" , "Quantity" : 4 },
{ "ItemId" : "Ingredient_Fabric_Scrap_Linen" , "Quantity" : 3 }
"Categories" : [ "Weapon_Mace" ],
"Type" : "DiagramCrafting" ,
"Categories" : [ "Weapons.Mace" ],
This recipe can be crafted at:
Weapon_Bench - standard crafting
Armory - requires unlocked diagram
{ "ItemId" : "Ingredient_Bar_Iron" , "Quantity" : 16 },
{ "ItemId" : "Ingredient_Leather_Light" , "Quantity" : 7 },
{ "ItemId" : "Ingredient_Fabric_Scrap_Linen" , "Quantity" : 6 }
"Categories" : [ "Armor_Chest" ]
"KnowledgeRequired" : false ,
{ "ItemId" : "Ingredient_Dough" , "Quantity" : 1 },
{ "ResourceTypeId" : "Fuel" , "Quantity" : 3 }
{ "ItemId" : "Food_Bread" }
Key features:
ResourceTypeId instead of ItemId - accepts any fuel type
Explicit Output - specifies what is produced
{ "ItemId" : "Ingredient_Dough" , "Quantity" : 1 },
{ "ItemId" : "Plant_Fruit_Apple" , "Quantity" : 3 },
{ "ItemId" : "Ingredient_Spices" , "Quantity" : 1 },
{ "ResourceTypeId" : "Fuel" , "Quantity" : 3 }
"KnowledgeRequired" : true
KnowledgeRequired: true - Recipe must be discovered/unlocked before crafting.
Bench ID Description Common Categories Weapon_BenchWeapon crafting Weapon_Sword, Weapon_Mace, Weapon_DaggerArmor_BenchArmor crafting Armor_Head, Armor_Chest, Armor_Legs, Armor_HandsCookingbenchFood preparation Baked, Cooked, PreparedArmoryAdvanced weapons Weapons.Sword, Weapons.Mace, Weapons.BowForgerySmithing Various WorkbenchGeneral crafting Various
Benches can have tier levels that unlock more advanced recipes:
Resource types allow recipes to accept any item of a specific category:
ResourceTypeId Description FuelCoal, wood, or other fuel sources
"ResourceTypeId" : "Fuel" ,
Categories group recipes by type for bench filtering:
Weapon_Sword
Weapon_Mace
Weapon_Dagger
Weapon_Battleaxe
Weapon_Bow
Weapon_Crossbow
Weapon_Shield
Armor_Head
Armor_Chest
Armor_Legs
Armor_Hands
Weapons.Sword
Weapons.Mace
Weapons.Bow
Armors.Head
Armors.Chest
Ingredient Description Ingredient_Bar_CopperCopper bar Ingredient_Bar_BronzeBronze bar Ingredient_Bar_IronIron bar Ingredient_Bar_SteelSteel bar Ingredient_Bar_CobaltCobalt bar Ingredient_Bar_MithrilMithril bar Ingredient_Bar_AdamantiteAdamantite bar Ingredient_Bar_ThoriumThorium bar Ingredient_Bar_OnyxiumOnyxium bar
Ingredient Description Ingredient_Leather_LightLight leather Ingredient_Leather_MediumMedium leather Ingredient_Leather_HeavyHeavy leather Ingredient_Fabric_Scrap_LinenLinen fabric Ingredient_Fabric_Scrap_WoolWool fabric Ingredient_Fabric_Scrap_SilkSilk fabric Ingredient_Fabric_Scrap_CottonCotton fabric
Ingredient Description Ingredient_DoughBread dough Ingredient_SpicesCooking spices Ingredient_FlourGround flour
"Parent" : "Template_Weapon_Sword" ,
"KnowledgeRequired" : false ,
{ "ItemId" : "Ingredient_Bar_Iron" , "Quantity" : 8 },
{ "ItemId" : "Ingredient_Leather_Light" , "Quantity" : 4 }
"Categories" : [ "Weapon_Sword" ]
{ "ItemId" : "Ingredient_Raw_Material" , "Quantity" : 5 }
{ "ItemId" : "MyPlugin_Item_A" , "Quantity" : 2 },
{ "ItemId" : "MyPlugin_Item_B" , "Quantity" : 1 }
"Categories" : [ "General" ]
"KnowledgeRequired" : true ,
{ "ItemId" : "Ingredient_Bar_Mithril" , "Quantity" : 12 },
{ "ItemId" : "Ingredient_Leather_Heavy" , "Quantity" : 6 }
"Categories" : [ "Weapon_Sword" ],
{ "ItemId" : "Ingredient_Ore_Iron" , "Quantity" : 3 },
{ "ResourceTypeId" : "Fuel" , "Quantity" : 5 }
{ "ItemId" : "Ingredient_Bar_Iron" , "Quantity" : 1 }
"Categories" : [ "Smelting" ]
Tier Metal Leather Fabric Time T1 (Copper) 4 2 2 2.5s T2 (Iron) 6 3 3 3.5s T3 (Steel) 8 4 4 4.5s T4 (Cobalt) 10 5 5 5.5s T5 (Mithril) 12 6 6 6.5s
Piece Metal Multiplier Leather Multiplier Head 1.0x 0.5x Chest 2.0x 1.0x Legs 1.5x 0.75x Hands 0.5x 0.25x
Balance input costs - Higher tier items should cost more
Scale crafting time - Complex items take longer
Use appropriate benches - Match bench to item type
Consider knowledge - Advanced recipes should require discovery
Test resource availability - Ensure ingredients are obtainable
Use resource types - Allow flexibility with fuel types
Provide bench alternatives - Multiple crafting paths when appropriate