PocketPossum Posted September 10, 2025 Share Posted September 10, 2025 Hi! I finished the last character mod I was making, and I have like 2 more I wanna try to make. One of the craftable items I was planning on having multiple alternative items possibly used for it? Mainly just being able to use any type of feather for it. And I was wondering if there was an easy way to go about that, or if I'd have to add some way to convert feathers into a different item to use, or just make multiple recipes for the same item? AddCharacterRecipe("tuff_hammer", -- name { -- ingredients GLOBAL.Ingredient("feather_crow", 4), GLOBAL.Ingredient("gears", 2), GLOBAL.Ingredient("tink_hammer", 1), }, GLOBAL.TECH.SCIENCE_TWO, -- tech { -- config product = "tuff_hammer", builder_tag = "tinkaton_only", numtogive = 1, atlas = "images/inventoryimages/tuff_hammer.xml", image = "tuff_hammer.tex", }, { -- filters "TOOLS", "WEAPONS", } ) Is how the recipe already looks coding wise. I'm just wondering if there's a way to have you be able to use any kind of feather for it instead of needing specific ones. Or if there's already any items in the game that have alternate recipes/ingredients I could look at as an example. If there isn't a way to do it I was just gonna add recipes to convert feathers into a generic "Crafting Feather" item or something. Link to comment https://forums.kleientertainment.com/forums/topic/167937-can-a-recipe-have-alternate-ingredients/ Share on other sites More sharing options...
FerniFrenito Posted September 10, 2025 Share Posted September 10, 2025 46 minutes ago, PocketPossum said: Hi! I finished the last character mod I was making, and I have like 2 more I wanna try to make. One of the craftable items I was planning on having multiple alternative items possibly used for it? Mainly just being able to use any type of feather for it. And I was wondering if there was an easy way to go about that, or if I'd have to add some way to convert feathers into a different item to use, or just make multiple recipes for the same item? AddCharacterRecipe("tuff_hammer", -- name { -- ingredients GLOBAL.Ingredient("feather_crow", 4), GLOBAL.Ingredient("gears", 2), GLOBAL.Ingredient("tink_hammer", 1), }, GLOBAL.TECH.SCIENCE_TWO, -- tech { -- config product = "tuff_hammer", builder_tag = "tinkaton_only", numtogive = 1, atlas = "images/inventoryimages/tuff_hammer.xml", image = "tuff_hammer.tex", }, { -- filters "TOOLS", "WEAPONS", } ) Is how the recipe already looks coding wise. I'm just wondering if there's a way to have you be able to use any kind of feather for it instead of needing specific ones. Or if there's already any items in the game that have alternate recipes/ingredients I could look at as an example. If there isn't a way to do it I was just gonna add recipes to convert feathers into a generic "Crafting Feather" item or something. As far as I know, it's not possible, at least from what I see in the code, because the game checks the inventory only by the prefab name. I think the best and easiest option is the one you propose: convert the feathers into another object. Although I don't know why I have a vague memory of opening the inventory and a recipe having multiple options, maybe it's a false memory of having multiple skin options, because I haven't found any item or any function that allows adding alternative ingredients. 1 Link to comment https://forums.kleientertainment.com/forums/topic/167937-can-a-recipe-have-alternate-ingredients/#findComment-1835206 Share on other sites More sharing options...
PocketPossum Posted September 11, 2025 Author Share Posted September 11, 2025 35 minutes ago, FerniFrenito said: As far as I know, it's not possible, at least from what I see in the code, because the game checks the inventory only by the prefab name. I think the best and easiest option is the one you propose: convert the feathers into another object. Although I don't know why I have a vague memory of opening the inventory and a recipe having multiple options, maybe it's a false memory of having multiple skin options, because I haven't found any item or any function that allows adding alternative ingredients. Ah alright, thank you. Link to comment https://forums.kleientertainment.com/forums/topic/167937-can-a-recipe-have-alternate-ingredients/#findComment-1835217 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now