Commit Graph

29 Commits

Author SHA1 Message Date
Louis Royer
47c20dc550 Remove translations in minetest.log output
because they are not translated anyway
2020-02-15 14:32:06 +00:00
Vanessa Dannenberg
77093e428a use swap_node() where possible, for speed 2018-10-25 10:27:54 -04:00
Auke Kok
0af7b69afa cleanfile run: remove trailing whitespace.
When it's this far out of hand you really need to clean up or else
everyone will be submitting patches with more whitespace problems.
2018-02-17 16:28:43 -08:00
Vanessa Ezekowitz
de4de190e5 include both kinds of leaves in nature blossoms' leafdecay reg 2017-08-12 19:59:19 -04:00
fat115
5ca1ed261e global i18n : add plantlife_i18n mod
idea taken from homedecor_modpack and its homedecor_i18n
all translated mods have a new dependency : plantlife_i18n
translations are stored in po/pot file : one file for all mods

added french translation (almost complete)
transfered de/es/tr/pt translations to corresponding .po file
(only for some mods, unfortunately translations are incomplete)
2017-08-03 15:02:56 +02:00
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