Commit Graph

12 Commits

Author SHA1 Message Date
Vanessa Ezekowitz
5bfbe63197 spacing fixes 2014-08-07 21:51:55 -04:00
Vanessa Ezekowitz
25564985a2 combine checks for ignore and trunks into one call
(per tree; effectively treats ignore as another trunk)
2014-08-07 21:38:51 -04:00
Vanessa Ezekowitz
8581d3654e Make all leaves drop as items during decay by default.
This behavior can be disabled by setting...

moretrees.decay_leaves_as_items = false

...in moretrees_settings.txt in your world folder, in which case leaves will
simply disappear during decay, as usual.
2014-07-13 03:41:31 -04:00
Vanessa Ezekowitz
e1baf2018b Made it possible via moretrees config to force all moretrees, default, and
default jungle tree leaves to be plantlike drawtype.

The default setting is now plantlike.  Change moretres_settings.txt in
your world folder if you don't like it.

Rearranged a bit of code to accommodate this.
2013-11-14 18:05:37 -05:00
Vanessa Ezekowitz
c3e3f7ae38 fix incorrect assumpton about math.random() 2013-10-27 02:11:32 -04:00
Vanessa Ezekowitz
f3a8c29d1a Fixed missing drops on leaf decay 2013-10-27 02:05:44 -04:00
Vanessa Ezekowitz
fa64297c09 Fix leafdecay along unloaded block boundaries
Also added separate check and variable for decaying default jungle leaves.
2013-10-17 17:48:49 -04:00
Vanessa Ezekowitz
c277590fc2 Phased out all deprecated minetest.env:* uses in favor of minetest.* 2013-06-30 23:55:07 -04:00
Vanessa Ezekowitz
4c198fad78 Multiple changes, see below:
Fix replacement of default trees so that it works correctly.  Beeches
now use default tree nodes, but L-systems models.  This redefines the
default tree, wood, leaves, and saplings so that they use moretrees'
textures "Beech" in their descriptions, but only if replacement of
default trees is enabled.

Added backward-compat aliases for this change.

Moved tree replacement mapgen->air aliases to a more logical spot in the
code.

Also, changed out all leaf decay dig_node() calls for nodeupdate(), since the
former calls the latter anyway, and the latter is what does the job.

Increased the palm leaf decay radius to 12.
2013-04-07 22:09:18 -04:00
Vanessa Ezekowitz
f100397cfd Jungle nodes are defined and used by minetest_game now,
so we don't need them in moretrees anymore.  They're still used by moretrees
to generate out versions of jungletrees, though, and red/green/yellow leaves
are also still provided and defined.
2013-03-19 17:01:09 -04:00
Vanessa Ezekowitz
6da6bda95e made leaves depend on the trunks they spawn with to avoid decaying
rather than just any trunk being enough to stop just any leaves from decaying.
Re-tuned the leaf decay interval/chance values accordingly.  Changed a few
variables to avoid possible conflicts.  Added a setting to allow one to disable
the new leaf decay code.  Moved sapling growth code into its own file.  Minor
changes to comments here and there.  Got rid of simple trees list (made the
code do various checks in realtime instead, since it's just startup code
anyway).  Fixed messed-up crafting for jungle trees; condensed most of the
crafting code into main craft registry loop.  Mostly fixed broken aliases of
default jungletrees.
2013-02-11 22:07:40 -05:00
Vanessa Ezekowitz
a0af3f26de added the ability to redefine apples so that they'll fall when nearby leaves
disappear (defaults to true).  Moved leafdecay code into its own file.  Moved
sapling configs into settings.lua
2013-02-11 12:23:05 -05:00