# Override item group

**URL:** <https://discourse.cataclysmdda.org/t/override-item-group/22109>\
**Category:** The Toolbox\
**Created:** [November 30, 2019, 7:46pm UTC](https://discourse.cataclysmdda.org/t/override-item-group/22109 "2019-11-30T19:46:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sheeptime](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@sheeptime](https://discourse.cataclysmdda.org/u/sheeptime)\
**Post date:** [November 30, 2019, 7:46pm UTC](https://discourse.cataclysmdda.org/t/override-item-group/22109/1 "2019-11-30T19:46:24Z")

</div>

How do I override an item group instead of adding new items to it?  
There was a post from last year but with no solution.

---

<div class="post-metadata">

**Author:** ![sheeptime](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@sheeptime](https://discourse.cataclysmdda.org/u/sheeptime)\
**Post date:** [December 1, 2019, 4:36am UTC](https://discourse.cataclysmdda.org/t/override-item-group/22109/2 "2019-12-01T04:36:59Z")

</div>

Got it done after 9 hours in the most tedious way.  
My goal was to change all ammo in the game to spawn in a random amount instead of a fixed number.  
So I used “copy-from” to give every ammunition a different id with the same properties. (54 JSON file here)  
And then add their uncraft.json also. (another 54 JSON file)  
Created an “ITEM\_BLACKLIST”, listed all the ammunition with the old id within it.  
Copied and pasted the ammo.json from data/itemgroup, retyped every spawn with the new id and charge-min/max.

 ![Annotation%202019-12-01%20133515](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/b/b0afa68583e0cf75778ae258b3295ed187e0abf2.png)

N I C E, one OCD fixed
