Good news, I found an optional feature in Better Crafting called Recycling that allows to deconstruct items and more when enabled! If you are still looking for an update or alternative for Dismantle Craftables I suggest giving it a try!
If you change line 57 to if (StardewValley.CraftingRecipe.craftingRecipes.TryGetValue(item.Name, out string raw))
And Line 74 to if (StardewValley.CraftingRecipe.craftingRecipes.TryGetValue(item.Name, out string raw))
this would work with Json Assets created items, I can't seem to remember how to do a pull request or I would have done that. But if you Change those 2 lines and it should make it compatible. It's working with all the json machines I have tried.
Thank you very much. That is a very clean solution. I only tested it with the vanilla recipes. On github, you can directly edit files for small changes and the site will create a fork and pull request for you.
I knew there had to be a simple way lol, I fought with visual studio for 30 minutes and then gave up. Thanks for the tip that makes it so much simpler. I saw this mod and was like I have to have it xD
20 comments
if (StardewValley.CraftingRecipe.craftingRecipes.TryGetValue(item.Name, out string raw))
And Line 74 to
if (StardewValley.CraftingRecipe.craftingRecipes.TryGetValue(item.Name, out string raw))
this would work with Json Assets created items, I can't seem to remember how to do a pull request or I would have done that. But if you Change those 2 lines and it should make it compatible. It's working with all the json machines I have tried.
On github, you can directly edit files for small changes and the site will create a fork and pull request for you.
Thanks!
Can the dismantle key be mapped to a controller button?
Thanks!