Trying to get a good understanding of how to make a mod

Looks like you’re creating a mod that gives you a Stone Sword recipe which you can use to promote someone to a footman. Can you upload all of the files in your mod somewhere? It would help to have some more context.

Without the other files, I’d say your file paths are just wrong. Any time you prefix a path with “/”, the first item must be the mod it’s coming from. For example, “/stonehearth/…” would get you out of your mod and into the default Stonehearth stuff. If you don’t use a “/” at the beginning, then the path will be relative. So if you reference “a.json”, it’s going to look for “a.json” in the same folder as the current file.

Whatever file you have “/stonesword/data/commands/promote_to_profession” in is probably wrong. I’m not sure what to change it to but I can take a look if I can see the rest of your files.

Also, check out my Uncraftable mod (http://discourse.stonehearth.net/t/uncraftable-mod/7689) for a really easy example of creating a mod not using the stonehearth.smod file. It can also give you some examples of what you should do with your file paths.

Let me know if I can help any more. I’m just getting into this but I think most of it makes sense to me.

1 Like