# Proposed module structure: data/mod/{modname}/

**URL:** https://discourse.cataclysmdda.org/t/proposed-module-structure-data-mod-modname/2108
**Category:** The Drawing Board
**Created:** [July 5, 2013, 1:03pm UTC](https://discourse.cataclysmdda.org/t/proposed-module-structure-data-mod-modname/2108 "2013-07-05T13:03:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![CIB](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/cib/32/903_2.png) [@CIB](https://discourse.cataclysmdda.org/u/CIB)
#### Post date: [July 5, 2013, 1:03pm UTC](https://discourse.cataclysmdda.org/t/proposed-module-structure-data-mod-modname/2108/1 "2013-07-05T13:03:53Z")

</div>

Right now all JSON files are in a hardcoded set, and if you want to add new files you have to add them to the C++.

What I’m suggesting is an additional data/mod/{modname}/ directory that contains JSON files which will be merged with the “main” ones.

For instance, I could have an “extra\_food” mod, which I’d put in data/mod/extra\_food, and then I would define my new food items in “data/mod/extra\_food/raw/items/comestibles.json” and my new recipes in “data/mod/extra\_food/raw/recipes.json”.

---

<div class="post-metadata">

### Author: ![stone94](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@stone94](https://discourse.cataclysmdda.org/u/stone94)
#### Post date: [July 5, 2013, 1:47pm UTC](https://discourse.cataclysmdda.org/t/proposed-module-structure-data-mod-modname/2108/2 "2013-07-05T13:47:34Z")

</div>

I like this, it would make modding a lot easier for those of us with beginner coding skills.

---

<div class="post-metadata">

### Author: ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)
#### Post date: [July 5, 2013, 2:23pm UTC](https://discourse.cataclysmdda.org/t/proposed-module-structure-data-mod-modname/2108/3 "2013-07-05T14:23:57Z")

</div>

Yea, it/d be /data/raw/mods/\* with the current layout, and you could either drop files in there or subdirectories.

There’s a complication currently in that several of the json files are “special”, like recipe.json The above would work fine for items, but it’ll take some work to make it happen for the other json types.
