# Session Tree Colors and Trees without leaves

**URL:** <https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014>\
**Category:** Modding\
**Created:** [August 29, 2018, 7:08pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014 "2018-08-29T19:08:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lorki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/lorki/32/37342_2.png) [@Lorki](https://discourse.stonehearth.net/u/Lorki)\
**Post date:** [August 29, 2018, 7:08pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/1 "2018-08-29T19:08:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![paulthegreat](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/paulthegreat/32/62395_2.png) [@paulthegreat](https://discourse.stonehearth.net/u/paulthegreat)\
**Post date:** [August 29, 2018, 7:20pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/2 "2018-08-29T19:20:30Z")

</div>

Make model variants. Look at the tree json files.

---

<div class="post-metadata">

**Author:** ![Wiese2007](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/wiese2007/32/15946_2.png) [@Wiese2007](https://discourse.stonehearth.net/u/Wiese2007)\
**Post date:** [August 29, 2018, 7:22pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/3 "2018-08-29T19:22:27Z")

</div>

he uses the standard trees where the models are included ^^

---

<div class="post-metadata">

**Author:** ![Lorki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/lorki/32/37342_2.png) [@Lorki](https://discourse.stonehearth.net/u/Lorki)\
**Post date:** [August 29, 2018, 7:23pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/4 "2018-08-29T19:23:48Z")

</div>

Right Wiese ^.-

---

<div class="post-metadata">

**Author:** ![paulthegreat](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/paulthegreat/32/62395_2.png) [@paulthegreat](https://discourse.stonehearth.net/u/paulthegreat)\
**Post date:** [August 29, 2018, 7:27pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/5 "2018-08-29T19:27:46Z")

</div>

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:

```auto
"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)"
                  ]
               }
            ]
         },
```

---

<div class="post-metadata">

**Author:** ![Lorki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/lorki/32/37342_2.png) [@Lorki](https://discourse.stonehearth.net/u/Lorki)\
**Post date:** [August 29, 2018, 7:31pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/6 "2018-08-29T19:31:58Z")

</div>

I do not want to use my own I want to use the existing ones but to match the seasons

---

<div class="post-metadata">

**Author:** ![Wiese2007](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/wiese2007/32/15946_2.png) [@Wiese2007](https://discourse.stonehearth.net/u/Wiese2007)\
**Post date:** [August 29, 2018, 7:32pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/7 "2018-08-29T19:32:01Z")

</div>

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](https://steamcommunity.com/sharedfiles/filedetails/?id=1359762368&searchtext=lorki)

---

<div class="post-metadata">

**Author:** ![paulthegreat](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/paulthegreat/32/62395_2.png) [@paulthegreat](https://discourse.stonehearth.net/u/paulthegreat)\
**Post date:** [August 29, 2018, 7:34pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/8 "2018-08-29T19:34:05Z")

</div>

And you have those same seasons defined in your biome json?

---

<div class="post-metadata">

**Author:** ![Lorki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/lorki/32/37342_2.png) [@Lorki](https://discourse.stonehearth.net/u/Lorki)\
**Post date:** [August 29, 2018, 7:41pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/9 "2018-08-29T19:41:02Z")

</div>

{  
“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  
}  
]  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![paulthegreat](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/paulthegreat/32/62395_2.png) [@paulthegreat](https://discourse.stonehearth.net/u/paulthegreat)\
**Post date:** [August 29, 2018, 8:11pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/10 "2018-08-29T20:11:07Z")

</div>

Tree jsons have their seasonal model switcher seasons defined under the component of that name:

```auto
"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.

---

<div class="post-metadata">

**Author:** ![Lorki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/lorki/32/37342_2.png) [@Lorki](https://discourse.stonehearth.net/u/Lorki)\
**Post date:** [August 29, 2018, 8:15pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/11 "2018-08-29T20:15:26Z")

</div>

no plan how to do this?  
I’ll take a look at the stonehearth.smod and find no example.

---

<div class="post-metadata">

**Author:** ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)\
**Post date:** [August 29, 2018, 8:41pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/12 "2018-08-29T20:41:11Z")

</div>

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.

```auto
...
"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.

---

<div class="post-metadata">

**Author:** ![Lorki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/lorki/32/37342_2.png) [@Lorki](https://discourse.stonehearth.net/u/Lorki)\
**Post date:** [August 29, 2018, 8:44pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/13 "2018-08-29T20:44:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![paulthegreat](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/paulthegreat/32/62395_2.png) [@paulthegreat](https://discourse.stonehearth.net/u/paulthegreat)\
**Post date:** [August 29, 2018, 8:52pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/14 "2018-08-29T20:52:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Lorki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/lorki/32/37342_2.png) [@Lorki](https://discourse.stonehearth.net/u/Lorki)\
**Post date:** [August 29, 2018, 9:01pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/15 "2018-08-29T21:01:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Lorki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/lorki/32/37342_2.png) [@Lorki](https://discourse.stonehearth.net/u/Lorki)\
**Post date:** [August 29, 2018, 9:08pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/16 "2018-08-29T21:08:54Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![paulthegreat](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/paulthegreat/32/62395_2.png) [@paulthegreat](https://discourse.stonehearth.net/u/paulthegreat)\
**Post date:** [August 29, 2018, 9:24pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/17 "2018-08-29T21:24:44Z")

</div>

It has to be specified as a mixinto in the manifest.  
[https://stonehearth.github.io/modding\_guide/modding\_guide/essentials/mixintos\_overrides/index.html](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.

---

<div class="post-metadata">

**Author:** ![Lorki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/lorki/32/37342_2.png) [@Lorki](https://discourse.stonehearth.net/u/Lorki)\
**Post date:** [August 29, 2018, 9:34pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/18 "2018-08-29T21:34:32Z")

</div>

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\>

---

<div class="post-metadata">

**Author:** ![Lorki](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/lorki/32/37342_2.png) [@Lorki](https://discourse.stonehearth.net/u/Lorki)\
**Post date:** [August 29, 2018, 9:42pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/19 "2018-08-29T21:42:17Z")

</div>

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”  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![paulthegreat](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/paulthegreat/32/62395_2.png) [@paulthegreat](https://discourse.stonehearth.net/u/paulthegreat)\
**Post date:** [August 29, 2018, 9:44pm UTC](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014/20 "2018-08-29T21:44:44Z")

</div>

Like I said before, you need the “components” block.

[Next page](https://discourse.stonehearth.net/t/session-tree-colors-and-trees-without-leaves/38014.md?page=2)
