I want to update my Biome and find no way to change the Color of the Trees or to remove the Leaves.
As in the tempered Biome.
Make model variants. Look at the tree json files.
he uses the standard trees where the models are included ^^
Right Wiese ^.-
So override the model files, or the entity file and the model files? Either way, you just need to make your own model variants and get those loaded in. If you want different models, you have to supply them. Look at the tree json files for what model variants are being used for different seasons:
"model_variants": {
"default": {
"models": [
{
"type": "one_of",
"items": [
"file(large_oak_tree.qb)",
"file(large_oak_tree_2.qb)",
"file(large_oak_tree_3.qb)"
]
}
]
},
"autumn": {
"models": [
{
"type": "one_of",
"items": [
"file(large_oak_tree_autumn.qb)",
"file(large_oak_tree_autumn_2.qb)",
"file(large_oak_tree_autumn_3.qb)"
]
}
]
},
"spring": {
"models": [
{
"type": "one_of",
"items": [
"file(large_oak_tree_spring.qb)",
"file(large_oak_tree_spring_2.qb)",
"file(large_oak_tree_spring_3.qb)"
]
}
]
},
I do not want to use my own I want to use the existing ones but to match the seasons
i have checked it he doenst override anything or uses own files - he just mentioned in his biome.json the normal ones from stonehearth - its like an dupe from the temperate.json (he has only added the plants from the desert)
https://steamcommunity.com/sharedfiles/filedetails/?id=1359762368&searchtext=lorki
And you have those same seasons defined in your biome json?
{
âtypeâ: âbiomeâ,
âaliasâ: âlorki_biome:biome:lorkiâ,
âdisplay_nameâ: âi18n(lorki_biome:data.biome.lorki.display_name)â,
âdescriptionâ: âi18n(lorki_biome:data.biome.lorki.description)â,
ârandom_location_namesâ: [
âi18n(lorki_biome:data.biome.lorki.random_location_names.000)â,
âi18n(lorki_biome:data.biome.lorki.random_location_names.001)â,
âi18n(lorki_biome:data.biome.lorki.random_location_names.002)â
],
âimageâ: âfile(images/lorki_biome_400x300.png)â,
âstory_board_imageâ: â/stonehearth/data/biome/images/temperate_story_board.pngâ,
âgame_mode_imagesâ: {
âstonehearth:game_mode:normalâ: â/stonehearth/data/biome/images/temperate_story_normal.pngâ,
âstonehearth:game_mode:hardâ: â/stonehearth/data/biome/images/temperate_story_normal.pngâ
},
âmining_loot_tableâ: âfile(lorki_mining_loot_table.json)â,
âgeneration_fileâ: âfile(lorki_generation_data.json)â,
âdefault_starting_seasonâ: âsummerâ,
âseasonsâ: {
âspringâ: {
âdisplay_nameâ: âi18n(stonehearth:data.biome.temperate.seasons.spring.display_name)â,
âdescriptionâ: âi18n(stonehearth:data.biome.temperate.seasons.spring.description)â,
âstart_dayâ: 0,
âweatherâ: [
{
âuriâ: âstonehearth:weather:sunnyâ,
âweightâ: 30
},
{
âuriâ: âstonehearth:weather:cloudyâ,
âweightâ: 5
},
{
âuriâ: âstonehearth:weather:rainâ,
âweightâ: 5
},
{
âuriâ: âstonehearth:weather:foggyâ,
âweightâ: 1.5
},
{
âuriâ: âstonehearth:weather:luckyâ,
âweightâ: 0.3
}
]
},
âsummerâ: {
âdisplay_nameâ: âi18n(stonehearth:data.biome.temperate.seasons.summer.display_name)â,
âdescriptionâ: âi18n(stonehearth:data.biome.temperate.seasons.summer.description)â,
âstart_dayâ: 21,
âweatherâ: [
{
âuriâ: âstonehearth:weather:sunnyâ,
âweightâ: 30
},
{
âuriâ: âstonehearth:weather:cloudyâ,
âweightâ: 15
},
{
âuriâ: âstonehearth:weather:rainâ,
âweightâ: 5
},
{
âuriâ: âstonehearth:weather:sandstormâ,
âweightâ: 1
},
{
âuriâ: âstonehearth:weather:foggyâ,
âweightâ: 1.5
},
{
âuriâ: âstonehearth:weather:luckyâ,
âweightâ: 0.2
}
]
},
âautumnâ: {
âdisplay_nameâ: âi18n(stonehearth:data.biome.temperate.seasons.autumn.display_name)â,
âdescriptionâ: âi18n(stonehearth:data.biome.temperate.seasons.autumn.description)â,
âstart_dayâ: 42,
âweatherâ: [
{
âuriâ: âstonehearth:weather:sunnyâ,
âweightâ: 25
},
{
âuriâ: âstonehearth:weather:cloudyâ,
âweightâ: 15
},
{
âuriâ: âstonehearth:weather:rainâ,
âweightâ: 5
},
{
âuriâ: âstonehearth:weather:thunderstormâ,
âweightâ: 3
},
{
âuriâ: âstonehearth:weather:windyâ,
âweightâ: 5
},
{
âuriâ: âstonehearth:weather:snowâ,
âweightâ: 1
},
{
âuriâ: âstonehearth:weather:blizzardâ,
âweightâ: 0.1
},
{
âuriâ: âstonehearth:weather:foggyâ,
âweightâ: 3.5
},
{
âuriâ: âstonehearth:weather:luckyâ,
âweightâ: 0.1
}
]
},
âwinterâ: {
âdisplay_nameâ: âi18n(stonehearth:data.biome.temperate.seasons.winter.display_name)â,
âdescriptionâ: âi18n(stonehearth:data.biome.temperate.seasons.winter.description)â,
âstart_dayâ: 63,
âweatherâ: [
{
âuriâ: âstonehearth:weather:sunnyâ,
âweightâ: 20
},
{
âuriâ: âstonehearth:weather:cloudyâ,
âweightâ: 15
},
{
âuriâ: âstonehearth:weather:snowâ,
âweightâ: 15
},
{
âuriâ: âstonehearth:weather:blizzardâ,
âweightâ: 1
},
{
âuriâ: âstonehearth:weather:foggyâ,
âweightâ: 4.5
},
{
âuriâ: âstonehearth:weather:luckyâ,
âweightâ: 0.1
}
]
}
}
}
Tree jsons have their seasonal model switcher seasons defined under the component of that name:
"stonehearth:seasonal_model_switcher": {
"stonehearth:biome:temperate": {
"spring": "spring",
"summer": "default",
"autumn": "autumn",
"winter": "winter"
}
},
Note that they are defined by biome. You may have to do something like mixinto "stonehearth:mixins:tree"
with your own biome season specifications for the seasonal_model_switcher
component.
no plan how to do this?
Iâll take a look at the stonehearth.smod and find no example.
Itâs likely what @paulthegreat says in the post above. The default stonehearth trees specify the seasonal_model_switcher for the temperate biome, you would have to mixinto all the trees json files to add your own biome to that component.
...
"stonehearth:seasonal_model_switcher": {
"lorki_biome:biome:lorki": {
"spring": "spring",
"summer": "default",
"autumn": "autumn",
"winter": "winter"
}
},
...
Havenât tested it but it must be related to that.
your text is in the sessionswitch.json and this:
âtrees:juniper:saplingâ:âfile(/data/biome/sessionswitch.json)â,
âtrees:juniper:smallâ:âfile(/data/biome/sessionswitch.json)â,
âtrees:juniper:largeâ:âfile(/data/biome/sessionswitch.json)â,
in the Manifest.json unter mixintos. But the acacias still brown and no change.
Is it within a âcomponentsâ block?
Edit: Also, you should just mix it into the tree.json file so it automatically applies to all trees.
In stoneharth.json in the mixintos ordner is the tree.json:
{
âtypeâ: âmixinâ,
âmixinsâ: âstonehearth:mixins:placed_objectâ,
âcomponentsâ: {
ârender_infoâ: {
âmaterialâ: âmaterials/tree.material.jsonâ,
âscaleâ: 1
},
âstonehearth:resource_nodeâ: {
âharvest_overlay_effectâ: âstonehearth:effects:chop_overlay_effectâ,
âharvester_effectâ: âchopâ,
âdescriptionâ: âchop_treeâ
}
},
âentity_dataâ: {
âstonehearth:catalogâ: {
âcategoryâ: âplantsâ
},
âstonehearth:render_materialsâ: {
âhudâ: âmaterials/ghost_item.jsonâ
},
âstonehearth:on_destroyâ: {
âeffectâ: âstonehearth:effects:terrain:tree_harvestâ
}
}
}
i have absolute no idea where i must do.
I made this as a hobby my job is not programmer -.- dont find a way in this
i dont understand why this in the temperate works but in other biomes everything has to be rebuilt
I have this in the tree.json
{
âtypeâ: âmixinâ,
âmixinsâ: âstonehearth:mixins:placed_objectâ,
âcomponentsâ: {
âstonehearth:seasonal_model_switcherâ: {
âlorki_biome:biome:lorkiâ: {
âspringâ: âspringâ,
âsummerâ: âdefaultâ,
âautumnâ: âautumnâ,
âwinterâ: âwinterâ
}
},
ârender_infoâ: {
âmaterialâ: âmaterials/tree.material.jsonâ,
âscaleâ: 1
},
âstonehearth:resource_nodeâ: {
âharvest_overlay_effectâ: âstonehearth:effects:chop_overlay_effectâ,
âharvester_effectâ: âchopâ,
âdescriptionâ: âchop_treeâ
}
},
âentity_dataâ: {
âstonehearth:catalogâ: {
âcategoryâ: âplantsâ
},
âstonehearth:render_materialsâ: {
âhudâ: âmaterials/ghost_item.jsonâ
},
âstonehearth:on_destroyâ: {
âeffectâ: âstonehearth:effects:terrain:tree_harvestâ
}
}
}
do I have to embed the file somewhere in the manifest.json?
It has to be specified as a mixinto in the manifest.
https://stonehearth.github.io/modding_guide/modding_guide/essentials/mixintos_overrides/index.html
Edit: and the only part you need is the part thatâs different, which is the seasonal model switcher component part.
I Put this in the manifest.json
âstonehearth/mixins/tree/tree.jsonâ:âfile(mixins/tree/tree.json)â,
This is in the tree.json
âstonehearth:seasonal_model_switcherâ: {
âlorki_biome:biome:lorkiâ: {
âspringâ: âspringâ,
âsummerâ: âdefaultâ,
âautumnâ: âautumnâ,
âwinterâ: âwinterâ
}
},
get this error:
release-893 (x64)[M]
c++ exception: Error reading file lorki_biome/mixins/tree/tree.json:
Not JSON!
Source:
âstonehearth:seasonal_model_switcherâ: {
âlorki_biome:biome:lorkiâ: {
âspringâ: âspringâ,
âsummerâ: âdefaultâ,
âautumnâ: âautumnâ,
âwinterâ: âwinterâ
}
},
stack traceback:
[C]: in function âload_jsonâ
radiant/modules/resources.lua:40: in function âload_jsonâ
stonehearth/lib/catalog/catalog_lib.lua:72: in function â_load_jsonâ
stonehearth/lib/catalog/catalog_lib.lua:78: in function â_load_entity_jsonâ
stonehearth/lib/catalog/catalog_lib.lua:40: in function âload_catalogâ
âŚces/client/catalog_client/catalog_client_service.lua:11: in function âinitializeâ
stonehearth/stonehearth_client.lua:61: in function âcreate_serviceâ
stonehearth/stonehearth_client.lua:87: in function <stonehearth/stonehearth_client.lua:82>
[C]: ?
[C]: in function âtriggerâ
radiant/modules/events.lua:55: in function <radiant/modules/events.lua:55>
i have all in the tree.json and it works
{
âtypeâ: âmixinâ,
âmixinsâ: âstonehearth:mixins:placed_objectâ,
âcomponentsâ: {
âstonehearth:seasonal_model_switcherâ: {
âlorki_biome:biome:lorkiâ: {
âspringâ: âspringâ,
âsummerâ: âdefaultâ,
âautumnâ: âautumnâ,
âwinterâ: âwinterâ
}
},
ârender_infoâ: {
âmaterialâ: âmaterials/tree.material.jsonâ,
âscaleâ: 1
},
âstonehearth:resource_nodeâ: {
âharvest_overlay_effectâ: âstonehearth:effects:chop_overlay_effectâ,
âharvester_effectâ: âchopâ,
âdescriptionâ: âchop_treeâ
}
},
âentity_dataâ: {
âstonehearth:catalogâ: {
âcategoryâ: âplantsâ
},
âstonehearth:render_materialsâ: {
âhudâ: âmaterials/ghost_item.jsonâ
},
âstonehearth:on_destroyâ: {
âeffectâ: âstonehearth:effects:terrain:tree_harvestâ
}
}
}