Commit Graph

75 Commits

Author SHA1 Message Date
Micah Scott b1fe8df038 Fix some typos in tree names in the biome decoration defs
I think this fixes some tree types that were broken. I didn't notice any
poplar trees before this patch and I've seen a few since. I've been
looking for rubber trees and so far haven't found any but there might be
other issues or I may just be unlucky :)
2023-05-15 09:46:58 +02:00
wsor4035 b56e22fefd
fix gennotify ids table being corrupted when clear decorations is called (#28)
* fix decoration ids being invalid when mods clear the registered decorations

* cleanup old debug chat statements
2023-05-02 17:56:09 -04:00
Awkanimus 21bdcc360b
Ensure ethereal is a compatible version if loaded (#21)
- Check that ethereal version is more than 20220424 so that it doesn't
   unload parts of this mod
 - Remove optional dependency breaking the multi-mod dependency cycle
   ethereal --> bakedclay --> flowerpot --> moretrees --> ethereal.
2022-12-12 00:26:49 -05:00
wsor4035 e476b81cf5
Divorce biome lib and cleanup code (#11)
* make it boot without biome lib

* make luacheck semi sane

* make fast growth saplings work

* make fast saplings respect nodes there growing on

* make regualr saplings work

* fix some luacheck warnings

* add github actions for luacheck

* bump luacheck line limit, as to gracefully handle long tree rules

* switch over to inline luacheck length rules

* fix screenshot warning

* make tree generation work

* add settings from last night

* comment out new biome lib nonsense added

* tune spawning to be better

* turn down fallback ratio

* translate new abm patch to not use biome lib

* add ethereal since its still behaving badly :(
2022-10-24 19:09:19 -04:00
Louis Royer 3212fae8cf Add MT5 client-side translation
- Improve french translation

Warnings:
- many untranslated new strings for German and Spanish translations (some help would be appreciated)
- Inner and Outer Stairs are still badly translated (since there is [no support for this in stairs api yet](https://github.com/minetest/minetest_game/issues/2582)).
2020-08-26 02:11:54 +02:00
Vanessa Dannenberg 216acdc6b1 override default sapling/tree/leaves/wood/etc
get rid of "apple" from descriptions
2019-06-18 14:51:50 -04:00
Vanessa Dannenberg dde035cb5e use table.copy instead of clone-node 2019-06-18 14:37:06 -04:00
Vanessa Dannenberg d521e34758 license fixups: use LGPL 3.0 for code, CC-by-SA 4.0 for media 2018-11-08 18:40:16 -05:00
Vanessa Dannenberg 90a2d33707 use swap_node where possible, for speed 2018-10-25 10:27:29 -04:00
Hybrid Dog e5524c007d follow minetest lua code style guidelines 2018-01-09 20:01:47 +01:00
Hybrid Dog ba2cd3d9b8 Use new setting functions 2017-12-30 16:25:26 +01:00
Vanessa Ezekowitz cccfb1953b remove acacia trees entirely.
they're handled by minetest_game now (have been for a while)
only some aliases and an "avoid" setting for other trees remain.
2017-08-12 18:59:41 -04:00
Rogier d72574d288 Add poplar tree
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-07-03 07:16:36 +02:00
Rogier 75e8027bf7 Make cocos palm regrow coconuts.
This feature is optional, and can be turned off.

Existing cocos trees are converted.
2016-06-27 23:23:54 +02:00
Rogier afab0692df Add date palm
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-06-27 23:23:54 +02:00
Rogier cd9926f9e5 Restore previous pine as cedar
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.
2016-05-18 16:54:45 +02:00
Vanessa Ezekowitz 1cd2216731 don't copy default settings to user's world folder. 2015-08-15 17:15:08 -04:00
Vanessa Ezekowitz f59fd56257 use default leaf decay code for everything. 2015-08-15 16:58:17 -04:00
Vanessa Ezekowitz 6694b8da61 made birch, spruce, fir, and jungle trees spawn again
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-14 14:40:45 -04:00
Vanessa Ezekowitz 2ae8a32aa3 Use default nodes wherever possible
for pines, jungle trees/leaves, acacias
2015-08-14 13:16:51 -04:00
Vanessa Ezekowitz 10ce68961f update to match the renaming of plants_lib --> biome_lib 2015-08-09 10:34:53 -04:00
Vanessa Ezekowitz ba170ee66e use clone-node method to redefine apple
(only way to add a new group item, for compat with rubenwardy's food mod)
2015-07-30 09:42:47 -04:00
Vanessa Ezekowitz e7f2beda39 use current intllib API 2014-12-27 01:06:09 -05:00
Vanessa Ezekowitz ff0df53829 add acacia trees
grows in the desert near the edges of the biome
2014-08-24 03:14:08 -04:00
Vanessa Ezekowitz 652baa7b32 don't register snow:sapling_pine if snow mod isn't installed 2014-08-15 00:49:27 -04:00
Vanessa Ezekowitz bb1b668f8f phase out the old clone_node call. use minetest.override_item() instead. 2014-07-30 14:53:27 -04:00
Xanthin 7b32c392cf add support for intllib translation mod 2014-03-20 01:31:23 +01:00
Vanessa Ezekowitz abb5dd3550 oops, forgot to remove the call to load the old ownership.lua file 2014-01-30 16:13:28 -05:00
Vanessa Ezekowitz 621dc7eb44 fix crash? 2013-11-14 20:46:36 -05: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 620a799fb4 Moretrees' trunks can now be turned sideways when placing,
using minetest.rotate_and_place()

Requires Minetest git commit 1d856b73 or later.
2013-11-07 21:01:09 -05:00
Vanessa Ezekowitz fad79d86b7 add option to spawn saplings instead of fully-grown trees at mapgen
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-09-14 22:44:32 -04:00
Vanessa Ezekowitz dbf775808a always read default_settings.txt before reading the world-folder's settings file
also close the file after copying.
2013-08-05 04:58:08 -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 c1a5cf776b Update 2013-04-17: Got rid of horizontal jungle tree trunk, aliased it
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-17 19:30:17 -04:00
Vanessa Ezekowitz 85e07fb787 forgot to test if the file can be read the second time the mod is run.
Should be fixed now.
2013-04-09 00:32:15 -04:00
Vanessa Ezekowitz 8a1ebec951 Made settings world-specific - look for moretrees_settings.txt in your world
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-09 00:15:24 -04:00
Vanessa Ezekowitz 4184caa641 removed all code that tries to disable default trees because the minetest dev
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-08 22:54:22 -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 d877bd51bb Added settings to enable/disable each tree type, all default to enabled. 2013-04-06 17:21:11 -04:00
Vanessa Ezekowitz 6d74d09c9d Added support for spawning small fir trees in snow biomes. Made jungletrees
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-23 12:34:01 -05: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
Vanessa Ezekowitz 1445263d73 Added ability to do leaf decay on default trees, moved several configuration
settings into a separate file.  You should disable leaf decay in minetest_game
if you enable it here.
2013-02-11 12:09:17 -05:00
Vanessa Ezekowitz c745c613af tuned leaf decay somewhat - palms need a separate ABM because they have such
wide leaves.
2013-02-11 00:27:58 -05:00
Vanessa Ezekowitz 966c5fc4b0 added leafdecay, fixed broken birch sideways trunk recipe, made all cones +
apple fall when they have nothing to hang onto.
2013-02-11 00:09:53 -05:00
Vanessa Ezekowitz 0e10584a69 forgot to reset sapling growth to normal speed 2013-01-26 14:32:22 -05:00
Vanessa Ezekowitz 4db9b3076d Modified tree generation and sapling growth calls
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-25 16:10:28 -05:00
Vanessa Ezekowitz df59dee090 fixed a bug where firs sometimes drew as trunks + cones 2013-01-22 11:29:20 -05:00
Vanessa Ezekowitz 71e0fce57a Added fir cones, more tweaks to weed out old conifer/jungletree refs.
Changed fir models so that they include the new cones.
2013-01-21 21:08:11 -05:00