REGROW
This mod helps to regrow tree fruits instead of the need for replanting saplings each time.
USAGE
The regrow.add_fruit() function is used to override each fruits after_dig_node function so that an invisible node is placed once it is taken, then a timer is started that will regrow the fruit on completion (unless tree is chopped down).
regrow.add_fruit(fruit_node, leaves_node, param2_check_override)
Examples:
regrow.add_fruit("default:apple", "default:leaves")
regrow.add_fruit("cacaotree:pod", "cacaotree:trunk", true)
Changelog
- 0.1 - Initial upload.
- 0.2 - Add checks for player placed fruit and tree's nearby.
- 0.3 - Make add_fruit a global function for other mods to use.
- 0.4 - Add check for fruit tree leaf type before re-growing.
- 0.5 - Ethereal Lemons and Olives can now regrow.
- 0.6 - Add support for cool_trees, farming_plus, aotearoa, australia and moretrees
- 0.7 - Add param2 override for cacao with placement param2 check
- 0.8 - Add custom min and max time regrow interval settings (defaults are 600 and 1200)
Description
Languages
Lua
100%