minetest-mm/mods/regrow
root f54c45abcd update 2021-01-23 12:24:04 +01:00
..
description.txt big_update 2020-10-26 17:38:53 +01:00
init.lua update 2020-12-26 22:23:48 +01:00
license.txt big_update 2020-10-26 17:38:53 +01:00
mod.conf update 2021-01-23 12:24:04 +01:00
readme.MD update 2020-12-26 22:23:48 +01:00
screenshot.jpg update 2020-12-26 22:23:48 +01:00

readme.MD

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).

Example: regrow.add_fruit("default:apple", "default:leaves")

So far default apples and ethereal banana, orange and coconuts are supported.

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.