Hello I need a tutorial on setting up the plant. (a14)
thanks in advance.
Hey there @Vladislav26rus, could you perhaps provide some more information on what you are looking to accomplish? What do you mean by “setting up the plant”? Are you trying to create a plant that is created during terrain generation (like a berry bush), a farmable plant (like corn), or something else?
It’s all because of the quality of the translation. I mean the creation of plants.
Such as corn, turnips, carrots and the like. I hope this time you will understand me .
i dont know much about adding new crops, so i’m going to page our lovely modding support, @Drotten, to see if he can help out here.
I’d say that you should start off by copying one of the existing crops.
If you haven’t already: copy the stonehearth.smod file to another location, rename it to stonehearth.zip, and extract its contents. You can find the crops in stonehearth/entities/crops/, you could copy the turnip folder to your own mod and modify it to your own crop.
Next you should add a new file that will register your new crop: I’d suggest that you add it (within your mod) in MY_MOD/data/farming/initial_crops.json.
{
"crops_by_kingdom" : {
"stonehearth:kingdoms:ascendancy" : [
{
"crop_type" : "MY_MOD:CROP_ALIAS",
"quantity" : 10
}
]
}
}
The stonehearth:kingdoms:ascendancy
says that the crop will be available for the ascendancy faction, if you wish it to be available for more factions (like rayyas_children:kingdoms:rayyas_children
), you then have to make another entry for it.
And, of course, you’d need to set this all up in the manifest. Which, I imagine, would look something like this:
{
"info" : {
"name" : "MY_MOD",
"version" : 2
},
"aliases" : {
"CROP_ALIAS" : "file(entities/crops/CROP)"
},
"mixintos" : {
"/stonehearth/services/server/farming/data/initial_crops.json" : "file(data/farming/initial_crops.json)"
}
}
Good luck!
Thank you for helping me try to do when the time Thank you very much !!!
Does the version need to be equal to two for the mod to work?
Yes. That’s the version of the engine’s api, if the mod isn’t set to the current value it won’t be loaded into the game at all.