1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2024-11-05 09:50:27 +01:00
Commit Graph

24 Commits

Author SHA1 Message Date
Vanessa Ezekowitz
eaa716df76 fix broken leafdecay on apple blossoms 2017-03-30 18:29:24 -04:00
Rogier
2e0277e558 Increase fraction of apples that regrow to 25% after longer block inactivity. 2015-11-03 12:46:15 +01:00
Rogier
d0965a867d Fix apples not regrowing 2015-11-03 12:46:15 +01:00
Rogier
acbc58d8ee Make apple regrowing frequency configurable independently of blossom
Conflicts:
	nature_classic/init.lua
2015-11-03 12:46:15 +01:00
Vanessa Ezekowitz
4e54d23c4d use default leaf decay code for blossoms 2015-08-15 17:23:44 -04:00
Rogier
a27c97d3c9 Eliminate mass conversions between blossom and leaves
This happens when the ABM runs after the block has been unloaded
for much longer than the ABM interval: in that case, the initial
ABM running chance for a node in the block may become up to 100%.
2015-06-18 11:24:17 +02:00
Rogier
6af38b488c Increase minimum duration for blossoms 2015-06-18 11:24:17 +02:00
Rogier
6c715f65f6 Fix timer bug causing persistent blossoms
Because minetest.after() is not bound to a position, and because it is not
saved, it may trigger after the node to which it applies was unloaded, or
not at all (if the session ends). If that happens, The 'young' flag
will not be cleared, and will have become persistent (i.e. without a timer
which will eventually clear it).

This patch removes the 'young' flag, and replaces it with a timestamp, removing
the need for a timer. Any lingering 'young' flags that have become persistent
are automatically removed over time (i.e.: they are simply ignored...)
2015-06-18 11:24:17 +02:00
Rogier
aaa4186695 Remove redundant 'remove_node' in blossom code 2015-06-18 11:24:17 +02:00
Rogier
4c70d6d160 Limit the number of blossoms or leaves queued for conversion 2015-06-18 11:24:17 +02:00
Rogier
8348a745f8 Use different chances for leaves->blossom and blossom->leaves conversions 2015-06-18 11:23:57 +02:00
Rogier
bb41483ee9 Make blossom revert back to regular leaves
It didn't, so that all apple leaves would permanently become blossom
over time.
2015-06-18 11:23:57 +02:00
Vanessa Ezekowitz
811e1d2ee2 fix crash if detected light at a node is nil 2015-02-09 12:50:32 -05:00
Vanessa Ezekowitz
581aee0570 reset blossom delay back to normal 2015-02-08 23:37:48 -05:00
Vanessa Ezekowitz
40f5d66505 refactor nature_classic to avoid lag caused by its blossom abms 2015-02-08 23:17:02 -05:00
Vanessa Ezekowitz
3eaf687da4 OPTIMIZE _ALL_ THE TEXTURES! \:D/ 2015-01-23 14:08:08 -05:00
neko259
b16a5f0a68 Refactored nature classic global functions 2014-10-31 22:09:32 +02:00
Vanessa Ezekowitz
b914e5395b use set_node(), not add_node()
don't use minetest.env:* method (deprecated), use minetest.* instead
2014-08-15 19:34:15 -04:00
Vanessa Ezekowitz
829c69c351 make nature_classic aware of moretrees
If moretrees is not present, nature_classic spawns blossoms and
eventually apples on default trees, as it always has.

If moretrees IS present, the code will only spawn apple blossoms on
moretrees' own apple tree leaves, and will only grow new apples on those
trees, not on default trees.  In this case, the nature:blossom node is
considered deprecated and is aliased to default:leaves to avoid causing
undefined nodes in old maps.
2014-07-30 12:55:49 -04:00
Vanessa Ezekowitz
5adbd3f043 minetest.env:* is deprecated, use minetest.* 2014-07-05 02:01:24 -04:00
Vanessa Ezekowitz
9032385b61 don't spawn apples too close together. 2014-07-05 02:00:41 -04:00
Vanessa Ezekowitz
7b9aac91b2 make apple blossoms only grow on trees within 20m of water by default 2014-07-05 01:50:09 -04:00
Vanessa Ezekowitz
5ca862e153 add waving property to blossoms, for shader use 2014-07-04 01:44:15 -04:00
Vanessa Ezekowitz
828c2008e7 import part of the original nature mod from nature_pack
blossoms/apple spawning portion only
does not include the iron trees or tree-growing code as those are obsolete
2014-07-04 00:49:32 -04:00