This tutorial only pertains to using JWL Crafting Framework and assumes you already know how to create a mod for Baldur's Gate 3.
The first thing you need to do is create a ItemCombos.txt in \Public\MODNAME\Stats\Generated\ if it does not already exist in your mod.
Inside ItemCombos.txt are where you will define your crafting combinations. Here is a basic template combining 2 items together using the Anvil (Iron) item. Add the following entry to the file:new ItemCombination "[COMBINATION_ID]"
data "Type 1" "Object"
data "Object 1" "UNI_Smithing_Hammer_UC"
data "Combine 1" "Base"
data "Transform 1" "None"
data "Type 2" "Object"
data "Object 2" "[OBJECT_1_STATS_NAME]"
data "Transform 2" "Consume"
data "Type 3" "Object"
data "Object 3" "[OBJECT_2_STATS_NAME]"
data "Transform 3" "Consume"
[COMBINATION_ID] is the unique name you're giving this record. It can be anything. Remember it as we'll need it later.
[OBJECT_X_STATS_NAME] is the name of the item stats entry located in \Stats\Generated\Data\. It can be an armor, object, or weapon.
The first object in the list always needs to be the crafting tool used to initiate the recipe and it should always be the only one with the data "Combine 1" "Base" property. Make sure it has the "None" value for the Transform property or it will be consumed on completion.
Now, let's add the result. Below the last entry create a new entry in the same file:new ItemCombinationResult "[COMBINATION_ID]_1"
data "ResultAmount 1" "[X]"
data "Result 1" "[OBJECT_RESULT_STATS_NAME]"
data "PreviewStatsID" "[OBJECT_RESULT_STATS_NAME]"
data "PreviewIcon" "[OBJECT_RESULT_STATS_NAME]"
[COMBINATION_ID] will be the same as the previous entry but followed by a "_1"
[X] is the amount produced. This should never exceed the stack limit of the product.
[OBJECT_RESULT_STATS_NAME] is the name of the item stats entry located in \Stats\Generated\Data\. It can be an armor, object, or weapon.
That's it! You've now added a crafting recipe to the game! You can add as many recipes into this file as you want.
The maximum number of ingredients is 5 (4 + the tool). Be sure to use the right tool for the right size recipe or it will not work!
Smith's Tools: Uncommon, 2 crafting slots - UNI_Smithing_Hammer_UC2S
Advanced Smith's Tools: Rare, 3 crafting slots - UNI_Smithing_Hammer_UC3S
Expert Smith's Tools: Very Rare, 4 crafting slots - UNI_Smithing_Hammer_UC4S
Anvil (Iron): Rare, 2 crafting slots - UNI_Smithing_Hammer_UC
Anvil (Adamantine): Rare, 3 crafting slots - UNI_Smithing_Hammer_RR
Anvil (Platinum): Very Rare, 4 crafting slots - UNI_Smithing_Hammer_VR
Mortar and Pestle: Uncommon, 1 crafting slot - UNI_MortarPestle_UC
Advanced Mortar and Pestle: Rare, 2 crafting slots - UNI_MortarPestle_RR
Jeweler's Tools: Uncommon, 2 crafting slots - UNI_JewelersTools_UC
Advanced Jeweler's Tools: Rare, 3 crafting slots - UNI_JewelersTools_RR
Expert Jeweler's Tools: Very Rare, 4 crafting slots - UNI_JewelersTools_VR
Scribe's Tools: Uncommon, 2 crafting slots - UNI_Scribes_Tools_UC
Advanced Scribe's Tools: Rare, 3 crafting slots - UNI_Scribes_Tools_RR
Expert Scribe's Tools: Very Rare, 4 crafting slots - UNI_Scribes_Tools_VR
Cutting Board: Uncommon, 2 crafting slots - UNI_Cooking_Board
Cooking Pan: Uncommon, 3 crafting slots - UNI_Cooking_Pan
Cooking Cauldron: Uncommon, 4 crafting slots - UNI_Cooking_Cauldron
0 comments