Breaking and Recovering

When a player mines / breaks a shrub, they always drop.

This makes them abusable when they have finite produce ~ players may break them when there is 1 use left, and replant for full uses.


With this option, you answer the question "How many uses left before the shrub becomes irrecoverable?"

YML Format:

RecoverWhenBroken: [Decimal value between 0.0 and 1.0]

Recover When Broken (0.0)

Fraction of uses left when the shrub stops dropping its item when broken.

Example

A shrub has 20 maximum generations, and a 0.25 Recover When Broken.

  1. The shrub has not produced anything, breaking it will drop itself.

  2. The shrub has produced 5 fruits, breaking it still drops itself and the player may replant to reset the counter.

  3. The shrub has produced 10 fruits, breaking it still drops itself.

  4. The shrub has produced 15 fruits, meaning that only 25% (0.25) of its uses are left ~ breaking it will no longer drop an item and the rest of the uses will be lost.

More Technical

A lower number makes the shrub drop at lower uses remaining, and a number equal or greater to 1.0 effectively makes it never drop.

Fraction of uses left when it stops dropping as an item when broken.