LeatherRecipes
Patches the leather cutting recipe to allow horse leathers as input materials. The item mappers of this recipe are handled in the scripts/HorseMod/patches/leathers.txt file.
Require: require("HorseMod/patches/LeatherRecipes")
- HorseMod.patches.LeatherRecipes.LEATHERS: ("HorseMod.HorseLeather_AmericanPaintOvero_Fur_Tan", "HorseMod.HorseLeather_AmericanPaintOvero_Fur_Tan_Medium", "HorseMod.HorseLeather_AmericanPaintTobiano_Fur_Tan", "HorseMod.HorseLeather_AmericanPaintTobiano_Fur_Tan_Medium", "HorseMod.HorseLeather_AmericanQuarterBlueRoan_Fur_Tan", "HorseMod.HorseLeather_AmericanQuarterBlueRoan_Fur_Tan_Medium", "HorseMod.HorseLeather_AmericanQuarterPalomino_Fur_Tan", "HorseMod.HorseLeather_AmericanQuarterPalomino_Fur_Tan_Medium"...)
The list of horse and foal leathers full types to add to the recipe.
-
HorseMod.patches.LeatherRecipes.IDENTIFIER_ITEM:
string The item full type used to identify the specific recipe input to patch.
-
HorseMod.patches.LeatherRecipes.identifyInput(input:
InputScript, loadedItems:ArrayList<string>):boolean An example of input identification function. Checks if the input contains an item with a specific full type, which is usually enough to identify it.
-
HorseMod.patches.LeatherRecipes.patchRecipe(
recipeID:string,
testInput: fun(input:InputScript, loadedItems:ArrayList<string>):boolean,
itemsToAdd:string[]
):nil Function used to patch a recipe by adding new items to one of its inputs. Uses a testInput function to identify the correct input to add items to.