=== How to make a recipe pack for this mod ===
Please take a look at how Simply Crafting added recipes
The mod automatically loads lua and txt files in CF_Recipes via the spreadsheetParser.lua
lua files get loaded first, which allows you to:
- set wildcard functions for ingredients
- define ingredient/category aliases for your imported data -> materialMapping[] map and categoryMapping[] map
- load recipes early in the loading cycle by returning a string (recipes dont get overwritten and there can only be 1 recipe per item in each category)
txt files will loaded afterwards.
just paste the spreadsheet in one of the txt files by marking several rows and using ctrl+c and ctrl+v
this will make the data appear as TSV (Tab seperated values)
TSV Format:
Please use the excel file or google spreadsheet document to create your own list of recipes.
the dark red columns are required for the recipe to be picked up at all (plus at least 1 ingredient)
the light red columns are optional and can do various things
the uncolored columns get ignored by the parser and only exist as info for the user
Please don't change the order of the columns or add/remove any columns before column "AF", as the parser is very sensitive about that
You can set:
- Required armorer level
- Required Faction + Rank
- Produced amount
- Recipe subcategory with sorting modifier in winged brackets {}
- Up to 5 Ingredients
- Crafting sound
- Crafting time
- Custom recipe disabled flag with displayed text to tell the user why it can't be crafted
Custom recipe disabled flag:
- The crafting framework has an API that lets you enable recipes that were disabled through the "disabled" column
- You'd call I.CraftingFramework.enableRecipe(recipeId) to enable the recipe
- The player still has to match faction and Armorer level requirements
- To disable a recipe again, you'd just call I.CraftingFramework.resetRecipe(recipeId)
Events:
- You could listen to the CraftingFramework_notifyItem and possibly CraftingFramework_removedItem events to add your own tweaks to crafted or consumed items
- see CF_p.lua
0 comments