Back to NxLabs

NxLabs / Vintage Story

Sapling Tree Params 2

DBy Dooters

this mod lets you change parameters on tree saplings

Description

SaplingTreeParams2

SaplingTreeParams stopped working in 1.19.3 and I got some time to update this mod.

this was tested on 1.19.3.

update: it works on 1.19.8 too.

Updated Framework

I had to make a new repo,
because I didn't know how to update the original project to the new framework.
Framework was updated to .net7 like the game.

Config Loading

previous mod allowed the config to be loaded mutiple times during the game.
current mod loads config once at game startup and sets the list once.

Mod/Config Changes

1. you can now decide on what trees to modify, default is "pine".
2. config can't be empty, either load the mod or disable it.
3. you can now set ignoreColdTemp so that trees could grow in cold weather.
4. any tree that isn't in the list will be unaffected by this mod.

Config Schema

[
   {
      "treeType": "pine",
      "skipForestFloor": true,
      "size": 0.5,
      "otherBlockChance": 1.0,
      "vinesGrowthChance": 0.01,
      "mossGrowthChance": 0.02,
      "ignoreColdTemp": true
   },
   {
      "treeType": "acacia",
      "skipForestFloor": true,
      "size": 0.5,
      "otherBlockChance": 1.0,
      "vinesGrowthChance": 0.01,
      "mossGrowthChance": 0.02,
      "ignoreColdTemp": false
   }, ...
]

Config Location

same place as previous mod: VintageStoryData/ModConfig

Tested

Game version - 1.19.3, 1.19.8.

Client - works.

Server - works.

Commands

/sapconfig <sub-command>

Sub-Commands

/sapconfig add [type=birch,sff=true,size=0.3,obc=1,vgc=0.01,mgc=0.02,ic=true]

/sapconfig add [type=birch,size=0.5]

/sapconfig show

/sapconfig remove birch

Help Related

/help sapconfig

/help sapconfig add

/help sapconfig remove

Fixes

  • fixed the 1 day tree growth bug.

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.