Mod programming help thread for Azhrak

Sorry for assuming that you’d share your mod. I am just a happy to see another modder creating content for the game :slight_smile: .

I’d be glad to work with you just here on discourse too if that’s what you’d prefer.

Have you specified the mixin for the mason’s recipe list in your manifest.

"mixintos": {
    "/stonehearth/jobs/mason/recipes/recipes.json": 
       "file(mixins/mason_recipes.json)"
}

You should have both individual recipe files, and then the mixin file that contains references to all the individual recipes.

Is your item visible in the mason’s crafting menu?

I have another sample here, Renewable Resource [r188]
http://discourse.stonehearth.net/t/modding-samples/

Which shows off how to add an item to the carpenters crafting menu. The process is almost exactly the same for the mason.


Try checking your "stonehearth.log" file. It’s located in the folder right before the “mods” folder. This could give us clues as to what is going on. :wink:

As a side note, you could try using the “Startup Script” to spawn your item in. This would help clear it up if it’s an issue with the recipe being added or the item in general.

Again Open up

startupscript/server_init.lua

Add this

self:place_item(pop, "your_mod:item_alias", camp_x +11, camp_z+8)
1 Like