Help making a mod

I’m an early coder, and I’m trying to make a mod. I can’t find how to make an icon (or in coding portrait). Please Help!

Made a tut. Here you go:

2 Likes

These are specified in the entity data, and are used only for entities that have animations. For example, this is inside stonehearth\entities\critters\rabbitrabbit.json 's entity_data:

"stonehearth:portrait": {
         "portrait_types": {
            "headshot": {
               "camera": {
                  "pos": [
                     17,
                     0.8,
                     -27
                  ],
                  "look_at": [
                     0,
                     0.6,
                     0
                  ],
                  "fov": 45
               }
            }
         }
      },

For icons, the method explained by Moai should be enough.