SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Back to NxLabs

NxLabs / Vintage Story

OneStick - TreeFellingFix

EBy Eforen

Branches of Trees Drop Sticks in a Balanced way. Default: Respects Tier with a cap. Configurable.

OneStick - TreeFellingFix

Description

<span data-cke-copybin-start="1"></span>

<span data-cke-copybin-start="1">​</span><span style="text-decoration: line-through;">One Stick Mod to rule them all...</span>

<span style="text-decoration: line-through;">And in darkness bind them!!!</span>

Wait a second sorry thats umm something else... don't mind that... anyhow... where was I? oh yeah I fixed a thing...

Currently just fixes what appears to be a bug in the vanilla axe code.&nbsp;

When felling a tree the branchy leaves rarely ever drop sticks.

The game code seems to indicate that they should drop sticks around 80% of the time when felling the tree.

I started with this number as a static number but that did not feel right too many sticks and no ramp when using better axes.

So now it's default config is to ramp from 10% at a teir 0 axe (if they exist) to 80% with a teir 5 axe. This cap at 80% means that its still more efficent to manually harvest the branches before you chop down the tree but still effective.

I am about to launch the Mod on the ModDB and will update below when I have a build there.

Plans:

I plan to make several other probably optional additions to this like sane craftable stick options for more advanced gameplay. See the Github for details, and please feel free to suggest more stick related goodness.

Links:

Version Compatability

Tested in 1.19.8 seems to work fine and I have not gotten any Issue Reports

Config Options:

&nbsp;

BranchDropRateStoneAxe

Default:&nbsp;0.8

The chance (0-1) that a tree will drop a branch when felled by a stone axe.

&nbsp;

BranchDropRateAxeMetal

Default:&nbsp;0.8

The chance (0-1) that a tree will drop a branch when felled by a metal axe.

&nbsp;

UseTierMode

Default:&nbsp;true

If true the mod will use the following two options to calculate the chance a tree will drop a branch. If false it will use the above two options.

&nbsp;

ToolTierZeroFellingBranchDropRate

Default:&nbsp;0.1

The chance (0-1) that a tree will drop a branch when felled by a tool with a harvest level of 0.

&nbsp;

ToolTierFiveFellingBranchDropRate

Default:&nbsp;0.8

The chance (0-1) that a tree will drop a branch when felled by a tool with a harvest level of 5. This is the maximum harvest level.

&nbsp;

DebugMode

Default:&nbsp;false

If true the mod will log extra information to the console.

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.