# \[SOLVED\] Overwriting vanilla entries via JSON Mods

**URL:** <https://discourse.cataclysmdda.org/t/solved-overwriting-vanilla-entries-via-json-mods/16813>\
**Category:** The Toolbox\
**Created:** [September 29, 2018, 8:58am UTC](https://discourse.cataclysmdda.org/t/solved-overwriting-vanilla-entries-via-json-mods/16813 "2018-09-29T08:58:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Genn\_Faol](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/genn_faol/32/8018_2.png) [@Genn\_Faol](https://discourse.cataclysmdda.org/u/Genn_Faol)\
**Post date:** [September 29, 2018, 8:58am UTC](https://discourse.cataclysmdda.org/t/solved-overwriting-vanilla-entries-via-json-mods/16813/1 "2018-09-29T08:58:23Z")

</div>

Hey there. This is just a question from someone who has been absent from modding CDDA for a long time. I recently got back into it, I forgot a bunch of stuff, can’t find many of my old resources, and a quick search reveals some related topics to my question, but nothing that outright answers it.

If I want to make a mod file that overrides a vanilla entry… say, for example, I want to change the vanilla recipe for Ketchup to include vinegar…

How do I do that without changing the core recipe json file itself? Duplicating it just leads to a name collision error when I try to start up a game/load up a save. How do you overwrite a recipe like that without errors or having a duplicate recipe?

I’m NOT asking how to create a mod itself, I know the necessary steps, I just don’t remember if overwriting vanilla entries was as easy as that.

Edit: Found it, at least for recipes. For anyone who has the same question, for recipes at least you can simply add the “override”: true flag to the recipe. I don’t yet know if this works for item entries as well, the documentation on the Git repo specifically talked about recipes.

---

<div class="post-metadata">

**Author:** ![Rose](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rose/32/1963_2.png) [@Rose](https://discourse.cataclysmdda.org/u/Rose)\
**Post date:** [September 29, 2018, 4:06pm UTC](https://discourse.cataclysmdda.org/t/solved-overwriting-vanilla-entries-via-json-mods/16813/2 "2018-09-29T16:06:07Z")

</div>

> [@Genn\_Faol](#):
>
> say, for example, I want to change the vanilla recipe for Ketchup to include vinegar…

That’s strange, since it already requires vinegar…

---

<div class="post-metadata">

**Author:** ![Genn\_Faol](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/genn_faol/32/8018_2.png) [@Genn\_Faol](https://discourse.cataclysmdda.org/u/Genn_Faol)\
**Post date:** [September 29, 2018, 5:24pm UTC](https://discourse.cataclysmdda.org/t/solved-overwriting-vanilla-entries-via-json-mods/16813/3 "2018-09-29T17:24:58Z")

</div>

Was an example. It didn’t use to include vinegar back when I was last modding the game, which bothered me since, you know, real ketchup includes vinegar and vinegar is, in fact, an item in the game, so I thought it should. I could’ve used any number of examples, I just used the first one that came to mind back when I modded those recipes.
