# How To Add A New Construction

**URL:** <https://discourse.cataclysmdda.org/t/how-to-add-a-new-construction/22593>\
**Category:** The Drawing Board\
**Created:** [January 27, 2020, 3:24pm UTC](https://discourse.cataclysmdda.org/t/how-to-add-a-new-construction/22593 "2020-01-27T15:24:10Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Estranged](https://avatars.discourse-cdn.com/v4/letter/e/59ef9b/32.png) [@Estranged](https://discourse.cataclysmdda.org/u/Estranged)\
**Post date:** [January 27, 2020, 3:24pm UTC](https://discourse.cataclysmdda.org/t/how-to-add-a-new-construction/22593/1 "2020-01-27T15:24:10Z")

</div>

I want to add a barbed wire a-frame type thingy (see atatched image), that can be built like a road block. Something where you don’t need a fence post so it can be built on a road, etc.

What’s the file setup I need to do to add it as a mod?

---

<div class="post-metadata">

**Author:** ![Kilvoctu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kilvoctu/32/6436_2.png) [@Kilvoctu](https://discourse.cataclysmdda.org/u/Kilvoctu)\
**Post date:** [January 27, 2020, 3:30pm UTC](https://discourse.cataclysmdda.org/t/how-to-add-a-new-construction/22593/2 "2020-01-27T15:30:29Z")

</div>

Cataclysm DDA\data\mods\ [your mod name]  
Put your json file in here with the recipe, as well as the modinfo

---

<div class="post-metadata">

**Author:** ![Estranged](https://avatars.discourse-cdn.com/v4/letter/e/59ef9b/32.png) [@Estranged](https://discourse.cataclysmdda.org/u/Estranged)\
**Post date:** [January 27, 2020, 4:19pm UTC](https://discourse.cataclysmdda.org/t/how-to-add-a-new-construction/22593/3 "2020-01-27T16:19:16Z")

</div>

I’m getting this error and I don’t know what it is.  
I’ve even tried taking a json from the game, deleting it’s content and pasting in mine, but getting the same thing.

 ![Untitled1](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/a/a4cff8d1f6311cc05a977822f94ec3830da338dd.jpeg)

---

<div class="post-metadata">

**Author:** ![Kilvoctu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kilvoctu/32/6436_2.png) [@Kilvoctu](https://discourse.cataclysmdda.org/u/Kilvoctu)\
**Post date:** [January 28, 2020, 1:45am UTC](https://discourse.cataclysmdda.org/t/how-to-add-a-new-construction/22593/4 "2020-01-28T01:45:43Z")

</div>

Can you provide the full script?

---

<div class="post-metadata">

**Author:** ![featherball](https://avatars.discourse-cdn.com/v4/letter/f/e99b99/32.png) [@featherball](https://discourse.cataclysmdda.org/u/featherball)\
**Post date:** [January 28, 2020, 4:09am UTC](https://discourse.cataclysmdda.org/t/how-to-add-a-new-construction/22593/5 "2020-01-28T04:09:57Z")

</div>

I got a similar error when I accidentally left an empty JSON file in a mod’s directory. Barring that, probably unbalanced brackets (like [{] } ] or similar).

---

<div class="post-metadata">

**Author:** ![Estranged](https://avatars.discourse-cdn.com/v4/letter/e/59ef9b/32.png) [@Estranged](https://discourse.cataclysmdda.org/u/Estranged)\
**Post date:** [January 28, 2020, 2:47pm UTC](https://discourse.cataclysmdda.org/t/how-to-add-a-new-construction/22593/6 "2020-01-28T14:47:03Z")

</div>

Yeah, that was the reason for that error, but now i’m getting something else.

Would it be easier for me to upload the couple of jsons I’ve done? If so, what’s a good file hosting site?

---

<div class="post-metadata">

**Author:** ![moumix](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/moumix/32/7967_2.png) [@moumix](https://discourse.cataclysmdda.org/u/moumix)\
**Post date:** [January 29, 2020, 11:09am UTC](https://discourse.cataclysmdda.org/t/how-to-add-a-new-construction/22593/7 "2020-01-29T11:09:24Z")

</div>

Github or Pastebin for text files sharing I’d say? 🙂

---

<div class="post-metadata">

**Author:** ![Estranged](https://avatars.discourse-cdn.com/v4/letter/e/59ef9b/32.png) [@Estranged](https://discourse.cataclysmdda.org/u/Estranged)\
**Post date:** [February 1, 2020, 3:19am UTC](https://discourse.cataclysmdda.org/t/how-to-add-a-new-construction/22593/8 "2020-02-01T03:19:52Z")

</div>

> **[Estranged-CDDA/Blork](https://github.com/Estranged-CDDA/Blork)**
>
> Contribute to Estranged-CDDA/Blork development by creating an account on GitHub.

I dunno if I did that correctly…

---

<div class="post-metadata">

**Author:** ![dpwb](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dpwb/32/2609_2.png) [@dpwb](https://discourse.cataclysmdda.org/u/dpwb)\
**Post date:** [February 1, 2020, 4:58pm UTC](https://discourse.cataclysmdda.org/t/how-to-add-a-new-construction/22593/9 "2020-02-01T16:58:52Z")

</div>

Your bash section in barbed.json needs a closing brace.

```
    "bash": {
      "str_min": 3,
      "str_max": 40,
      "sound": "smash!",
      "sound_fail": "whump.",
      "items": [{ "item": "2x4", "count": [ 2, 6] }, { "item": "nail", "charges": [4, 8] }, { "item": "splinter", "count": 1 } ]
    }
 }

```

like so, you only had one closing brace for the whole entry.

---

<div class="post-metadata">

**Author:** ![Estranged](https://avatars.discourse-cdn.com/v4/letter/e/59ef9b/32.png) [@Estranged](https://discourse.cataclysmdda.org/u/Estranged)\
**Post date:** [February 1, 2020, 5:11pm UTC](https://discourse.cataclysmdda.org/t/how-to-add-a-new-construction/22593/10 "2020-02-01T17:11:32Z")

</div>

Ah, thanks for that.  
I can work on the components side of it now.

Just one more thing. Does it have the correct parameters to allow enemies to pass through it whilst taking damage?

---

<div class="post-metadata">

**Author:** ![dpwb](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dpwb/32/2609_2.png) [@dpwb](https://discourse.cataclysmdda.org/u/dpwb)\
**Post date:** [February 1, 2020, 10:08pm UTC](https://discourse.cataclysmdda.org/t/how-to-add-a-new-construction/22593/11 "2020-02-01T22:08:27Z")

</div>

yes, the SHARP flag does that.
