DayZ
Discover the best community content
Get the most out of DayZ with Steam Workshop. Find and install user-created mods, or create your own and upload it directly to Steam.
_KC76_ 14 28 Oct, 2024 @ 4:46am
Overwriting / Overriding Vanilla Recipes
Is it possible to change a vanilla Recipe using Override function, or would I need to "unregister" (disable) the vanilla Recipe, then create a new Recipe with a new/unique name?
- I'm working on a mod that includes stacking LongWoodenSticks, but in vanilla, these items are not stackable, so when I use a vanilla Recipe to craft something, it uses the whole stack of sticks, instead of just one long wooden stick .. I thought my solution would be to "overwrite" the vanilla recipes to use just one stick, but the server is throwing me errors about "more than one instance of class xxx.c" if I add them to the PluginRecipesManager and add the RegisterRecipe (new xxx) code, or if I do not add them to anything .. Do I need a different file, or a different function, or is it only able to be disabled and replaced with a moddedClass/Recipe?