The code was failing to set the "placed" flag on empty rubber tree trunk
nodes because the after_place_node callback that does it would only be
called by the default on_place callback, which is overridden for that
node type. The code also fails to even attempt to set the flag on full
rubber tree trunk nodes. The technic mod no longer looks at this flag,
so remove the attempt to set it, rather than fix setting it.
(it was redefining more stuff than was necessary). As a side effect,
this fixes a bug where non-plantlike leaves were using the wrong
textures in the inventory.
Remove all of the previous waving leaves changes as the shader that provides
that feature is about to change in a way that will break what I had here.
Clean up code that sets default drawtype and visual_scale of leaves
they are plantlike or not in the world. This has the side effect that a
dropped leaf block will look like a flat sprite. Oh well, no other way
to fix it.
Adjusted the offset of the textures so that leaves place more accurately
in the world (blame this on the engine, it has no option for me to
adjust the precise vertical visual scale independently from the
horizontal scale, so I have to fake it with the textures).
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.
to 15, by default (does not affect existing world - admins will need to
change the moretrees_settings.txt file manually, if so desired)
Palms make more saplings now. (Affects all worlds)
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
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)
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.
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.
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.