# Finally started modding and ran into a minor issue

**URL:** <https://discourse.stonehearth.net/t/finally-started-modding-and-ran-into-a-minor-issue/34177>\
**Category:** Modding\
**Created:** [March 21, 2018, 5:52am UTC](https://discourse.stonehearth.net/t/finally-started-modding-and-ran-into-a-minor-issue/34177 "2018-03-21T05:52:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yosmo78](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/yosmo78/32/23157_2.png) [@Yosmo78](https://discourse.stonehearth.net/u/Yosmo78)\
**Post date:** [March 21, 2018, 5:52am UTC](https://discourse.stonehearth.net/t/finally-started-modding-and-ran-into-a-minor-issue/34177/1 "2018-03-21T05:52:09Z")

</div>

Hey guys, I finally started getting into modding and ran into a minor issue where the name and description of the object is not displaying right

 ![20180320224554_1](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/4/e/4ef85d350e19a14165beb6fb0a8178998e5a0bd6.jpg)

and here is my code

**_sample\_object.json_**  
{  
“type” : “entity”,  
“components” : {  
“//” : “the composition of the entity also no comments allowed in model\_variants because it will try to iterate the comment”,  
“model\_variants” : {  
“default” : {  
“///” : “but comments are allowed in here”,  
“//” : “this will be the default array of models”,  
“models” : [  
“file(sample\_object.qb)”  
]  
}  
}  
},  
“entity\_data”: {  
“stonehearth:catalog”: {  
“//” : “name and description are located in …/locales/en.json”,  
“///” : “format i18n\(modname:folder.objectname.property)”,  
“description” : “i18n(test\_mod:entities.sample\_object.description)”,  
“display\_name”: “i18n(test\_mod:entities.sample\_object.display\_name)”,  
“icon” : “file(sample\_object.png)”  
},  
“stonehearth:appeal”: {  
“appeal”: 10  
}  
}  
}

**_manifest.json_**  
{  
“info” : {  
“//” : “information about the test\_mod”,  
“name” : “test\_mod”,  
“namespace”: “test\_mod”,  
“version” : 3,  
},

“aliases” : {  
“//” : “name of object and file path from the same directory as the manifest”,  
“sample\_object” : “file(entities/sample\_object/sample\_object.json)”  
},

“mixinto” : {  
“//” : “how your mod interacts with the main stonehearth mod (files that you create that are merged with the existing files in the stonehearth mod”,  
}  
}

**_en.json_**  
{  
“entities”: {  
“sample\_object”: {  
“description”: “Sample description.”,  
“display\_name”: “Sample Object”  
}  
}  
}

I am extremely new to this stuff so bare with me please. I am following the reference mod video from awhile back and had to make some slight changes, but it still appears I am missing something. could someone point it out.

---

<div class="post-metadata">

**Author:** ![BrunoSupremo](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/brunosupremo/32/54819_2.png) [@BrunoSupremo](https://discourse.stonehearth.net/u/BrunoSupremo)\
**Post date:** [March 21, 2018, 12:37pm UTC](https://discourse.stonehearth.net/t/finally-started-modding-and-ran-into-a-minor-issue/34177/2 "2018-03-21T12:37:03Z")

</div>

For the locales to work, you need to add it to your manifest as this:

```
"default_locale": "en",
```

---

<div class="post-metadata">

**Author:** ![Yosmo78](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/yosmo78/32/23157_2.png) [@Yosmo78](https://discourse.stonehearth.net/u/Yosmo78)\
**Post date:** [March 22, 2018, 4:43am UTC](https://discourse.stonehearth.net/t/finally-started-modding-and-ran-into-a-minor-issue/34177/3 "2018-03-22T04:43:26Z")

</div>

thanks man!

---

<div class="post-metadata">

**Author:** ![Yosmo78](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/yosmo78/32/23157_2.png) [@Yosmo78](https://discourse.stonehearth.net/u/Yosmo78)\
**Post date:** [March 22, 2018, 10:34pm UTC](https://discourse.stonehearth.net/t/finally-started-modding-and-ran-into-a-minor-issue/34177/4 "2018-03-22T22:34:50Z")

</div>

I got another problem maybe you can solve, I am doing the tutorial Stephanie did awhile back but it seems some stuff with recipes are a little different now is there something I am missing which is why the recipe is not appearing

**_manifest.json_**

{  
“info” : {  
“//” : “information about the test\_mod”,  
“name” : “test\_mod”,  
“namespace”: “test\_mod”,  
“version” : 3,  
},  
“//” : “the language file you are getting your data (object names and descriptions)from”,  
“///” : “in this case the english language file”,  
“default\_locale”: “en”,

“aliases” : {  
“//” : “name of object and file path from the same directory as the manifest”,  
“sample\_object” : “file(entities/sample\_object/sample\_object.json)”  
},

“mixinto” : {  
“//” : “how your mod interacts with the main stonehearth mod (files that you create that are merged with the existing files in the stonehearth mod”,  
“///” : “file path of file you are mixing into : file you are going to merge into carpenter recipes”,  
“/stonehearth/jobs/carpenter/recipes/recipes.json” : “file(recipes/recipes.json)”  
}  
}

**_sample\_recipe\_1.json_**

```
"type" : "recipe",
"//" : "amount of animations played",
"work_units" : 2, 
"effort" : 20,
"recipe_name" : "i18n(test_mod:recipes.sample_recipe_1.recipe_name)",
"description" : "i18n(test_mod:recipes.sample_recipe_1.description)",
"flavor" : "i18n(test_mod:recipes.sample_recipe_1.flavor)",
"///" : "full path when it has to leave out the folder and go into another one",
"portrait" : "/test_mod/entities/sample_object/sample_object.png",
"workshop": "stonehearth:carpenter:workbench",
"level_requirement" : 0,
"ingredients" : [
  {
     "material": "wood resource",
     "count": 1
  }
],
"produces" : [
	{
		"item" : "test_mod:sample_object"
	}
]

```

**_recipes.json_**

```
"//": "have every object in the hierarchy that is required for merging of where you want the recipe to be and require",
"///" : "will merge the denoted objects",
"////" : "category then object of recipes then recipe name then where it is from",
"craftable_recipes" :{
	"furniture" : {
		"recipes" : {
			"sample_recipe" : {
				"recipe" : "file(sample_recipe_1.json)"
			}
	    }
	}
}
```

---

<div class="post-metadata">

**Author:** ![BrunoSupremo](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/brunosupremo/32/54819_2.png) [@BrunoSupremo](https://discourse.stonehearth.net/u/BrunoSupremo)\
**Post date:** [March 22, 2018, 10:45pm UTC](https://discourse.stonehearth.net/t/finally-started-modding-and-ran-into-a-minor-issue/34177/5 "2018-03-22T22:45:23Z")

</div>

You pointed in your manifest to a recipe **s**.json, while your file is called recipe.json

And all json files starts and ends with opening and closing brackets {}. Everything must go inside those “master” brackets.

Else, you can check your stonehearth.log file where most errors are logged for a clue of what is happening, or check the base game as a more accurate template.

---

<div class="post-metadata">

**Author:** ![Yosmo78](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/yosmo78/32/23157_2.png) [@Yosmo78](https://discourse.stonehearth.net/u/Yosmo78)\
**Post date:** [March 22, 2018, 11:08pm UTC](https://discourse.stonehearth.net/t/finally-started-modding-and-ran-into-a-minor-issue/34177/6 "2018-03-22T23:08:59Z")

</div>

also I forgot an ‘s’ after mixinto, should be mixintos. Thanks for the help!
