# Adding a tree that can be harvested year round

**URL:** <https://discourse.cataclysmdda.org/t/adding-a-tree-that-can-be-harvested-year-round/12281>\
**Category:** The Toolbox\
**Created:** [July 28, 2016, 2:49pm UTC](https://discourse.cataclysmdda.org/t/adding-a-tree-that-can-be-harvested-year-round/12281 "2016-07-28T14:49:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lazy\_lizard](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@Lazy\_lizard](https://discourse.cataclysmdda.org/u/Lazy_lizard)\
**Post date:** [July 28, 2016, 2:49pm UTC](https://discourse.cataclysmdda.org/t/adding-a-tree-that-can-be-harvested-year-round/12281/1 "2016-07-28T14:49:32Z")

</div>

I’m trying to add juniper trees, which near as I can tell have berries in varying stages of ripeness year round, but omitting harvest\_season in the terrains json definition seems to default to autumn.

`[
    {
        "type" : "terrain",
        "id" : "t_tree_juniper",
        "name": "juniper tree",
        "symbol": "7",
        "color": ["ltblue", "ltblue", "ltblue", "brown"],
        "move_cost": 0,
        "flags": ["FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT"],
        "harvestable": "juniper_berries",
        "examine_action": "harvest_tree_shrub",
        "transforms_into": "t_tree_juniper_harvested",
        "bash": {
            "str_min": 80, "str_max": 180,
            "sound": "crunch!",
            "sound_fail": "whack!",
            "ter_set": "t_dirt",
            "items": [
                { "item": "stick", "count": [3, 10] },
                { "item": "splinter", "count": [10, 25] }
            ]
        }
    },
    {
        "type" : "terrain",
        "id" : "t_tree_juniper_harvested",
        "name": "juniper tree",
        "symbol": "7",
        "color": ["ltblue", "ltblue", "ltblue", "brown"],
        "move_cost": 0,
        "flags": ["FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT", "HARVESTED"],
        "harvestable": "juniper_berries",
        "examine_action": "harvest_tree_shrub",
        "transforms_into": "t_tree_juniper",
        "bash": {
            "str_min": 80, "str_max": 180,
            "sound": "crunch!",
            "sound_fail": "whack!",
            "ter_set": "t_dirt",
            "items": [
                { "item": "stick", "count": [3, 10] },
                { "item": "splinter", "count": [10, 25] }
            ]
        }
    }
]`

Is there any way to get a tree to produce fruit in every season?

---

<div class="post-metadata">

**Author:** ![pisskop](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/pisskop/32/1327_2.png) [@pisskop](https://discourse.cataclysmdda.org/u/pisskop)\
**Post date:** [July 28, 2016, 3:44pm UTC](https://discourse.cataclysmdda.org/t/adding-a-tree-that-can-be-harvested-year-round/12281/2 "2016-07-28T15:44:39Z")

</div>

look at maple trees, apples, underbrush, blueberry bush.

shoud be a tag

---

<div class="post-metadata">

**Author:** ![Lazy\_lizard](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@Lazy\_lizard](https://discourse.cataclysmdda.org/u/Lazy_lizard)\
**Post date:** [July 28, 2016, 11:19pm UTC](https://discourse.cataclysmdda.org/t/adding-a-tree-that-can-be-harvested-year-round/12281/3 "2016-07-28T23:19:54Z")

</div>

Can harvest\_season accept multiple seasons or will that throw errors?

edit: that throws errors, never-mind.

EDIT, ROUND 2, FIGHT: looking at the all of the iexamine functions work lead me to believe that allowing a tree or under-brush terrain to be harvested year round and produce the same fruit would require source code tweaks. wild\_veggies spawns items from the various associated item groups, harvest\_tree\_shrub calls on the harvest\_season field (which can’t accept multiple strings), basically junipers are to weird for the harvest mechanics as implemented.

---

<div class="post-metadata">

**Author:** ![Lazy\_lizard](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@Lazy\_lizard](https://discourse.cataclysmdda.org/u/Lazy_lizard)\
**Post date:** [November 27, 2016, 7:24am UTC](https://discourse.cataclysmdda.org/t/adding-a-tree-that-can-be-harvested-year-round/12281/4 "2016-11-27T07:24:01Z")

</div>

As of the latest experimental version, what I was looking to do here is now possible. All thanks to Coolthulu for his/her/potato work in the new harvest mechanics.
