# How to create a new item with a image (Tiles)

**URL:** <https://discourse.cataclysmdda.org/t/how-to-create-a-new-item-with-a-image-tiles/22416>\
**Category:** The Toolbox\
**Created:** [January 7, 2020, 8:56pm UTC](https://discourse.cataclysmdda.org/t/how-to-create-a-new-item-with-a-image-tiles/22416 "2020-01-07T20:56:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaulBlazek](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@PaulBlazek](https://discourse.cataclysmdda.org/u/PaulBlazek)\
**Post date:** [January 7, 2020, 8:56pm UTC](https://discourse.cataclysmdda.org/t/how-to-create-a-new-item-with-a-image-tiles/22416/1 "2020-01-07T20:56:25Z")

</div>

I am creating a mod that adds a new melee weapon, and I want to make it have an image in-game, instead of the generic gray bar. I’ve made a png image 128x32 and have copied some data from the Chesthole Indicator mod in an attempt to get the desired effect.

> **Code (Click to show/hide)**
>
> [  
> {  
> “type”: “mod\_tileset”,  
> “compatibility”: [“cb12\_random\_stuff”],  
> “tile\_info”: [  
> {  
> “height”: 32,  
> “width”: 32  
> }  
> ],  
> “tiles-new”: [  
> {  
> “file”: “Tileset.png”,  
> “tiles”: [  
> { “id”: “laser\_sword”, “fg”: 0 },  
> { “id”: “laser\_sword\_extended”, “fg”: 1 },  
> { “id”: “overlay\_wielded\_laser\_sword”, “fg”: 2 },  
> { “id”: “overlay\_wielded\_laser\_sword\_extended”, “fg”: 3 }  
> ]  
> }  
> ]  
> }  
> ]

But the tileset json file does not appear to be changing anything.  
What do I need to do in order to make this work?  
Thanks in advance to anyone who answers.

---

<div class="post-metadata">

**Author:** ![Axema](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/axema/32/10822_2.png) [@Axema](https://discourse.cataclysmdda.org/u/Axema)\
**Post date:** [January 8, 2020, 12:45am UTC](https://discourse.cataclysmdda.org/t/how-to-create-a-new-item-with-a-image-tiles/22416/2 "2020-01-08T00:45:08Z")

</div>

> [@PaulBlazek](#):
>
> “compatibility”: [“cb12\_random\_stuff”],

It should be the tileset’s id like:  
` "compatibility": ["MSX++DEAD_PEOPLE","UNDEAD_PEOPLE","Xotto+"]`

---

<div class="post-metadata">

**Author:** ![PaulBlazek](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@PaulBlazek](https://discourse.cataclysmdda.org/u/PaulBlazek)\
**Post date:** [January 8, 2020, 1:14am UTC](https://discourse.cataclysmdda.org/t/how-to-create-a-new-item-with-a-image-tiles/22416/3 "2020-01-08T01:14:02Z")

</div>

> [@Axema](#):
>
> “MSX++DEAD\_PEOPLE”

This fixed the problem, Thanks!
