# Mod\_targets in JSONs not accepting values

**URL:** https://discourse.cataclysmdda.org/t/mod-targets-in-jsons-not-accepting-values/8897
**Category:** The Garage
**Created:** [February 11, 2015, 9:29am UTC](https://discourse.cataclysmdda.org/t/mod-targets-in-jsons-not-accepting-values/8897 "2015-02-11T09:29:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Murphy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/murphy/32/2371_2.png) [@Murphy](https://discourse.cataclysmdda.org/u/Murphy)
#### Post date: [February 11, 2015, 9:29am UTC](https://discourse.cataclysmdda.org/t/mod-targets-in-jsons-not-accepting-values/8897/1 "2015-02-11T09:29:05Z")

</div>

Apparently only “shotgun”, “smg”, “rifle” and “pistol” are valid mod\_targets. Values such as “launcher” and “bow” don’t seem to work ingame, not showing up in the “used on” line, nor allowing actual mod attachment.

Version 3a3b489 (build 0.B-2733 experimental).

Reproducible on both a fresh world and on my save that saw many versions.

---

<div class="post-metadata">

### Author: ![Barhandar](https://avatars.discourse-cdn.com/v4/letter/b/ebca7d/32.png) [@Barhandar](https://discourse.cataclysmdda.org/u/Barhandar)
#### Post date: [February 11, 2015, 10:49am UTC](https://discourse.cataclysmdda.org/t/mod-targets-in-jsons-not-accepting-values/8897/2 "2015-02-11T10:49:33Z")

</div>

[quote=“Murphy, post:1, topic:8897”]Apparently only “shotgun”, “smg”, “rifle” and “pistol” are valid mod\_targets. Values such as “launcher” and “bow” don’t seem to work ingame, not showing up in the “used on” line, nor allowing actual mod attachment.

Version 3a3b489 (build 0.B-2733 experimental).

Reproducible on both a fresh world and on my save that saw many versions.[/quote]  
“You attach the improved iron sights to your RPG-7.”  
“You attach the bow sight to your reflex recurve bow.”

You need locations to be present on both mod and weapon first, and attachment is definitely working (unless it’s been hardcoded), but it does indeed fail to show the valid weapon types in UI.

---

<div class="post-metadata">

### Author: ![Murphy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/murphy/32/2371_2.png) [@Murphy](https://discourse.cataclysmdda.org/u/Murphy)
#### Post date: [February 11, 2015, 12:11pm UTC](https://discourse.cataclysmdda.org/t/mod-targets-in-jsons-not-accepting-values/8897/3 "2015-02-11T12:11:59Z")

</div>

Now that I think of it, the messages are different.  
When the mod doesn’t fit the type of gun: "That auto-fire mechanism cannot be attached to a launcher."  
When the gun doesn’t have the respective slot: “Your accurized heavy rail rifle doesn’t have a slot for this mod.”

I’m getting a generic “You cannot attach a brass catcher to your Milkor MGL.” with no explanation why.

EDIT: in fact I can attach it to any launcher BUT Milkor MGL.  
I think I figured out why: because of RELOAD\_EJECT.  
This is probably by design.
