summaryrefslogtreecommitdiff
path: root/init.lua
AgeCommit message (Collapse)Author
2016-07-03Add poplar treeRogier
Poplars exist in two kinds: small and large trees. Both use the same nodes, except for the sapling. Poplar leaves may drop one or the other sapling. Poplar trees require a humid environment, and water nearby. Provided there is water, an occasional poplar will grow under less humid conditions.
2016-06-27Make cocos palm regrow coconuts.Rogier
This feature is optional, and can be turned off. Existing cocos trees are converted.
2016-06-27Add date palmRogier
Spawns in hot and dry desert, but requires water. This makes it a bit harder to find, but where found, it can be more abundant. If found in the middle of a desert, its presence indicates a water source below the surface. As an additional optional feature, dates (slowly) grow back after harvesting.
2016-05-18Restore previous pine as cedarRogier
Commit ad0cbbc0f disabled the previous moretrees pine, and aliased it to the default minetest pine. The default pine is a completely different tree though, with different apppearance and different textures. This commit restores the previous pine tree, renaming it to cedar to avoid a tree name clash with the default game. Any existing moretrees pine trees will be converted to cedar, so that their appearance does not change. Moretrees pine trees that have already been converted to the default pine tree are not converted back.
2015-08-15don't copy default settings to user's world folder.Vanessa Ezekowitz
2015-08-15use default leaf decay code for everything.Vanessa Ezekowitz
2015-08-14made birch, spruce, fir, and jungle trees spawn againVanessa Ezekowitz
turned out to be I was using foo:bar for their function calls, which biome_lib filters out (only group defs can use that format). Changed them to quoted-string "foo.bar" format. Also, jungle trees need a moretrees-specific copy of the default jungle trunk node so that there's something unique to match against for the density limit. also, made jungle trees use the same biome settings as giant tree ferns
2015-08-14Use default nodes wherever possibleVanessa Ezekowitz
for pines, jungle trees/leaves, acacias
2015-08-09update to match the renaming of plants_lib --> biome_libVanessa Ezekowitz
2015-07-30use clone-node method to redefine appleVanessa Ezekowitz
(only way to add a new group item, for compat with rubenwardy's food mod)
2014-12-27use current intllib APIVanessa Ezekowitz
2014-08-24add acacia treesVanessa Ezekowitz
grows in the desert near the edges of the biome
2014-08-15don't register snow:sapling_pine if snow mod isn't installedVanessa Ezekowitz
2014-07-30phase out the old clone_node call. use minetest.override_item() instead.Vanessa Ezekowitz
2014-03-20add support for intllib translation modXanthin
2014-01-30oops, forgot to remove the call to load the old ownership.lua fileVanessa Ezekowitz
2013-11-14fix crash?Vanessa Ezekowitz
2013-11-14Made it possible via moretrees config to force all moretrees, default, andVanessa Ezekowitz
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-07Moretrees' trunks can now be turned sideways when placing,Vanessa Ezekowitz
using minetest.rotate_and_place() Requires Minetest git commit 1d856b73 or later.
2013-09-14add option to spawn saplings instead of fully-grown trees at mapgenVanessa Ezekowitz
time. Such saplings will grow very quickly into a tree, compared to a planted sapling. Defaults to spawning saplings. add custom jungle tree sapling, alias default one to that, so that moretrees will be able to grow its own jungle trees. fix tree density bug
2013-08-05always read default_settings.txt before reading the world-folder's settings fileVanessa Ezekowitz
also close the file after copying.
2013-06-30Phased out all deprecated minetest.env:* uses in favor of minetest.*Vanessa Ezekowitz
2013-04-17Update 2013-04-17: Got rid of horizontal jungle tree trunk, aliased itVanessa Ezekowitz
to the one in the moreblocks mod. Got rid of jungle tree planks recipe, default already has it. But that's not the important part... Acorns, fir/spruce/pine cones, and coconuts are now edible! Fir/spruce/pine cones can be cooked to extract fir/spruce/pine nuts. One cone yields 4 portions of nuts, each of which heals 1/2 heart. Coconuts can be broken apart to get milk and raw coconut solids (e.g. the "meat"). Craft one coconut, one drinking glass, and one cutting tool (*see below). Yields one portion of coconut solids, one glass full of coconut milk, and the tool is returned. The coconut milk heals 1 heart and returns the empty glass, while one portion of coconut solids heals two hearts. Coconut milk can be crafted with four acorns to produce acorn muffin batter. One portion of this batter can be cooked into four acorn muffins. Each muffin restores two hearts. Enjoy :-) ----- * Since Minetest doesn't have any default cutting tools that would normally be suitable for this purpose, the following tools may be used instead to cut the coconuts open: Default bronze, diamond, Mese, or steel axe, ...or... glooptest Alatro or Arol axe, ...or... moreores Mithril or silver axe, ...or... titanium axe. (note that stone and wooden axes are deliberately not usable)
2013-04-09forgot to test if the file can be read the second time the mod is run.Vanessa Ezekowitz
Should be fixed now.
2013-04-09Made settings world-specific - look for moretrees_settings.txt in your worldVanessa Ezekowitz
folder. If it isn't found, the mod will create it with the contents of default_settings.txt and then read those default settings and use them. Otherwise, it will read its settings from the world folder.
2013-04-08removed all code that tries to disable default trees because the minetest devVanessa Ezekowitz
team is being completely obstinant about letting me properly disable them from this mod. Instead, made beech trees respond to enable flags in settings.lua (disabled by default). If you want beeches, turn that flag on in settings.lua and remove the "trees" flag from yourworld/map_meta.txt in the mg_flags line.
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-04-06Added settings to enable/disable each tree type, all default to enabled.Vanessa Ezekowitz
2013-02-23Added support for spawning small fir trees in snow biomes. Made jungletreesVanessa Ezekowitz
and palms require at least +15°C to grow. This is supposed to keep them away from snow biomes, but the engine doesn't let me tell the snow mod to always run first. Also please note that due to the load that snow biomes + moretrees adds to the map generator, well... stuff will look cut off, broken, etc. due to bugs in the map generator.
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
2013-02-11Added ability to do leaf decay on default trees, moved several configurationVanessa Ezekowitz
settings into a separate file. You should disable leaf decay in minetest_game if you enable it here.
2013-02-11tuned leaf decay somewhat - palms need a separate ABM because they have suchVanessa Ezekowitz
wide leaves.
2013-02-11added leafdecay, fixed broken birch sideways trunk recipe, made all cones +Vanessa Ezekowitz
apple fall when they have nothing to hang onto.
2013-01-26forgot to reset sapling growth to normal speedVanessa Ezekowitz
2013-01-25Modified tree generation and sapling growth callsVanessa Ezekowitz
to comply with new plantlife API In addition to that, there have been numerous other, smaller changes: * Tweaked palm tree model to add coconuts * Tweaked size of all "fruit" items (really just cones). Rotated their images in inventory and wield. * Changed descriptions of sideways trunks to "Sideways Xxxx Trunk" * Tweaked names of jungle tree leaves to be Jungle Tree Leaves (Xxxx) * Moved jungletree trunk, sideways trunk, sapling into nodedef loop * Renamed trunks and trunk tops to bear "_trunk" and "_trunk_top" in their filenames. * Added copies of default jungle tree trunks and tops, with naming similar to the above change. * Re-arranged init.lua to put all leaves/needles definitions in one place. * Deleted some outdated textures. * combined leaves definitions back into main loop with an exception for jungletrees (if that one is called for, it is skipped, because leaves for those trees are explicitly defined later) * Made all leaves drop saplings when dug, 1/20 chance. * Added leafdecay radii to main tree table but disabled the use of it. To be implemented in the future. Disabled leaf decay for firs.
2013-01-22fixed a bug where firs sometimes drew as trunks + conesVanessa Ezekowitz
2013-01-21Added fir cones, more tweaks to weed out old conifer/jungletree refs.Vanessa Ezekowitz
Changed fir models so that they include the new cones.
2013-01-21Forgot some references to the old jungletrees and conifers nodesVanessa Ezekowitz
when I was weeding out the legacy names and textures. This should fix the last of it.
2013-01-21weeded out all the old node and texture names from jungletree and conifersVanessa Ezekowitz
mods, added aliases for backwards compatibility. All nodes are named moretrees:something_sapling, moretrees:something_trunk moretrees:something_leaves moretrees:something_planks Also, added sideways trunks for all trees and crafting recipes for them, plus added in the missing trunks -> planks recipes.
2013-01-20disabled beech treesVanessa Ezekowitz
2013-01-20set sapling interval/chance to their defaults, enabled beechVanessa Ezekowitz
tree code which replaces the default trees.
2013-01-20Made surface-based sapling growth depend on surface valueVanessa Ezekowitz
in each tree's biome
2013-01-20typoVanessa Ezekowitz
2013-01-20Added tweak to make sure planted saplings only grow on the same surfaces asVanessa Ezekowitz
they would normally spawn on.
2013-01-20fixed birch and spruce always appearing above their planted saplingsVanessa Ezekowitz
2013-01-20disable debugging info, set sapling growth values to normalVanessa Ezekowitz
(interval = 500, chance = 10)
2013-01-20Added sapling spawning, tuned rarity of some of the trees.Vanessa Ezekowitz
2013-01-20updated the date in init.luaVanessa Ezekowitz
2013-01-20Enabled several new types of trees, all spawned at mapgen time!Vanessa Ezekowitz
This code will slow the map generator down a little due to bugs therein, and is generally still in the experimental stages, but it works and is actually quite fast!