img



img

Custom Tree Tweaks


By: Erinthe
Addon | img 78




Description

___________________________________________________________________________________________________________________________

This mod aims to tweak all things tree.

It has two main functions:

 

  • it opens up the tree loot system for custom configuration
  • it allows trees to grow beyond their maximum size.



Loot

Tree loot is a bit complex, so there are several types of loot a tree might drop.

Each type can be set to any item you like, but they are affected specially as follows:

 

  • wood - amount affected by luck and skills
  • sap - dropped specially when a stump is destroyed by non-farmer means
  • hardwood - affected by skills and chance
  • items - not affected specially, dropped as specified in the json file.


For each tree type (1-8), you can specify lists of items for each of the above categories both for stumps and trees separately.

The mod is set up by default to mimic the vanilla behaviour for loot dropping, but you can tweak all the values by editing the assets/default.json file as you like.

Alternatively, and more properly, you can override any of the entries in default.json using Content Patcher. The dictionary path to edit is tree_tweaks_dictionary, and the syntax of the dictionary is as follows:

{
<br />&nbsp; "1": {
<br />    "stumpWood": [ { "id": "388" } ],
<br />    "stumpSap": [ { "id": "92" } ],
<br />    "stumpHardwood": [],
<br />    "stumpItems": [],
<br />    "wood": [
<br />      {
<br />      &nbsp; "id": "388",
<br />      &nbsp; "min": "12",
<br />      &nbsp; "max": "12"
<br />      }
<br />    ],
<br />    "sap": [
<br />      {
<br />      &nbsp; "id": "92",
<br />      &nbsp; "min": 5,
<br />      &nbsp; "max": 5
<br />      }
<br />    ],
<br />    "hardwood": [
<br />      {
<br />      &nbsp; "id": "709",
<br />      &nbsp; "min": 0,
<br />      &nbsp; "max": 0
<br />      }
<br />    ],
<br />    "items": [
<br />      {
<br />      &nbsp; "id": "309",
<br />      &nbsp; "min": 1,
<br />      &nbsp; "max": 2
<br />      }
<br />    ]
<br />&nbsp; },
<br />}



Entry keys refer to tree type, as follows:

 

  • Oak
  • Maple
  • Pine
  • Winter Tree 1
  • Winter Tree 2
  • Palm Tree
  • Mushroom Tree
  • Mahogany Tree


Each entry can have up to ten sub keys as shown above. For each of the ten keys, the value is a list of item data entries.

Each item data entry can have the following fields:

 

  • id - the item to drop, can be index or name, should support JA and DGA names
  • min - minimum base amount to drop (default 1)
  • max - maximum base amount to drop (default 1)
  • minQuality - minimum quality item to drop (default 0)
  • maxQuality - maximum quality item to drop (default 0)
  • mult - final multiplier to multiply loot by (default 1)
  • chance - percent chance to drop (default 100)


An example Content Patcher content.json that makes oak trees output a lot of wood is as follows:

{
<br />   &nbsp;"Format": "1.23.0",
<br />   &nbsp;"Changes": [
<br />       &nbsp;{
<br />            "Action": "EditData",
<br />            "Target": "tree_tweaks_dictionary",
<br />            "Entries": {
<br />               &nbsp;"1": {
<br />                   &nbsp;"stumpWood": [
<br />                        {
<br />                           &nbsp;"id": "388"
<br />                        }
<br />                   &nbsp;],
<br />                   &nbsp;"stumpSap": [
<br />                        {
<br />                           &nbsp;"id": "92"
<br />                        }
<br />                   &nbsp;],
<br />                   &nbsp;"stumpHardwood": [],
<br />                   &nbsp;"stumpItems": [],
<br />                   &nbsp;"wood": [
<br />                        {
<br />                           &nbsp;"id": "388",
<br />                           &nbsp;"min": "120",
<br />                           &nbsp;"max": "120"
<br />                        }
<br />                   &nbsp;],
<br />                   &nbsp;"sap": [
<br />                        {
<br />                           &nbsp;"id": "92",
<br />                           &nbsp;"min": 5,
<br />                           &nbsp;"max": 5
<br />                        }
<br />                   &nbsp;],
<br />                   &nbsp;"hardwood": [
<br />                        {
<br />                           &nbsp;"id": "709",
<br />                           &nbsp;"min": 100,
<br />                           &nbsp;"max": 100
<br />                        }
<br />                   &nbsp;],
<br />                   &nbsp;"items": [
<br />                        {
<br />                           &nbsp;"id": "309",
<br />                           &nbsp;"min": 10,
<br />                           &nbsp;"max": 20
<br />                        }
<br />                   &nbsp;]
<br />               &nbsp;}
<br />            }
<br />       &nbsp;}
<br />   &nbsp;]
<br />}



Tree Size

By default this mod increases a tree's size by 0.1% per day once it is fully grown.

By default, oversized trees also produce 0.1% more loot per day over fully grown when chopped down.

By default, maximum days oversized is 100.

You can edit the above variables using Generic Mod Config Menu, or editing the config.json file.




About Project

Created: September 6th 2023

Updated: September 6th 2023

Project ID: 80554

License: All Rights Reserved

__________________________________________

Game Versions:

1.01.03

1.01.03

1.01.03

1.01.03

1.01.03

__________________________________________

Flavors:

WoW Retail

__________________________________________

Categories

Companions

Battle

__________________________________________

Main File

Erinthe_Custom Tree Tweaks.zip
  • Release
  • September 6th 2023

    __________________________________________

    Recent File

    Erinthe_Custom Tree Tweaks.zip
  • Release
  • September 6th 2023

    __________________________________________

    Members

    img
    Erinthe
    Owner

    __________________________________________

    Report