summaryrefslogtreecommitdiff
path: root/leafdecay.lua
AgeCommit message (Collapse)Author
2013-04-07Multiple changes, see below:Vanessa Ezekowitz
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-03-19Jungle nodes are defined and used by minetest_game now,Vanessa Ezekowitz
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-02-11made leaves depend on the trunks they spawn with to avoid decayingVanessa Ezekowitz
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-11added the ability to redefine apples so that they'll fall when nearby leavesVanessa Ezekowitz
disappear (defaults to true). Moved leafdecay code into its own file. Moved sapling configs into settings.lua